You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generate realistic data through AI and the large amount of data stored in our system. The magikfake AI engine is in continuous learning to generate safe data to be used for a specific project</p>
- 🪄 AI Engine - Fake data are generated through an AI engine.
15
12
- 🔆 Flexible scheme - User can define a schema similar to mongoose, using primitive types.
16
13
- 🌏 Localization - Data are translated into 5 languages: 🇬🇧, 🇮🇹, 🇪🇸, 🇩🇪, 🇫🇷
17
-
- 🏦 Data store - Large amount of data stored in our system.
14
+
- 🏦 Dataset - Large amount of dataset in our system.
18
15
- 💾 Save schema - User can save a schema to use it at a later time.
19
16
20
-
## Install
17
+
## 📦 Install
21
18
22
19
```bash
23
-
npm install magikfake
20
+
npm install magikfake@beta
24
21
```
25
22
26
23
---
@@ -31,7 +28,7 @@ Use it for testing now.
31
28
32
29
---
33
30
34
-
## Introduction
31
+
## 🪄 Introduction
35
32
36
33
Magikfake was created to leverage the power of **AI** in generating data that closely resembles real-world data.
37
34
@@ -51,7 +48,7 @@ For each property defined, the system analyzes the key and type to generate the
51
48
52
49
Unlike other fake data generation systems, Magikfake simplifies schema definition by allowing the user to assign a **primitive** type (**string**, **number**, **date**, **boolean**, **objectId**, etc...) to each property, without the need for a custom type to obtain the desired value.
53
50
54
-
## Usage and access limits
51
+
## 💻 Usage and access limits
55
52
56
53
To use Magikfake's library for generating fake data, users must obtain an API key. This can be done by registering for an account on the Magikfake website at the following link: https://app.magikfake.com.
57
54
@@ -65,11 +62,11 @@ By obtaining an API key and subscribing to a Magikfake plan, users can quickly a
65
62
| Standard | Available in the official version | Available in the official version |
66
63
| Pro | Available in the official version | Available in the official version |
67
64
68
-
## Try it online
65
+
## ⚡️ Try it online
69
66
70
67
You can try Magikfake online by visiting https://magikfake.com. 1,000,000 tokens are available daily and shared among site users. If you run out of tokens, you can register on the site to take advantage of the 25,000 tokens available monthly.
71
68
72
-
## Supported types and validations
69
+
## 📖 Supported types and validations
73
70
74
71
Magikfake supports a variety of primitive types that can be assigned to the properties in the schema.
75
72
@@ -161,7 +158,7 @@ The types supported are:
161
158
| <prelang="json">{ "users": [ { "id": "objectId", "firstName": "string", "lastName": "string", "age": "number", "isFirstLogin": "boolean", "birthDate": "date" } ] }</pre>or<prelang="json">{ "users": { "type": [{ "id": "objectId", "firstName": "string", "lastName": "string", "age": "number", "isFirstLogin": "boolean", "birthDate": "date" }] } }</pre> | the **users** field of type **array** indicates a list of values of type object, where it is possible to define fields of various types. |
162
159
163
160
164
-
## Schema example
161
+
## 📜 Schema example
165
162
166
163
Here is a schema example with various types of fields:
167
164
@@ -202,7 +199,7 @@ The fake data generated will have this type of structure:
202
199
The result will try to provide a compatibility between the keys and the types, this to make the data as truthful as possible.
203
200
204
201
205
-
## Fake data
202
+
## 🎯 Fake data
206
203
207
204
### Generate fake data
208
205
@@ -230,8 +227,8 @@ const client = new Client({apiKey: 'your-api-key'});
230
227
const query = {
231
228
language: Language.en, // required: The values available are: en, it, es, de, fr.
232
229
topic: 'user', // required: A casual string that represents the topic
233
-
context: Context.library// optional: The business context of your data. It is possible to choose certain values. See Context enum values.
234
-
limit: 4// optional: The number of records to generate.
230
+
context: Context.library,// optional: The business context of your data. It is possible to choose certain values. See Context enum values.
231
+
limit: 4,// optional: The number of records to generate.
When using the methods provided by the Magikfake library, it is possible that an exception may be raised. If this occurs, the user will receive an error message indicating the nature of the issue.
673
671
@@ -681,7 +679,7 @@ Some of the errors that may be encountered include:
681
679
In any of these cases, the user should review their code and make any necessary corrections or updates to address the error. By working with the Magikfake library and handling errors appropriately, users can generate high-quality, realistic fake data for a variety of purposes.
682
680
683
681
684
-
## Supports and issue
682
+
## 🆘 Support and issue
685
683
686
684
If you need support you can contact us at the following email: [email protected].
0 commit comments