create-pyra
v0.21.23
Published
Scaffold a new Pyra.js project
Maintainers
Readme
create-pyra
Scaffold a new Pyra.js project with a single command.
Usage
npm create pyra my-appOr with other package managers:
pnpm create pyra my-app
yarn create pyra my-app
bun create pyra my-appIf you omit the project name, you'll be prompted for one interactively.
What You Get
A ready-to-run full-stack project with SSR, file-based routing, and an HMR dev server. Pyra is framework-agnostic by design, it uses a pluggable adapter interface to support any UI layer. The scaffolded project currently ships with React as the default adapter, with support for other frameworks (Svelte, Vue, Solid, etc.) coming soon.
my-app/
├── package.json
├── pyra.config.ts
├── tsconfig.json
├── .gitignore
└── src/
└── routes/
├── layout.tsx # Root layout
├── page.tsx # Home page (/)
├── about/
│ └── page.tsx # About page (/about)
└── api/
└── health/
└── route.ts # Health check endpoint (GET /api/health)Options
| Flag | Description |
|------|-------------|
| --pm <manager> | Package manager to use (npm, pnpm, yarn, bun) |
| --skip-install | Skip automatic dependency installation |
| -h, --help | Show help |
| -v, --version | Show version |
# Use pnpm and skip install
npm create pyra my-app -- --pm pnpm --skip-installAfter Scaffolding
cd my-app
npm run dev # Start dev server with HMR
npm run build # Production build
npm run start # Start production serverLicense
MIT
