{"id":19570343,"url":"https://github.com/manjushsh/mock-data-provider-express","last_synced_at":"2026-05-13T08:03:58.037Z","repository":{"id":42535009,"uuid":"445495368","full_name":"manjushsh/mock-data-provider-express","owner":"manjushsh","description":"Dummy data generation API","archived":false,"fork":false,"pushed_at":"2023-03-07T01:24:25.000Z","size":666,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T02:51:35.031Z","etag":null,"topics":["api","dummy-data","fakerjs"],"latest_commit_sha":null,"homepage":"https://mock-data-provider.herokuapp.com/","language":"TypeScript","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/manjushsh.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":"2022-01-07T11:17:14.000Z","updated_at":"2022-02-23T04:23:25.000Z","dependencies_parsed_at":"2025-01-09T03:02:28.549Z","dependency_job_id":null,"html_url":"https://github.com/manjushsh/mock-data-provider-express","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manjushsh%2Fmock-data-provider-express","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manjushsh%2Fmock-data-provider-express/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manjushsh%2Fmock-data-provider-express/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manjushsh%2Fmock-data-provider-express/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manjushsh","download_url":"https://codeload.github.com/manjushsh/mock-data-provider-express/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240833910,"owners_count":19865228,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api","dummy-data","fakerjs"],"created_at":"2024-11-11T06:14:44.250Z","updated_at":"2026-05-13T08:03:58.007Z","avatar_url":"https://github.com/manjushsh.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![CodeQL](https://github.com/manjushsh/mock-data-provider-express/actions/workflows/main.yml/badge.svg)](https://github.com/manjushsh/mock-data-provider-express/actions/workflows/main.yml)\n\n# Mock Data Generator\n\nEasy dummy data generation using Faker.js [https://www.npmjs.com/package/faker/v/5.5.3]\n\n## API Reference\n\n#### Get all options\n\n```https\n  GET /available-options\n```\ncURL:\n```bash\ncurl --location --request GET 'https://mock-data-provider.herokuapp.com/available-options' \\\n--header 'Content-Type: application/json'\n```\nReturns object of languages and keys available to customize Data response.\n\n\n#### Get data by type\n\n```https\n  GET /api/:type\n```\ncURL:\n```bash\ncurl --location --request GET 'https://mock-data-provider.herokuapp.com/api/name' \\\n--header 'Content-Type: application/json'\n```\nTakes Faker key and returns data as per key. If not passed, all data will be returned.\n\n| Parameter | Type     | Description                 |\n| :-------- | :------- | :-------------------------- |\n| `type`    | `string` | *Optional*. type to fetch |\n\n#### Get data by type and language\n\n```https\n  GET /api/:type/:locale\n```\ncURL - both present:\n```bash\ncurl --location --request GET 'https://mock-data-provider.herokuapp.com/api/name/es' \\\n--header 'Content-Type: application/json'\n```\ncURL - Only locale: \n```bash\ncurl --location --request GET 'https://mock-data-provider.herokuapp.com/api/es' \\\n--header 'Content-Type: application/json'\n```\nTakes Faker key and language to return data as per key and locale. If type not passed, all data will be returned in that locale.\n\n| Parameter | Type     | Description                     |\n| :-------- | :------- | :------------------------------ |\n| `type`    | `string` | *Optional*. type to fetch     |\n| `locale`  | `string` | *Optional*. language to fetch |\n\n#### Get Placeholder Image\n\n```https\n  POST /api/placeholder\n```\n\nWith given body parameters, returns base64 image. Pass JSON parameters in request body.\n\n| Parameter         | Type     | Description                        |\n| :---------------- | :------- | :--------------------------------- |\n| `text`            | `string` | _Optional_. Text to display        |\n| `width`           | `number` | _Optional_. Image width            |\n| `height`          | `number` | _Optional_. Image height           |\n| `fontSize`        | `string` | _Optional_. Image text size in px  |\n| `backgroundColor` | `string` | _Optional_. Image background color |\n| `textColor`       | `string` | _Optional_. Image text color       |\n\nExample body of request:\n\n```json\n{\n  \"text\": \"Placeholder Text\",\n  \"width\": 1920,\n  \"height\": 1080,\n  \"fontSize\": \"24px\",\n  \"backgroundColor\": \"#ACACAC\",\n  \"textColor\": \"#FEFEFF\"\n}\n```\ncURL:\n```bash\ncurl --location --request POST 'https://mock-data-provider.herokuapp.com/api/placeholder' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"text\": \"Placeholder\",\n    \"width\": 1920,\n    \"height\": 1080,\n    \"fontSize\": \"24px\",\n    \"backgroundColor\": \"#ACACAC\",\n    \"textColor\": \"#FEFEFF\"\n}'\n```\n\n\n# How to run locally:\n\n- Clone the repository\n\n```bash\ngit clone https://github.com/manjushsh/fake-data-provider.git\n```\n\n- Start Server\n\n```bash\ncd fake-data-provider\nnpm install\nnpm run start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanjushsh%2Fmock-data-provider-express","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanjushsh%2Fmock-data-provider-express","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanjushsh%2Fmock-data-provider-express/lists"}