@model-match/create
v0.2.0
Published
Scaffold and deploy Model Match API example apps.
Readme
@model-match/create
Scaffold and deploy Model Match API example apps.
npm create @model-match
# or target a specific template
npm create @model-match -- --template company-reportHow it works
Every example under apps/* owns a template.json — the single source of
truth for its deploy-time variables and auth model. From it we generate the CLI
prompts, the Vercel/Netlify deploy-button URLs, each app's netlify.toml and
.env.example, and the "Deploy" buttons in the docs.
src/manifest.ts— thetemplate.jsonschema (Zod) + validator.src/gen.ts— pure generators (deploy URLs,netlify.toml,.env.example, docs buttons). No FS/network; unit-testable.src/registry.ts— filesystem discovery ofapps/*/template.json.src/cli.ts— the clack CLI.src/templates.generated.ts— the registry the CLI bundles (produced bynpm run genat the repo root; do not edit).
Non-interactive
CLAUDECODE=1 npm create @model-match -- \
--template company-report \
--var COMPANY_NMLS=123456 \
--var MODEL_MATCH_API_KEY=mm_live_… \
--deploy vercelAnything without a default in the manifest must be supplied via --var.
Regenerate derived files
After editing any template.json:
npm run gen # from the repo root