Waku's one rule: the 'use client' line is the only server to client boundary
⛩️ The minimal React framework
At a glance
- What is it?
- Waku is a small React framework built around React 19 server components, with a file based pages router over ./src/pages and three commands. Everything it does is arranged around a single rule, that a client component cannot import a server component, which makes the architecture visible in the import graph.
- Who is it for?
- Choose Waku when you want React 19 server components with a routing layer you can read in an afternoon, and you are willing to respect one directional rule in your import graph. Pass on it when you want a stable 1.0.0 rather than a release candidate, when your Node runtime is older than 22.15.0, or when a client module must pull in a server module, because that direction is closed.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 1 day ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- wakujs/waku6,495 ★ · +40
| Repository | 2026-09-23 | 2026-11-25 |
|---|---|---|
| wakujs/waku | 6.5k | 6.5k |
40 Stars in the last 63 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
npm create waku@latest scaffolds a starter that becomes your code
There is no global install step. The create command scaffolds a project from the default Waku starter, and after that three commands carry the whole lifecycle:
npm create waku@latest`waku dev` starts the local development server, `waku build` produces a production build and `waku start` serves that build locally. Three commands is a small surface, and it is the argument the project makes for itself: it keeps the framework layer thin and expects ecosystem libraries to cover the rest. The version floor is worth reading twice, because it is narrower than most React tooling: Node.js ^26.0.0, or ^24.0.0, or ^22.15.0. Anything older is outside the supported range, and nothing in the scaffolding command relaxes that. Guided documentation lives outside the repository, with a Quick Start guide and a Learn series under waku.gg/guides.
A server component may import a client component; the reverse is closed
The whole model rests on one direction of travel. A file marked 'use client' becomes the boundary the moment a server component imports it, and every component imported below that line is hydrated into the browser as well:
// client component
'use client';
import { useState } from 'react';
export const Counter = () => {
const [count, setCount] = useState(0);
return (
<>
<div>Count: {count}</div>
<button onClick={() => setCount((c) => c + 1)}>Increment</button>
</>
);
};Above the boundary, components stay on the server, which is where the payoff sits. They can be async, they can read the local file system, and they can import heavy dependencies without those dependencies reaching the client bundle:
// server component
import db from 'some-db';
export const Store = async () => {
const products = await db.query('SELECT * FROM products');
return <Gallery products={products} />;
};A client component cannot import a server component. That is the constraint that shapes every file you write.
A server component gets under the boundary only as a children prop
Since the import direction is closed, composition is the only way through. A client component can accept a server component as a prop, and that is how global context providers are added without inverting the graph. The layout awaits, and the provider arrives from the client side:
// ./src/components/providers.tsx
'use client';
import { Provider } from 'jotai';
export const Providers = ({ children }) => {
return <Provider>{children}</Provider>;
};The layout imports that provider, wraps children in it and declares its own render mode:
// ./src/pages/_layout.tsx
import { Providers } from '../components/providers';
export default async function RootLayout({ children }) {
return (
<Providers>
<main>{children}</main>
</Providers>
);
}
export const getConfig = async () => {
return {
render: 'static',
} as const;
};The server layer still renders below the boundary this way, composed rather than imported.
Shared components are the only files that ignore the boundary
Some components are neither server nor client, and Waku has a category for them. A component that satisfies the rules of both worlds can be imported into either side without moving the boundary:
// shared component
export const Headline = ({ children }) => {
return <h3>{children}</h3>;
};That is the entire rule, and it puts the burden on the component rather than on a config flag: no state, no effects, no event handlers, no browser APIs, nothing that requires a bundle. Files that qualify can sit anywhere in the tree, which is how a presentational heading ends up above a boundary and below one in different pages. The framework is candid that this is a learning curve, and notes that future versions may add opt-in APIs to abstract some of the complexity away.
render: 'static' picks prerendering, and SSR is a separate axis
Each layout and page exports an optional getConfig, and the render value in it decides how that route is produced. In the layout above, render: 'static' asks for static prerendering. Both static prerendering and server-side rendering are available for layouts and pages, and both apply to the server and client components underneath, so a client component in a prerendered route is still server-rendered at build time.
The distinction the page insists on is that SSR and RSC are not the same thing. SSR describes when markup is produced, while the server component layer describes what runs where. A client component still being server-side rendered does not turn it into a server component, and it still ships to the browser. Keeping those two ideas apart is what makes the rest predictable: you choose a render mode per route, and the client/server split follows from the import graph rather than from that choice.
A pages router over ./src/pages, with the programmatic API underneath it
Routing is file based and it lives in one directory. Layouts and pages are created by adding files under ./src/pages, following the convention the starter uses, which is why a layout in a project looks like ./src/pages/_layout.tsx. The design goal is a minimal pages router experience written for the server components era rather than a port of the older router conventions. Underneath, a lower level API exists for people who would rather build routes programmatically, documented separately in create-pages.mdx. The page covering the file based router states that both are supported and leaves the choice to the reader.
Every recorded release is a candidate, and the repository is a pnpm monorepo
The version history is the first thing to check. The three recorded releases are v1.0.0-rc.2 on 2026-09-28, v1.0.0-rc.3 on 2026-10-06 and v1.0.0-rc.4 on 2026-10-22, which is three candidates inside four weeks and no final 1.0.0 among them. The last push to main landed on 2026-10-31, so the tree is moving quickly, and the licence is MIT.
The repository is a pnpm workspace named waku-monorepo, which shapes what you can run. Packages live under packages/, project templates under templates/, and end to end tests under e2e/ driven by Playwright:
"test:unit": "pnpm run -r test",
"e2e": "playwright test",
"e2e-prd": "playwright test --project=chromium-prd"The lint pass is prettier, eslint and a project wide tsc build in one command, and one script is named csb-install-FIXME, a name that says out loud that the install path for that host is unfinished.
Editorial conclusion
Choose Waku when you want React 19 server components with a routing layer you can read in an afternoon, and you are willing to respect one directional rule in your import graph. Pass on it when you want a stable 1.0.0 rather than a release candidate, when your Node runtime is older than 22.15.0, or when a client module must pull in a server module, because that direction is closed. Check two things before the first commit: that render: 'static' in getConfig matches how much of the page you want prerendered, and which of the three recorded releases, v1.0.0-rc.2 through rc.4, you are willing to pin.
Frequently asked questions
What is Waku used for?
Waku describes itself as the minimal React framework, built for marketing sites, headless commerce and full stack web apps of any size. It supports the latest React 19 features, including server components and actions, and keeps its own framework surface small in favour of ecosystem libraries.
How do I start a new Waku project?
Run npm create waku@latest, which scaffolds from the default Waku starter. The three commands you get are waku dev for the local development server, waku build for a production build and waku start to serve it. Node.js ^26.0.0, ^24.0.0 or ^22.15.0 is required.
Does Waku have a stable 1.0.0 release yet?
Not among the recorded releases. The three latest tags are v1.0.0-rc.2 on 2026-09-28, v1.0.0-rc.3 on 2026-10-06 and v1.0.0-rc.4 on 2026-10-22, all release candidates rather than a final 1.0.0.
Can a Waku client component import a server component?
No. Server components can import client components, and that import is what creates the server-client boundary, but a client component cannot import a server component and can only receive one as a prop such as children.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/wakujs-waku)Star history chart for your README
[](https://hysenlabs.com/projects/wakujs-waku)Was this useful?