
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
概览
根据 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 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 MockForge AI Relational Mock Database & Fixture Generator,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
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
ordersbeforeuserscrashes 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:
🚀 Quickstart
1. CLI Quickstart
Download the pre-compiled binary from Latest Releases or install via npm:
Generate 1,000 relational records with foreign key integrity from any SQL schema:
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:
See examples/pytest_fixtures.py for a complete pytest integration guide.
3. Node.js / TypeScript SDK
🏢 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.
来源:README.md,提交 8f6dc50
工具
0版本历史
1- v0.1.1最新Nov 7, 2026
评分
已满足适用检查项的 40%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分
请在仓库或注册中心条目中声明许可证。