{"id":24075808,"url":"https://github.com/fancygrid/fancydata","last_synced_at":"2026-04-02T01:14:00.204Z","repository":{"id":251734072,"uuid":"152402884","full_name":"FancyGrid/FancyData","owner":"FancyGrid","description":"JavaScript Mockup Data Generation Library","archived":false,"fork":false,"pushed_at":"2018-10-11T10:23:14.000Z","size":87,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-30T05:47:54.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FancyGrid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-10T10:06:55.000Z","updated_at":"2021-02-22T17:09:42.000Z","dependencies_parsed_at":"2024-08-05T12:23:36.111Z","dependency_job_id":null,"html_url":"https://github.com/FancyGrid/FancyData","commit_stats":null,"previous_names":["fancygrid/fancydata"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FancyGrid/FancyData","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2FFancyData","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2FFancyData/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2FFancyData/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2FFancyData/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FancyGrid","download_url":"https://codeload.github.com/FancyGrid/FancyData/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FancyGrid%2FFancyData/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293735,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T01:05:07.454Z","status":"ssl_error","status_checked_at":"2026-04-02T00:56:46.496Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-09T19:29:20.747Z","updated_at":"2026-04-02T01:14:00.157Z","avatar_url":"https://github.com/FancyGrid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FancyData\n\nFancyData - JavaScript Mockup Data Generation Library\n\n## *Install*\n```\nnpm install fancy-data\n```\n  \n## *Include*\n```\n\u003cscript src=\"/dist/bundle.min.js\"\u003e\u003c/script\u003e\n```\n  \n### *CDN*\n```\n\u003cscript src=\"https://cdn.fancygrid.com/fancydata.min.js\"\u003e\u003c/script\u003e\n```\n\n#### *Sample*\n```js\nnew FancyData({\n  rows: 1000000,\n  indexes: ['id', 'name', 'surname', 'country', 'position', 'email', 'age'],\n  columns: [{\n    type: 'id',\n    index: 'id'\n  },{\n    type: 'name',\n    index: 'name'\n  },{\n    type: 'surname',\n    index: 'surname'\n  },{\n    type: 'country-rich',\n    index: 'country'\n  },{\n    type: 'it-position',\n    index: 'position'\n  },{\n    type: 'email',\n    index: 'email',\n    site: 'google.com'\n  },{\n    type: 'age',\n    min: 20,\n    max: 45,\n    index: 'age'\n  }]\n}).getData({\n  on1000: function(generated, percents, total){\n    console.log(generated, percents, total)\n  },\n  onFinished: function(data){\n    console.log('onFinished', data);\n  }\n});\n```\n  \n### *Core Properties*\n| Name | Type | Description |\n| --- | --- | --- |\n| `columns` | Array | List with columns config |\n| `indexes` | Array | Data indexes, if not provided than it data could contain more options than columns |\n| `rows` | Number | Number of data rows |\n\n### *Column types*\n\n#### *age*\n Age range value from min and max values.  \nBy default min is 0 and max is 100.  \n\n##### *Properties*\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n| `max` | Number |\n| `min` | Number |\n\n##### *Sample*\n```\n{\n  type: 'age',\n  min: 20,\n  max: 45,\n  index: 'age'\n}\n```\n\n#### *boolean*\nBoolean value true or false.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'boolean',\n  index: 'married'\n}\n```\n\n#### *company*\nRandom company from small list.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'company',\n  index: 'company'\n}\n```\n\n#### *country*\nRandom country from almost all countries list.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'country',\n  index: 'country'\n}\n```\n\n#### *country-rich*\nRandom rich country.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'country-rich',\n  index: 'country'\n}\n```\n\n#### *date*\nDate value in format 'm.d.Y' by default between min 1970.1.1 and current date.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n| `format` | String |\n| `min` | Number |\n| `max` | Number |\n\n##### Sample\n```\n{\n  type: 'date',\n  index: 'birthday',\n  format: 'm/d/Y',\n  min: new Date(1980, 1, 7)\n}\n```\n\n#### *email*\n Person email on base of 'name', 'surname', 'site'.\n'site' is column property but name and surname must be extra columns.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n| `tpl` | String |\n| `site` | Number |\n| `max` | Number |\n\n##### Sample\n```\n{\n  type: 'email',\n  index: 'email',\n  site: 'google.com'\n}\n```\n\n#### *float*\n Float number value with presition between range.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n| `presition` | Number |\n| `min` | Number |\n| `max` | Number |\n\n##### Sample\n```\n{\n  type: 'float',\n  index: 'bank_balance',\n  presition: 2,\n  min: 0,\n  max: 150000\n}\n```\n\n#### *fortune100*\n Company from fortune 100 list.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'fortune100',\n  index: 'company'\n}\n```\n\n#### *fortune500*\n Company from fortune 500 list.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'fortune500',\n  index: 'company'\n}\n```\n\n#### *gender*\n Person gender, possible values: 'male'|'female'.  \nRequires extra column name.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'fortune500',\n  index: 'company'\n}\n```\n\n#### *id*\n Incremental id value start from 1 by default.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n| `min` | Number |\n\n##### Sample\n```\n{\n  type: 'fortune500',\n  index: 'company'\n}\n```\n\n#### *int*\n Integer number value between range.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n| `min` | Number |\n| `max` | Number |\n\n##### Sample\n```\n{\n  type: 'int',\n  index: 'value',\n  min: 1000,\n  max: 100000\n}\n```\n\n#### *it-level*\n Proffesional person level.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'it-level',\n  index: 'level'\n}\n```\n\n#### *it-position*\n Person position in tech sphere.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'it-level',\n  index: 'level'\n}\n```\n\n#### *name*\n Person name.\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'name',\n  index: 'name'\n}\n```\n\n#### *salary-year*\n Person salary per year in range\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n| `min` | Number |\n| `max` | Number |\n\n##### Sample\n```\n{\n  type: 'salary-year',\n  index: 'salary'\n}\n```\n\n#### *surname*\n Person surname\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'surname',\n  index: 'surname'\n}\n```\n\n#### *usa-state*\n Random USA state\n##### Properties\n\n| Name | Type |\n| --- | --- |\n| `type` | String |\n| `index` | String |\n\n##### Sample\n```\n{\n  type: 'usa-state',\n  index: 'state'\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancygrid%2Ffancydata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffancygrid%2Ffancydata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffancygrid%2Ffancydata/lists"}