Generate a fully functional fake GraphQL API from a JSON file in under 30 seconds for testing and prototyping.
json-graphql-server is a Node.js tool that generates a fully functional fake GraphQL API from a JSON data file in under 30 seconds. It automatically creates a GraphQL schema with types, queries, mutations, and relationships based on the provided data, allowing developers to instantly start querying and mutating data without writing any GraphQL server code. It solves the problem of needing a backend to learn, test, or prototype GraphQL applications.
Frontend and full-stack developers who are learning GraphQL, need a mock backend for testing UI components, or are prototyping applications that consume GraphQL APIs. It's also useful for educators and teams setting up development environments.
Developers choose json-graphql-server because it eliminates the complexity of setting up a GraphQL server from scratch, providing instant, realistic API interactions with support for relationships, filtering, and pagination. Its zero-code approach and inspiration from json-server make it exceptionally easy to adopt for rapid development and testing.
Get a full fake GraphQL API with zero coding in less than 30 seconds.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Generates a full GraphQL API from a JSON file in under 30 seconds, eliminating the need for manual schema writing. Evidence from README: 'Get a full fake GraphQL API with zero coding in less than 30 seconds.'
Creates two-way relationships for fields ending in `_id`, enabling nested queries without additional configuration. README states: 'For every field named `*_id`, json-graphql-server creates a two-way relationship.'
Supports filtering, sorting, pagination, and full-text search out of the box, as detailed in generated filter types. Evidence: 'The `all*` queries accept parameters to let you sort, paginate, and filter.'
Ships with a built-in GraphiQL interface for easy query testing and autosuggest. README confirms: 'Note that the server is GraphiQL enabled.'
Mutations accept data as a generic string rather than structured input types, making complex updates cumbersome. Evidence: Generated mutation type 'createPost(data: String): Post' shows basic input handling.
Lacks support for GraphQL subscriptions, essential for applications requiring live updates. README roadmap lists 'Subscriptions' as a future addition, indicating it's not currently available.
Relies solely on static JSON files, preventing integration with dynamic data sources or databases. Evidence: Data must be provided as a static object in code or a file, with no built-in persistence.