@lxgicstudios/ai-mock-data
v1.0.1
Published
AI-powered mock data generator - create realistic test fixtures from types, schemas, or descriptions using GPT
Maintainers
Readme
ai-mock-data
AI-powered mock data generator. Create realistic test fixtures without writing faker configs.
Need test data that doesn't look like garbage? Describe what you want and get back realistic mock data. Way better than writing faker.js configs by hand.
Install
npm install -g ai-mock-dataUsage
# Simple description
npx ai-mock-data "users with name, email, age" --count 50
# Get CSV instead
npx ai-mock-data "product catalog with prices" --count 100 --format csv
# SQL inserts
npx ai-mock-data "blog posts with authors" --format sql --count 20
# From a schema file
npx ai-mock-data "users" --schema types/User.ts --count 50
# Save to file
npx ai-mock-data "orders" --count 200 -o mock-orders.jsonSetup
export OPENAI_API_KEY=your-key-hereOptions
-c, --count <number>- How many records (default 10)-f, --format <fmt>- json, csv, or sql (default json)-s, --schema <file>- TS type or JSON schema file to match-o, --output <file>- Write to a file
License
MIT
