npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vijaypjavvadi/synthdata

v1.0.0

Published

SynthData (TestForge AI) — schema + business case + LLM key -> realistic, relationally consistent synthetic test data. No production data required.

Readme

@vijaypjavvadi/synthdata

SynthData (TestForge AI) — schema + business case + your LLM API key → realistic, relationally consistent synthetic test data. No production data required.

Part of the TestForge toolchain: sel2pw · bdd2pw · pw-self-heal · usagecontract · synthdata

CLI

# author a plan with AI, then generate — one command
npx @vijaypjavvadi/synthdata run -s schema.sql -c business_case.txt -o data.db -k sk-ant-...

# or step by step
npx @vijaypjavvadi/synthdata plan     -s schema.sql -c business_case.txt -o plan.yaml
npx @vijaypjavvadi/synthdata generate -s schema.sql -P plan.yaml -o data.db --csv out/
  • Providers: Claude (sk-ant-... / ANTHROPIC_API_KEY) and OpenAI (sk-... / OPENAI_API_KEY); auto-detected from the key, or force with -p, model with -m.
  • Outputs: SQLite .db (verified with PRAGMA foreign_key_check), CSV per table (--csv dir), SQL inserts (--sql file).
  • --seed 42 → byte-identical output every run.
  • Node 18+, two small dependencies (sql.js, yaml).

Web app — synthdata.testforge-ai.com

web/index.html is the entire application — one static file, no backend. Paste DDL + business case + API key; the AI call goes directly from the browser to the provider, data is generated in the browser (sql.js WASM), previewed, and downloaded as .db + CSVs. Schema, key, and data never touch the server. Deployment: see deploy/DEPLOY.md.

How it works: LLM plans, engine executes

Asking an LLM to emit data rows breaks referential integrity at volume. SynthData splits the job: the LLM reads your DDL + business case once and writes a small reviewable YAML generation plan. A deterministic engine executes it: FK-dependency ordering, guaranteed-valid foreign keys (including self-references like manager_id), unique-constraint retries (single + composite), CHECK-constraint awareness (enumerations and BETWEEN parsed from the DDL), and full seed reproducibility.

Plan format

seed: 42
tables:
  customers:
    rows: 2000
    columns:
      customer_id:  {gen: sequence}
      email:        {gen: template, format: "user{seq}@example.com", unique: true}
      customer_tier: {gen: choice, values: [STANDARD, SILVER, GOLD, PREMIUM], weights: [70, 15, 10, 5]}
  orders:
    rows: 8000
    columns:
      customer_id:  {gen: fk, distribution: zipf}   # heavy buyers
      order_total:  {gen: lognormal, mu: 7.6, sigma: 0.9, round: 2, min: 99}

Generators: sequence, fk (+zipf), choice, int, float, lognormal, date, datetime, template, const, faker, expr (JS over the row — cross-column rules). Plus null_prob / unique on any column. Unplanned columns get schema-driven defaults.

Layout

bin/cli.js       CLI (plan / generate / run)
src/schema.js    DDL parser (tables, FKs, CHECK IN/BETWEEN, composite UNIQUE)
src/engine.js    seeded deterministic engine
src/fakelite.js  dependency-free fake values (Node + browser identical)
src/llm.js       Claude/OpenAI plan authoring + system prompt
src/export.js    SQLite (sql.js) / CSV / SQL inserts
web/index.html   the whole web app (static, single file)
deploy/          nginx config + steps for synthdata.testforge-ai.com

MIT © Vijay Prasad Javvadi