Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

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

TermsPrivacyAboutGitHubRSS
  1. Home
  2. JSON
  3. JSON Schema + Faker

JSON Schema + Faker

MITJavaScriptv0.6.3

Generate realistic fake JSON data from JSON Schema definitions with zero production dependencies.

Visit WebsiteGitHubGitHub
3.4k stars343 forks0 contributors

What is JSON Schema + Faker?

JSON Schema Faker is a library that generates fake JSON data from JSON Schema definitions. It solves the problem of creating realistic mock data for testing APIs, databases, and applications by automatically producing data that conforms to specified schema constraints. The tool supports advanced JSON Schema features and integrates with popular fake data libraries.

Target Audience

Developers and QA engineers who need to generate mock data for testing, prototyping, or development environments, especially those working with JSON-based APIs or data validation systems.

Value Proposition

Developers choose JSON Schema Faker for its zero production dependencies, deterministic output via seeded generation, and extensibility through custom formats and integrations with faker.js/chance.js, making it a reliable and flexible tool for data-driven testing.

Overview

JSON-Schema + fake data generators

Use Cases

Best For

  • Generating mock API responses for frontend development
  • Creating test data for database seeding and validation
  • Prototyping applications with realistic fake data
  • Testing JSON Schema validation and compliance
  • Automating data generation in CI/CD pipelines
  • Building demo datasets for documentation or tutorials

Not Ideal For

  • Projects requiring ultra-fast, high-volume data generation without schema validation overhead
  • Environments constrained to synchronous-only execution models
  • Teams with existing mock data pipelines using incompatible or legacy tools
  • Use cases where data diversity and randomness are prioritized over strict schema adherence

Pros & Cons

Pros

Comprehensive JSON Schema Support

Supports 2019-09 and 2020-12 drafts with composition keywords like allOf, anyOf, and oneOf, ensuring modern schema compatibility.

Deterministic Data Generation

Uses seeded PRNG (Mulberry32) for reproducible output across runs, critical for consistent testing and debugging.

Extensible with Popular Libraries

Integrates with faker.js and chance.js for realistic data like names and emails, as shown in the extensions example with automatic type casting.

Customization and Remote References

Allows custom format registration via registerFormat() and remote $ref resolution via createRemoteResolver(), enhancing flexibility for complex schemas.

CLI and Cross-Platform Binaries

Includes a command-line interface and standalone binaries for Linux, macOS, and Windows, facilitating easy integration into various workflows.

Cons

Async-Only API

The generate function returns a Promise, which complicates synchronous codebases and requires additional handling for simple use cases.

Breaking Changes from Legacy

Rewritten in TypeScript for Bun with migration notes required, indicating potential incompatibilities for older integrations, as mentioned in the README.

Limited Built-in Realism

Without faker.js or chance.js extensions, built-in format generators are basic, relying on external libraries for realistic data like names and addresses.

Complex Advanced Setup

Setting up custom keywords with define() and remote resolvers can be intricate, requiring careful handling of context and state, as detailed in the API.

Frequently Asked Questions

Quick Stats

Stars3,447
Forks343
Contributors0
Open Issues1
Last commit2 months ago
CreatedSince 2014

Tags

#developer-tools#fake-data#mock-data#cli-tool#json-schema#typescript#data-generation#testing

Built With

T
TypeScript
B
Bun

Links & Resources

Website

Included in

JSON1.5k
Auto-fetched 1 day ago

Related Projects

jsonschema2pojojsonschema2pojo

Generate Java types from JSON or JSON Schema and annotate those types for data-binding with Jackson, Gson, etc

Stars6,379
Forks1,669
Last commit5 months ago
prmdprmd

JSON Schema tools and doc generation for HTTP APIs

Stars2,086
Forks169
Last commit1 year ago
JSON Schema $Ref ParserJSON Schema $Ref Parser

Parse, Resolve, and Dereference JSON Schema $ref pointers in Node and browsers

Stars1,115
Forks250
Last commit11 days ago
generate-schemagenerate-schema

🧞 Convert JSON Objects to MySQL, JSON Schema, Mongoose, Google BigQuery, Swagger, and more.

Stars1,073
Forks134
Last commit2 years ago
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