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 整合