Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. GraphQL
  3. GraphQL Faker

GraphQL Faker

MITTypeScript

Mock or extend GraphQL APIs with realistic fake data using directives, no coding required.

GitHubGitHub
2.7k stars229 forks0 contributors

What is GraphQL Faker?

GraphQL Faker is a tool that mocks or extends GraphQL APIs with realistic fake data. It allows developers to create a functional GraphQL server using only GraphQL SDL and custom directives, enabling parallel development without a real backend. It solves the problem of frontend teams waiting for backend APIs to be ready by providing instant, realistic mock data.

Target Audience

GraphQL developers, frontend engineers, and full-stack teams who need to mock APIs for development, testing, or prototyping. It's especially useful for teams practicing API-first development or working in parallel on frontend and backend.

Value Proposition

Developers choose GraphQL Faker because it requires no coding, integrates seamlessly with existing GraphQL APIs via proxying, and offers a rich set of fake data types with an intuitive directive-based approach. Its interactive editor and autocompletion make it easy to use without memorizing syntax.

Overview

🎲 Mock or extend your GraphQL API with faked data. No coding required.

Use Cases

Best For

  • Mocking GraphQL APIs during frontend development when the backend is not ready
  • Extending existing GraphQL APIs with additional fake data for testing new features
  • Creating realistic prototypes and demos without a real backend
  • Testing GraphQL queries and mutations with varied fake data scenarios
  • Enabling parallel development between frontend and backend teams
  • Generating fake data for GraphQL schemas using SDL directives

Not Ideal For

  • Production environments where data integrity, security, and real backend logic are critical
  • Projects using REST, gRPC, or other non-GraphQL API specifications
  • Teams needing stateful mocks or complex business logic simulation beyond static data generation
  • Scenarios requiring high-performance, scalable mock servers for load testing or large-scale simulations

Pros & Cons

Pros

No-Code Mock Setup

Operates entirely through GraphQL SDL with custom directives like @fake and @examples, eliminating the need for custom JavaScript code to generate mock data.

Rich Fake Data Library

Integrates 60+ faker types from faker.js with support for multiple locales, providing realistic data such as names, addresses, and images directly in the SDL.

Seamless API Extension

Can proxy real GraphQL APIs and extend them with faked data using the --extend flag, enabling incremental development and testing without disrupting existing endpoints.

Interactive Development Experience

Includes an embedded SDL editor with autocompletion for directives and an integrated GraphiQL interface, streamlining mock configuration and query testing.

Cons

GraphQL-Only Limitation

Exclusively designed for GraphQL APIs, making it unsuitable for teams working with REST, gRPC, or other protocols, which restricts its utility in mixed-stack projects.

Static Mocking Constraints

Relies on predefined directives for data generation, lacking support for dynamic or stateful mocking scenarios that require custom JavaScript logic or conditional responses.

Dependency on Faker.js

Data generation capabilities are tied to faker.js, so if specific data types are not covered, users have limited options without external workarounds or modifications.

Frequently Asked Questions

Quick Stats

Stars2,712
Forks229
Contributors0
Open Issues47
Last commit2 years ago
CreatedSince 2017

Tags

#api#fake-data#graphql#api-mocking#idl#mock#docker#faker#development-tools#graphql-server#graphql-tooling

Built With

N
Node.js
D
Docker

Included in

GraphQL15.0k
Auto-fetched 5 hours ago

Related Projects

mockdmockd

High-performance, multi-protocol mock server. HTTP, WebSocket, gRPC, MQTT, SSE, GraphQL, SOAP in one binary.

Stars132
Forks5
Last commit3 days ago
graphql-to-karategraphql-to-karate

Automagically generate Karate API tests from your GraphQL schemas. Useful for test-driven development, change validation in CI/CD, and more.

Stars17
Forks1
Last commit5 hours ago
MicrocksMicrocks

The open source (CNCF project), cloud native tool for API Mocking and Testing with GraphQL support 🎥 GraphQL conf 2023

Stars0
Forks0
Last commit
Step CIStep CI

Open-Source API Testing and Monitoring with GraphQL support

Stars0
Forks0
Last commit
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub