MockForge AI Relational Mock Database & Fixture Generator

io.github.RitualDev-Lab由 GitHub 账号 RitualDev-Lab 发布v0.1.1更新于 Nov 7, 2026

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

发布方自己的服务:fixture.email — Email Testing for Agents

概览

AI 生成的概览

根据 SQL 或 Prisma 模式生成关系型模拟数据库与种子数据,并通过拓扑排序保证外键完整。

可以做什么
  • 解析 SQL DDL、Prisma/Drizzle 模式或 OpenAPI 规范,构建表与外键依赖图。
  • 按依赖顺序合成模拟数据行,使插入满足外键与唯一约束。
  • 在内置 SQLite 数据库中校验生成的数据。
  • 导出为 SQL 插入脚本、嵌套 JSON、CSV 包、Prisma/TypeScript 种子文件或 Python pytest 夹具。
  • 按 README 的企业功能部分,还可生成模拟 API 服务或对生产快照做脱敏。
适用场景
适合需要为集成测试、CI 流水线或本地开发准备逼真种子数据、又不想搭建预发布数据库的场景,也适合静态 JSON 夹具在模式迁移后频繁失效的情况。
运行要求
以本地 stdio 进程运行,从 npm 包安装;README 还提到 CLI、Python SDK 和托管边缘 API。README 称生成过程使用 Gemini 1.5 Flash,但清单未声明任何 API 密钥或环境变量。
安装前请注意
README 提到可将脱敏后的生产快照导入以做数据掩码;由于还涉及 Gemini 模型和托管边缘端点,发送任何真实客户数据前应仔细评估。生成的夹具与导出内容会写入文件。README 称该软件为专有商业软件,并提供企业授权联系方式。

安装

在 SourceWeft 中

  1. 打开 控制台中的 MockForge AI Relational Mock Database & Fixture Generator,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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.

来源:README.md,提交 8f6dc50

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Nov 7, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Fixture 集成