MockForge AI Relational Mock Database & Fixture Generator

io.github.RitualDev-LabPublished by GitHub account RitualDev-Labv0.1.1Updated Nov 7, 2026

Zero-cost relational mock DB and synthetic fixture generator with Kahn DAG integrity for AI agents

The publisher's own server: fixture.email — Email Testing for Agents

Overview

AI-generated overview

Generates relational mock databases and seed fixtures from SQL or Prisma schemas, keeping foreign keys valid via topological ordering.

What you can do
  • Parse SQL DDL, Prisma/Drizzle schemas or OpenAPI specs into a table and foreign-key graph.
  • Synthesize synthetic rows in dependency order so inserts satisfy foreign-key and unique constraints.
  • Validate generated data against an in-memory SQLite database.
  • Export results as SQL inserts, nested JSON, CSV bundles, Prisma/TypeScript seeders or Python pytest fixtures.
  • Optionally produce mock API servers or masked copies of production snapshots, per the README's enterprise section.
When to use it
Useful when you need realistic seed data for integration tests, CI pipelines or local development without provisioning a staging database, or when static JSON fixtures keep breaking after schema migrations.
Requirements
Runs as a local stdio process installed from the npm package; the README also mentions a CLI, a Python SDK and a hosted edge API. The README states generation uses Gemini 1.5 Flash, but no API key or environment variable is declared in the manifest.
Before you install
The README describes piping sanitized production snapshots through the tool for masking; review carefully before sending any real customer data, since the README also mentions a Gemini model and a hosted edge endpoint. Generated fixtures and exports are written to files. The README calls the software proprietary and commercial, with enterprise licensing contacts.

Installation

In SourceWeft

  1. Open MockForge AI Relational Mock Database & Fixture Generator in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

🎲 MockForge AI

Intelligent In-Browser Relational Mock DB & Seed Data Synthesizer

[GitHub Release] [CLI Tool] [Python SDK] [NPM Package] [License] [Zero VPS Cost]

MockForge AI is a blazing-fast, zero-cloud-overhead relational mock database and seed synthesizer. Powered by Kahn's Topological DAG Sorter, an in-browser WebAssembly SQLite engine, and Gemini 1.5 Flash, MockForge generates millions of synthetic rows with 100% foreign-key integrity at 88,000+ rows/second — completely in-memory with $0 cloud compute overhead ($0 VPS).

Download Release • CLI Quickstart • Python SDK • Architecture • Enterprise Features • Examples


⚡ The Problem: Relational Seed Data Hell

Developers and QA engineers waste hundreds of hours manually authoring seed fixtures:

  • Foreign Key Violations: Inserting orders before users crashes integration tests with integrity constraint failures.
  • Rotting Test Fixtures: Schema migrations (Prisma, Drizzle, Alembic) invalidate static JSON mocks, forcing manual updates.
  • PII & Compliance Risks: Copying sanitized production databases into staging frequently violates HIPAA, GDPR, and SOC 2.
  • Cloud Database Costs: Provisioning staging database instances for every CI/CD runner inflates infrastructure bills.

MockForge solves this by parsing SQL DDL or Prisma schemas, building a dependency DAG, and synthesizing millions of coherent relational rows directly inside your CI/CD runner or browser.


🏛️ Architecture

MockForge runs entirely client-side or in ephemeral serverless edge runtimes with zero external database dependencies:

mermaid
flowchart TD    subgraph Inputs["Schema Input Layer"]        DDL["SQL DDL (Postgres / MySQL / SQLite)"]        Prisma["Prisma / Drizzle Schema"]        OpenAPI["OpenAPI / Swagger Spec"]    end
    subgraph CoreEngine["MockForge In-Memory Engine (< 88,000 rows/sec)"]        Parser["AST Schema Parser & Foreign Key Graph Builder"]        DAGSorter["Kahn's Topological DAG Sorter\n(Resolves Insertion Hierarchy & Cycles)"]        Generator["Deterministic Synthetic Generator\n(Context-Aware Faker + Gemini 1.5 Flash)"]        WASMDB["In-Memory WebAssembly SQLite Database\n(Real-Time FK & Unique Constraint Validator)"]    end
    subgraph Exporters["Multi-Format Exporter Layer"]        SQLExp["SQL INSERT Scripts (.sql)"]        JSONExp["Nested Relational JSON"]        CSVExp["Relational CSV Bundles"]        PyExp["Pytest Fixtures (Python)"]        TSExp["TypeScript / Prisma Seeders"]    end
    subgraph ZeroCostEdge["Serverless Edge (api.mockforge.io)"]        CFWorkers["Cloudflare Workers (Headless CI/CD Seed API)"]    end
    Inputs --> Parser    Parser --> DAGSorter    DAGSorter --> Generator    Generator --> WASMDB    WASMDB --> SQLExp & JSONExp & CSVExp & PyExp & TSExp    CFWorkers -.->|Headless DDL-to-Seed API| CoreEngine

🚀 Quickstart

1. CLI Quickstart

Download the pre-compiled binary from Latest Releases or install via npm:

bash
npm install -g @ritualdev/mockforge

Generate 1,000 relational records with foreign key integrity from any SQL schema:

bash
mockforge generate ./examples/schema.sql --count 1000 --format sql -o seed.sql

Supported output formats: --format sql, --format json, --format csv, --format prisma.


2. Python SDK Quickstart (pip install mockforge)

Ideal for Pytest fixtures, Django, SQLAlchemy, and automated testing pipelines:

python
from mockforge import RelationalSynthesizer
# Define your schemaschema = """CREATE TABLE users (id INTEGER PRIMARY KEY, name TEXT, email TEXT);CREATE TABLE orders (id INTEGER PRIMARY KEY, user_id INTEGER REFERENCES users(id), amount REAL);"""
# Synthesize relational datasetsynthesizer = RelationalSynthesizer()seed_sql = synthesizer.generate_from_ddl(    schema,    row_counts={"users": 50, "orders": 200})
print(seed_sql[:200])# All foreign keys are guaranteed valid and resolved in topological order!

See examples/pytest_fixtures.py for a complete pytest integration guide.


3. Node.js / TypeScript SDK

bash
npm install @ritualdev/mockforge
typescript
import { MockForgeEngine } from '@ritualdev/mockforge';
const engine = new MockForgeEngine();const result = await engine.synthesizeFromSql(`  CREATE TABLE customers (id INT PRIMARY KEY, name VARCHAR(100));  CREATE TABLE invoices (id INT PRIMARY KEY, customer_id INT REFERENCES customers(id), total DECIMAL);`, { count: 500 });
console.log(`Generated ${result.totalRows} rows across ${result.tables.length} tables in ${result.elapsedMs}ms`);

🏢 Enterprise Features ($50K–$250K ACV Capabilities)

  • 🛡️ Production Database Masking & Anonymization (HIPAA / GDPR / SOC 2): Pipe sanitized snapshots of live Postgres/MySQL production databases through MockForge to replace real customer names, SSNs, and credit cards with synthetically coherent mock data while preserving 100% of foreign-key relationships.
  • 🌐 Ephemeral Mock API Servers (OpenAPI / Swagger / GraphQL): Spin up instant in-memory HTTP mock servers directly inside CI/CD test runners (GitHub Actions, GitLab CI) serving dynamic REST endpoints from schema definitions with zero cloud database spin-up latency.
  • 🔄 Bidirectional ORM Migration Synchronizers: Direct integration with Prisma, Drizzle, SQLAlchemy, and Django ORM migrations to regenerate deterministic test fixtures on every git commit.

📊 Performance Benchmarks

  • Throughput: 88,000+ rows/second generated and validated in-memory.
  • Foreign Key Accuracy: 100% validity across 10,000+ relational test permutations.
  • Infrastructure Cost: $0.00 / month ($0 VPS, $0 cloud database costs).
  • Test Verification: 58 / 58 passing tests across Node.js, WebAssembly, and Python 3.8+.

🤝 Community & Support

  • Feature Requests & Bug Reports: Open an issue in our Public Issue Tracker.
  • Enterprise Licensing: Contact [email protected] for multi-seat volume licensing, database masking pipelines, and custom ORM synchronizers.
  • Core Development: Developed and maintained by RitualDev Studio.

Copyright © 2026 RitualDev Studio. Proprietary Commercial Software. All Rights Reserved.

Source: README.md at commit 8f6dc50

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.1LatestNov 7, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.

Other Fixture integrations