create-nifra
v3.3.0
Published
Scaffold a new nifra app - `bun create nifra <dir>`.
Maintainers
Readme
create-nifra
Scaffold a new nifra app.
bun create nifra my-app
# or: npm create nifra my-appTemplates
--template <name> (default api):
api- a typed nifra server (src/app.ts+src/index.ts) with an example test anddev/start/test/typecheckscripts.site- the full-stack template: a nifra + React SSR site (file-routed frontend + typedbackend.ts), one source deployable to Cloudflare Pages, Node, Deno, or Vercel Edge. Pick the frontend with--framework react|preact|vue|solid|svelte.isr- a nifra + React app with Incremental Static Regeneration on Cloudflare Workers + KV (pages cached + served stale-while-revalidate; on-demand purge endpoint).batteries- theapistarter plus the batteries a real API needs: background jobs (@nifrajs/jobs), a TTL cache (@nifrajs/cache), blob storage (@nifrajs/storage), and cursor pagination (@nifrajs/schema).
bun create nifra my-app --template isrThen:
cd my-app
bun install
bun run devMIT.
For AI agents
Start with LLM.md - this package's contract card (the exports you call + its footguns),
one cheap read instead of the whole corpus. For the wider framework: the repo's
AGENTS.md is the copy-paste quick reference, and
llms-full.txt is the full machine-readable corpus. Run nifra check as the
done-gate, or nifra mcp to give the agent live project tools.
