Rust-powered compiler
oxc 0.119 compiles TypeScript and JSX 5–10× faster than esbuild. Server/client boundary violations caught at build time.
Blazing builds. Explicit boundaries. Any host.
oxc 0.119 compiles TypeScript and JSX 5–10× faster than esbuild. Server/client boundary violations caught at build time.
Security headers, CSRF protection, and server/client code isolation — on every project, without writing a single line of config.
Pages render on the client by default. Add `export const ssr = true` to any page for full server-side rendering.
Drop a `page.tsx` and get a route. Layouts, loading states, error boundaries, and API routes all follow the same convention.
Define `defineServerFn` in `.server.ts` files. The Rust compiler strips them from the browser bundle and generates type-safe fetch stubs.
The `
Export `ppr = true` to serve a CDN-cached static shell instantly. `
Export `cdnCache` to emit `Cache-Control`, `CDN-Cache-Control`, and `Surrogate-Control` headers automatically. Works with Cloudflare, Fastly, or any standard CDN.
Build ID stamped at compile time (git SHA → Rust FNV-1a hash). Client detects stale JS bundles and hard-reloads automatically — zero stale-bundle errors in production.
Drop `
Prefix with `ALAB_PUBLIC_` to expose a variable to the browser. Everything else is server-only — secrets can never be accidentally bundled into client code.
Floating toolbar in `alab dev` shows the current route, render mode, server/client boundary tree, active params, and layout chain. Zero footprint in production.
Stream live updates from any API route with `defineSSEHandler`. Subscribe on the client with the `useSSE` hook — reconnects automatically, no WebSocket needed.
Service worker queues failed server function calls in IndexedDB and replays them on reconnect. `useOfflineMutations` surfaces queue state and manual replay — zero config required.
First-class federation via native ESM + import maps — no webpack runtime, no Module Federation. Expose components with `federation.exposes`, consume them with `useFederatedComponent`. React is automatically shared as a singleton across all remotes.
The `--cwd` flag targets any app from the workspace root without changing directories. Works with pnpm workspaces and Turbo out of the box — shared component libraries, shared server functions, and per-app environment variables all work as expected.