{"id":15091336,"url":"https://github.com/10kartik/ai-mock-api-generator","last_synced_at":"2026-01-04T23:02:03.667Z","repository":{"id":193435893,"uuid":"685593626","full_name":"10kartik/AI-Mock-API-Generator","owner":"10kartik","description":"TrueSparrow Hackathon 2023","archived":false,"fork":false,"pushed_at":"2024-02-06T19:32:52.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T10:48:30.373Z","etag":null,"topics":["api-mocker","nodejs","npm","openai","openapi-specification","rest-api"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/ai-mock-api-generator","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/10kartik.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":"2023-08-31T15:20:58.000Z","updated_at":"2024-02-06T19:24:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"948ab828-21c6-48d4-84c0-9d8a8a6c8f01","html_url":"https://github.com/10kartik/AI-Mock-API-Generator","commit_stats":null,"previous_names":["10kartik/ai-mock-api-generator"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10kartik%2FAI-Mock-API-Generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10kartik%2FAI-Mock-API-Generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10kartik%2FAI-Mock-API-Generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/10kartik%2FAI-Mock-API-Generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/10kartik","download_url":"https://codeload.github.com/10kartik/AI-Mock-API-Generator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244945590,"owners_count":20536296,"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-mocker","nodejs","npm","openai","openapi-specification","rest-api"],"created_at":"2024-09-25T10:40:28.641Z","updated_at":"2026-01-04T23:02:03.574Z","avatar_url":"https://github.com/10kartik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI-Mock-API-Generator\n\n![alt text](logo.png)\n\n\u003cb\u003eTrueSparrow Hackathon September 2023 - The Stellar Showcase Winner\u003c/b\u003e\n\n### AI Mock API Generator\n\nThis is an NPM package that utilizes OpenAI's GPT 3.5Turbo to generate mock responses for APIs specified in OpenAPI specs. The package accepts OpenAI key and multiple OpenAPI specs in YAML or JSON format as input, and generates mock responses in JSON for the provided APIs.\n\n### Why Use This Package?\n\nDuring the development phase of a backend system, it's essential to have a reliable and efficient way to test and integrate the frontend with the backend APIs. However, waiting for the backend to be fully implemented can be a bottleneck in the development process, causing delays and hindering frontend development.\n\nThis NPM package addresses this challenge by leveraging the power of OpenAI's GPT-3.5 Turbo to generate mock responses for APIs defined in OpenAPI specifications. Here's why you might want to consider using this package:\n\n#### Accelerate Frontend Development\n\n- \u003cb\u003eSeamless Integration\u003c/b\u003e: This package allows frontend developers to work on their components and interfaces without waiting for the backend to be fully implemented. It provides realistic mock data responses for specified APIs, enabling seamless integration between frontend and backend components from the early stages of development.\n\n- \u003cb\u003eFaster Iterations\u003c/b\u003e: By using mock data generated by GPT-3.5 Turbo, frontend teams can iterate more quickly, test various scenarios, and refine their user interfaces without dependency on the backend development progress.\n\n#### Minimize Bugs and Issues\n\n- \u003cb\u003eEarly Bug Detection\u003c/b\u003e: Integrating the frontend with mock API responses early in the development process helps identify potential issues and bugs sooner rather than later. This proactive approach can significantly reduce the number of bugs that might emerge during the later stages of development.\n\n- \u003cb\u003eImproved Collaboration\u003c/b\u003e: The package facilitates collaboration between frontend and backend teams. Frontend developers can create realistic user experiences based on mock data, providing valuable feedback to backend developers, which ultimately results in a more robust and user-friendly application.\n\nIn summary, this NPM package serves as a valuable tool to bridge the gap between frontend and backend development during the initial phases of your project. It empowers frontend teams to work independently, accelerates development, and contributes to the overall quality of your application by minimizing integration challenges and reducing the likelihood of bugs in later stages.\n\n### Usage\n\nTo use the package, run the following command:\n\n```\nnode src/index.js --open-api-specification-folder-path /path/to/openapi/specs\n```\n\nSet `OPENAI_API_KEY` in the environment process, and provide folder path to OpenAPI specification with flag `--open-api-specification-folder-path` with the path to the folder containing your OpenAPI specs.\n\nThe package will read these input values, use the OpenAI key to interact with GPT 3.5 Turbo, and provide OpenAPI spec to the AI. The AI will then generate mock responses in JSON format for the provided APIs.\n\n**Note:** As of now package supports JSON formatted API Specification. You can use https://editor.swagger.io/ to make sure your OpenAPI Specification is valid.\n\n### License\n\nThis project is licensed under the MIT [License](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10kartik%2Fai-mock-api-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F10kartik%2Fai-mock-api-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F10kartik%2Fai-mock-api-generator/lists"}