Skip to content
Pyreon Zero vs Next.js

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 a routeRules globcapability
  • 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 →
side by side

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
TopicPyreonNext.jsVerdict
Render mode per routeexport 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 dataA .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 actionsA route's action export with defineAction, submitted by <Form> and read with useSubmission.Server Actions.tie
Streaming SSROpt-in: ssr: { mode: 'stream' }. Buffered by default.Streams by default with Suspense.tie
HostingSeven 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 modelPyreon: components run once, signals update single nodes.React: components re-render; memoisation controls the cost.different
PerformanceNot 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 componentsPMTC compiles the same .tsx to SwiftUI and Jetpack Compose (experimental).Web only; a React Native app is a separate codebase.Pyreon
Ecosystem and maturityNo 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 →

how it works

The two stacks, drawn.

Per-route render modes in Zero and in Next.js Both frameworks pick a render mode per route with one export in the route file. SSR: Zero export const renderMode = 'ssr', Next.js export const dynamic = 'force-dynamic'. SSG: renderMode = 'ssg' against dynamic = 'force-static'. ISR: renderMode = 'isr' against revalidate = 60. Zero also has a per-route 'spa' mode, routeRules globs that set modes in one place, and mode: 'auto' (experimental), which infers each route's mode and prints the table at build. ONE EXPORT PER ROUTE · BOTH WAYS mode Pyreon Zero · src/routes/*.tsx Next.js App Router · page.tsxSSR per request export const renderMode = 'ssr' export const dynamic = 'force-dynamic'SSG at build export const renderMode = 'ssg' export const dynamic = 'force-static'ISR cachedrevalidated export const renderMode = 'isr' export const revalidate = 60 Zero also: renderMode = 'spa' · routeRules: { '/blog/**': … } · mode: 'auto' mode: 'auto' infers each route's mode and prints the table EXPERIMENTAL

Diagram, not a measurement.

How we measure →
same component

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.

Next.js App Router · app/users/[id]/page.tsx
// 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>
}
Pyreon Zero · src/routes/users/[id].tsx + [id].server.ts
// 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.

the code you delete

What you stop writing.

  • stop writing
    Stop writing: useMemo, useCallback, dependency arraysInstead: Nothing: pages are Pyreon components and run once.
  • stop writing
    Stop writing: 'use client' boundariesInstead: There are no server components to fence off. Server-only code lives in a .server.ts file that the client bundle never imports.
migration

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
Run the stacks bench yourself