|
1 | 1 | # Pyreon Zero |
2 | 2 |
|
3 | | -Zero-config full-stack framework powered by [Pyreon](https://github.com/user/pyreon) and [Vite](https://vite.dev). |
4 | | - |
5 | | -## Packages |
6 | | - |
7 | | -| Package | Description | |
8 | | -| --- | --- | |
9 | | -| [`@pyreon/zero`](packages/zero/) | Core framework — routing, SSR, components, plugins | |
10 | | -| [`zero-cli`](packages/cli/) | CLI for dev, build, and preview | |
11 | | -| [`create-zero`](packages/create-zero/) | Project scaffolding tool | |
| 3 | +Full-stack meta-framework powered by [Pyreon](https://github.com/pyreon/pyreon)'s signal-based reactivity and [Vite](https://vite.dev). |
12 | 4 |
|
13 | 5 | ## Quick Start |
14 | 6 |
|
15 | 7 | ```bash |
16 | | -bun create zero my-app |
| 8 | +bun create @pyreon/zero my-app |
17 | 9 | cd my-app |
| 10 | +bun install |
18 | 11 | bun run dev |
19 | 12 | ``` |
20 | 13 |
|
| 14 | +The interactive CLI lets you pick your rendering mode, features, and AI toolchain. |
| 15 | + |
| 16 | +## Packages |
| 17 | + |
| 18 | +| Package | Description | |
| 19 | +| --- | --- | |
| 20 | +| [`@pyreon/zero`](packages/zero/) | Framework — routing, SSR, components, middleware, plugins | |
| 21 | +| [`@pyreon/meta`](packages/meta/) | Ecosystem barrel — re-exports fundamentals + UI system | |
| 22 | +| [`@pyreon/zero-cli`](packages/cli/) | CLI — dev, build, preview, doctor, context, create | |
| 23 | +| [`@pyreon/create-zero`](packages/create-zero/) | Interactive project scaffolding | |
| 24 | + |
21 | 25 | ## Features |
22 | 26 |
|
23 | | -- File-based routing with layouts, error boundaries, and loading states |
24 | | -- SSR, SSG, ISR, and SPA rendering modes |
25 | | -- Streaming server-side rendering |
26 | | -- Optimized `<Image>`, `<Link>`, and `<Script>` components |
27 | | -- Google Fonts with build-time self-hosting |
28 | | -- Dark/light theme system with no flash |
29 | | -- SEO utilities — sitemap, robots.txt, JSON-LD |
30 | | -- Cache and security middleware |
31 | | -- Node.js, Bun, and static adapters |
| 27 | +**Routing & Rendering** |
| 28 | +- File-based routing with layouts, error boundaries, loading states, route groups |
| 29 | +- SSR (streaming + string), SSG, ISR, SPA rendering modes (per-route configurable) |
| 30 | +- API routes — `.ts` files in `src/routes/api/` with HTTP method handlers |
| 31 | +- Per-route middleware and navigation guards |
| 32 | + |
| 33 | +**Components** |
| 34 | +- `<Image>` — lazy load, srcset, blur-up, priority, CLS prevention |
| 35 | +- `<Link>` — prefetch (hover/viewport), active state, 3-level API |
| 36 | +- `<Script>` — loading strategies (beforeHydration, afterHydration, onIdle, onInteraction, onViewport) |
| 37 | + |
| 38 | +**Server** |
| 39 | +- Server actions — `defineAction()` for mutations with client/server boundary |
| 40 | +- CORS, rate limiting, compression, cache, security middleware |
| 41 | +- Node.js, Bun, and static deploy adapters |
| 42 | + |
| 43 | +**Ecosystem (via @pyreon/meta)** |
| 44 | +- State: `@pyreon/store` — signal-based stores |
| 45 | +- Data: `@pyreon/query` — TanStack Query adapter |
| 46 | +- Forms: `@pyreon/form` + `@pyreon/validation` — Zod/Valibot/ArkType |
| 47 | +- CRUD: `@pyreon/feature` — schema-driven features |
| 48 | +- Tables: `@pyreon/table`, Virtual lists: `@pyreon/virtual` |
| 49 | +- i18n: `@pyreon/i18n` — translations, plurals, rich text |
| 50 | +- Styling: `@pyreon/styler` — CSS-in-JS |
| 51 | +- UI: `@pyreon/elements`, `@pyreon/coolgrid`, `@pyreon/hooks` |
| 52 | +- Animations: `@pyreon/kinetic` + 120 presets |
| 53 | + |
| 54 | +**DX** |
| 55 | +- Theme system with anti-flash, Google Fonts self-hosting, SEO utilities |
| 56 | +- Dev error overlay with source-mapped stack traces |
| 57 | +- Route table printed on `zero dev` startup |
| 58 | +- AI toolchain — MCP server, CLAUDE.md, `zero doctor` |
| 59 | +- Testing utilities — `createTestContext`, `testMiddleware`, `createTestApiServer` |
32 | 60 |
|
33 | 61 | ## Development |
34 | 62 |
|
35 | 63 | ```bash |
36 | 64 | bun install |
37 | | -bun run dev # Dev mode |
38 | | -bun run build # Build all packages |
39 | | -bun run test # Run tests |
40 | | -bun run typecheck # Type check all packages |
| 65 | +bun run dev # Dev mode |
| 66 | +bun run build # Build all packages |
| 67 | +bun run test # Run tests (309 tests) |
| 68 | +bun run typecheck # Type check all packages |
| 69 | +bun run test:template # Validate starter template |
41 | 70 | ``` |
42 | 71 |
|
43 | 72 | ## License |
|
0 commit comments