File routes, SSR, SSG and ISR. On components that run once.
@pyreon/zero lets every route pick its render mode with a one-line export or a glob rule, and deploys to Node, Bun, Deno, Vercel, Netlify, Cloudflare or static hosting. Under it is Pyreon: a page component runs once, and only the nodes that read a changed signal update.
npm create @pyreon/zero@latest - 4 render modes, chosen per route:
ssr,ssg,isr,spa, by a route export or arouteRulesglobcapability - 7 deploy adapters: node, bun, deno, static, vercel, cloudflare, netlify, auto-detected on the three hosted platformscapability
- 9 stacks on one harness and the same app, Zero and Next.js 16 App Router among them: SSR throughput, TTFB, first-load JS, hydration. No result is published yet, so we claim none.suite exists; no published result
Synthetic, author-run, Apple M3 Max, real Chromium unless noted. Reproduce: pyreon.dev/docs/benchmarks
Every result, including where we lose →Zero and Next.js, line by line.
Next.js is a meta-framework, so it is compared with @pyreon/zero, Pyreon's. There is no published head-to-head between the two yet; this table compares what each one does. For framework numbers (Pyreon against the React that Next runs on), see /compare/react.
- PyreonPyreon is ahead on the record
- Next.js aheadNext.js is ahead, and we say so
- tieconfidence intervals overlap
- differentno winner: they work differently
| Topic | Pyreon | Next.js | Verdict |
|---|---|---|---|
| Render mode per route | export const renderMode = 'ssr' | 'ssg' | 'isr' | 'spa', routeRules globs, and mode: 'auto' (experimental), which infers each route's mode and prints the result at build. | Static, dynamic and ISR per route through route segment config and the data APIs a page uses. | tie |
| Server-only data | A .server.ts sibling exports serverLoader; it never enters the client bundle, and a client navigation fetches the whole route chain in one request. | React Server Components and server functions. | different |
| Server actions | A route's action export with defineAction, submitted by <Form> and read with useSubmission. | Server Actions. | tie |
| Streaming SSR | Opt-in: ssr: { mode: 'stream' }. Buffered by default. | Streams by default with Suspense. | tie |
| Hosting | Seven adapters; on Vercel, Netlify and Cloudflare builds the adapter is picked from the environment. | next start on Node, static export, and first-class on Vercel; other hosts through their own integrations. | different |
| Component model | Pyreon: components run once, signals update single nodes. | React: components re-render; memoisation controls the cost. | different |
| Performance | Not compared yet. examples/stacks-bench measures Zero, Next.js 16 App Router and seven other stacks on the same app; run it yourself. | Same: no published result. | different |
| Native apps from the same components | PMTC compiles the same .tsx to SwiftUI and Jetpack Compose (experimental). | Web only; a React Native app is a separate codebase. | Pyreon |
| Ecosystem and maturity | No adoption claims yet. | Years in production, a large plugin and hosting ecosystem, and Vercel behind it. | Next.js ahead |
Synthetic, author-run, Apple M3 Max, real Chromium unless noted. Reproduce: pyreon.dev/docs/benchmarks Method and every result →
One server-rendered page, cached and revalidated.
A user page that loads on the server and is cached with stale-while-revalidate. Next.js does it in a server component; Zero splits the server-only loader into a sibling file that the client bundle never imports.
// app/users/[id]/page.tsx
import { getUser } from '@/lib/users'
export const revalidate = 60
export default async function UserPage({
params,
}: {
params: Promise<{ id: string }>
}) {
const { id } = await params
const user = await getUser(id)
return <h1>{user.name}</h1>
}// src/routes/users/[id].server.ts (server only, never in the client bundle)
import type { LoaderContext } from '@pyreon/router'
import { getUser } from '../../lib/users'
export async function serverLoader({ params }: LoaderContext) {
return getUser(params.id!)
}
// src/routes/users/[id].tsx
import { useLoaderData } from '@pyreon/router'
export const renderMode = 'isr' // stale-while-revalidate, 60 s by default
export default function UserPage() {
const user = useLoaderData<{ name: string }>()
return <h1>{user().name}</h1>
}Zero side: the page and an equivalent loader typecheck against the repo; serverLoader, renderMode = 'isr' (60 s default) and useLoaderData<T>() are as documented in zero.md and packages/core/router/src/loader.ts. Next side: App Router conventions (params is a Promise since Next 15); not compiled here.
What you stop writing.
- stop writingStop writing:
useMemo,useCallback, dependency arraysInstead: Nothing: pages are Pyreon components and run once. - stop writingStop writing:
'use client'boundariesInstead: There are no server components to fence off. Server-only code lives in a.server.tsfile that the client bundle never imports.
A Next.js app is a React app.
Start with @pyreon/react-compat to run your components on Pyreon, then move routes into Zero's file router (src/routes).
When to pick Next.js
- You want React Server Components and the React library catalog behind them.
- You deploy on Vercel and use its platform features end to end.
- Your team ships Next.js today and re-rendering is not what slows the app down.
- You need a meta-framework with years of production use behind it.
Scaffold a Zero app and pick a mode per route.
npm create @pyreon/zero@latest