Waku
Waku scores 17 of 28 points. That is 8 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 9 of 14 on the 7 other features.
- Version checked
- waku 1.0.0-rc.5 (latest; no stable 1.0 yet), waku-cache 0.0.2
- Version notes
- optimized branch; no CSS inline or images
- Performance guide
- Building for Production — WakuNo dedicated performance page; closest official page.
- Issues
- github.com/wakujs/waku/issues
Scorecard
All 14 features, in two groups. Each row shows Waku's label, how that label compares across all 23 frameworks, and how to enable the feature. Feature names link to Waku's entry on that feature's page.
Waku's labels across 14 features
- 1st-party7
- Experimental0
- Third-party3
- Manual4
- of 14
How it compares
On 7 of 14 features, no framework has a higher-scoring label than Waku. On the other 7, at least one does.
Tested in our port
The waku-books port passes 11/11 feature tests. Run on 2026-11-26 at MaxwellCohen/waku-books@374507e. How we test labels
First-paint levers
- 01Production CSS inliningManual0 pts
Manual, like 11 of the other 22 frameworks. 11 frameworks score higher.
Show the how-toHide the how-to
Nothing to enable, and no first-party inlining is documented; the HTML links the built stylesheet (styling docs, migration guide on CSS).
Code example
In the root layout, import the stylesheet with Vite's
?inlinequery instead of as a side effect. Render it as a React 19<style>withhrefandprecedence, and React hoists it into<head>. The CSS string also travels in the RSC payload, so keep it small.// src/pages/_layout.tsx import appCss from '../styles.css?inline'; // was: import '../styles.css'; // … export default function RootLayout({ children }: { children: ReactNode }) { return ( <> <title>Waku Books</title> <style href="app-css" precedence="default">{appCss}</style> {/* … */} </> ); } - 02Font optimizationThird-party1 pt
Third-party, like 18 of the other 22 frameworks. 4 frameworks score higher.
Show the how-toHide the how-to
Waku's docs recommend
@fontsource/*because there is nonext/fontequivalent (migration guide). This is theoptimizedbranch;mainstill loads Geist fromfonts.googleapis.comwithdisplay=block.@import '@fontsource-variable/geist';From this repo's
waku-books/src/styles.css(optimizedbranch). - 03Image pipelineThird-party1 pt
Third-party, like 13 of the other 22 frameworks. 9 frameworks score higher.
Show the how-toHide the how-to
No first-party pipeline is documented: the migration guide says use
<img>or an image CDN, with no built-in resizing or format negotiation (static assets). This port rewrites Goodreads'msize token tolbut emits nosrcset.Code example
There is no image component, so the port renders a plain
<img>and rewrites the Goodreads URL itself. The regex swaps the medium-size tokenmfor the largel. There is no resizing,srcsetor format negotiation.// src/features/book/book-constants.ts export function getLargeBookImageUrl(url: string): string { return url.replace(/^(https:\/\/images\.gr-assets\.com\/books\/\d+)m(\/\d+\.jpg)$/, '$1l$2'); } // src/features/book/components/book-cover.tsx const resolved = getLargeBookImageUrl(src ?? EMPTY_IMAGE_URL); // … <img alt={title} decoding="async" fetchPriority={priority ? 'high' : 'auto'} sizes={sizes} src={resolved} />Source: Waku: Static assets
Art direction with <picture>
ManualServing a different crop or format per screen size. Not scored: the label shows how much the framework does for you.
No first-party support is documented (migration guide); use a plain
<img>; any<picture>would be hand-written.Example
There is no image component, so write the
<picture>in the port's cover component. Wide screens get Goodreads' large cover, and narrow screens keep the medium one. React spells the attributesrcSet.// src/features/book/components/book-cover.tsx 'use client'; // … const small = src ?? EMPTY_IMAGE_URL; const large = getLargeBookImageUrl(small); return ( <picture> <source media="(min-width: 768px)" srcSet={large} /> <img alt={title} className="absolute inset-0 size-full object-cover" decoding="async" fetchPriority={priority ? 'high' : 'auto'} onError={() => setFailedSrc(small)} src={small} /> </picture> ); - 04Data/HTML caching1st-party2 pts
1st-party, like 16 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
waku-cacheis a separate, still-evolving package from the wakujs org; Waku has no core cache by design, and the migration guide says to add caching explicitly. The currentwaku-cache(0.0.2) requires Waku 1.0.0-rc.4 or later; this port runs rc.5 withwaku-cache0.0.2.// ./src/lib/cache.ts import { createCache } from 'waku-cache'; import { memoryStore } from 'waku-cache/stores/memory'; export const cache = createCache({ store: memoryStore(), defaults: { ttl: 60_000 }, });Adapted from the explicit-caching guide; the guide notes the memory store is process-local. On
optimizedthis port uses it insrc/lib/catalog-cache.ts: a memory store in front of each host's shared store (Workers KV, Vercel Runtime Cache or Netlify Blobs) throughunstorageStore.src/middleware/html-cache-control.tssets the HTMLCache-Control(mainhas neither). - 05Route prefetching1st-party2 pts
1st-party, like 18 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
router.prefetch()is the manual API, documented underuseRouterwith no experimental marker. The navigation-prefetching guide is tagged Experimental and says its prefetch and instant-navigation props are experimental: theLinkhelpers areunstable_prefetchOnEnter/unstable_prefetchOnView, andLinkprefetch is off unless a prop is set. This port uses the props onFastLinkandHoverPrefetchLink.<Link to={hrefToTarget(href)} unstable_prefetchOnEnter={prefetchOnEnter} unstable_prefetchOnView={prefetchOnView} />From this repo's
waku-books/src/components/ui/fast-link.tsx(optimizedbranch; other props omitted). - 06Streaming SSR1st-party2 pts
1st-party, like 17 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Waku renders React Server Components to a stream, and a
<Suspense>boundary around an async server component sends its fallback with the shell. There is no flag. The docs describe this only in passing: the redirects and not-found guide covers what happens "inside a Suspense boundary after the shell has already been sent".Code example
Make the slow part an async server component and wrap it in
<Suspense>. Waku sends the page shell with the fallback first, then streams the pagination once its count query resolves.// src/pages/index.tsx import { Suspense } from 'react'; export default async function HomePage({ query }: { query: string }) { const searchParams = parseSearchParams(queryToRecord(query)); const books = await getBooksPage(toBookQuery(searchParams)); return ( <div> <BookGrid books={books} searchParams={searchParams} /> <footer> <Suspense fallback={<BookPaginationSkeleton />}> <BookPagination searchParams={searchParams} /> </Suspense> </footer> </div> ); } // src/features/book/components/book-pagination.tsx export async function BookPagination({ searchParams }: { searchParams: SearchParams }) { const totalResults = await getBooksCount(toBookFilters(toBookQuery(searchParams))); // … render page links }Source: Waku: Redirects and not found · React: Suspense
- 07Early Hints / preload headersManual0 pts
Manual, like 15 of the other 22 frameworks. 7 frameworks score higher.
Show the how-toHide the how-to
No first-party preload headers or Early Hints are documented on waku.gg. Add a
Linkheader at the host or CDN.Code example
Add a Hono middleware that sets a
Linkheader on HTML responses. This one preconnects to the font host. To preload a built file with a hashed name, read its URL from the Vite manifest.// src/middleware/link-header.ts import type { MiddlewareHandler } from 'hono'; const LINK = '<https://fonts.gstatic.com>; rel=preconnect; crossorigin'; export default (): MiddlewareHandler => async (c, next) => { await next(); if (c.res.headers.get('content-type')?.includes('text/html')) c.res.headers.set('Link', LINK); };Source: Hono middleware
Other features
- 08Islands / partial hydration / lazy slices1st-party2 pts
1st-party, like 14 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
lazy slicesare documented as similar to Astro's server islands. There is no partial hydration.<Slice id="two" lazy fallback={<p>Two is loading...</p>} />Adapted from the Waku docs.
- 09Per-route render modes1st-party2 pts
1st-party, like 18 of the other 22 frameworks. None scores higher.
- 10Fine-grained client reactivity1st-party2 pts
1st-party, like 21 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
React; the first-party React Compiler is enabled via a Babel preset (on both
mainandoptimizedin this port).plugins: [tailwindcss(), react(), babel({ presets: [reactCompilerPreset()] })],From this repo's
waku-books/waku.config.ts(optimizedbranch). - 11Built-in bundle analysisThird-party1 pt
Third-party, like 18 of the other 22 frameworks. 2 frameworks score higher.
Show the how-toHide the how-to
No first-party analyzer is documented (migration guide covers none); rollup-plugin-visualizer, not configured here.
Code example
Add
rollup-plugin-visualizerundervite.pluginsinwaku.config.ts.waku buildthen writes a treemap of the bundle tostats.html.// waku.config.ts import tailwindcss from '@tailwindcss/vite'; import react from '@vitejs/plugin-react'; import { visualizer } from 'rollup-plugin-visualizer'; import { defineConfig } from 'waku/config'; export default defineConfig({ vite: { plugins: [ tailwindcss(), react(), visualizer({ filename: 'stats.html', gzipSize: true }), ], }, });Source: rollup-plugin-visualizer: README
- 12Third-party script strategiesManual0 pts
Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.
Show the how-toHide the how-to
The migration guide documents no
next/scriptequivalent; nothing to enable.Code example
React 19 hoists an
<script async src>rendered anywhere into<head>and deduplicates it. For a lazy strategy, write a small client component that injects the tag after load.// src/components/lazy-script.tsx 'use client'; import { useEffect } from 'react'; export function LazyScript({ src }: { src: string }) { useEffect(() => { const inject = () => { if (document.querySelector(`script[src="${src}"]`)) return; const s = Object.assign(document.createElement('script'), { src, async: true }); document.head.append(s); }; const idle = () => ('requestIdleCallback' in window ? requestIdleCallback(inject) : setTimeout(inject)); if (document.readyState === 'complete') idle(); else addEventListener('load', idle, { once: true }); }, [src]); return null; } // src/pages/_layout.tsx <script async src="https://example.com/critical.js" /> {/* afterInteractive-ish */} <LazyScript src="https://example-analytics.com/script.js" /> {/* lazyOnload */} - 13Portable multi-host deployment1st-party2 pts
1st-party, like 7 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Use
adaptersfor Node, Vercel, Netlify, and Cloudflare, plus experimental Deno, Bun, and AWS Lambda adapters.NETLIFY=1 npm run build CLOUDFLARE=1 npm run buildFrom the Waku deployment docs.
- 14Service worker / offline supportManual0 pts
Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.
Show the how-toHide the how-to
No service worker support is documented. Put a hand-written worker in the
publicfolder and register it from a client component.Code example
Put a hand-written worker in
public/and register it with an inline script in the root layout.// public/sw.js const CACHE = 'books-v1'; // change the name on each deploy self.addEventListener('activate', (event) => { event.waitUntil( caches.keys().then((keys) => Promise.all(keys.filter((k) => k !== CACHE).map((k) => caches.delete(k)))), ); }); self.addEventListener('fetch', (event) => { const { request } = event; if (request.method !== 'GET' || new URL(request.url).origin !== location.origin) return; // Network first, so pages stay current. The cached copy answers when offline. event.respondWith( fetch(request) .then((response) => { const copy = response.clone(); caches.open(CACHE).then((cache) => cache.put(request, copy)); return response; }) .catch(() => caches.match(request)), ); });// src/pages/_layout.tsx const swScript = `if('serviceWorker' in navigator)addEventListener('load',function(){navigator.serviceWorker.register('/sw.js')});`; // … inside RootLayout <script dangerouslySetInnerHTML={{ __html: swScript }} />
1st-party scores 2 points, Experimental and Third-party 1, Manual 0. How scoring works
The port
The books demo app built with this framework, and where each branch is deployed.
- App
- waku-books
- Repository
- github.com/MaxwellCohen/waku-books
Branch
main
vibe port
- Vercel
- waku-books.vercel.app
- Netlify
- waku-books.netlify.app
- Cloudflare
- waku-books.to-email-max.workers.dev
Branch
optimized
cache + fonts
Latest benchmark
Mobile Lighthouse lab results from PageSpeed Insights on : the median of 3 runs per host, averaged across the hosts listed. The benchmark page explains each metric and has every other framework.
| Build | Path | Perf | FCP | Raw FCP | LCP | TBT | CLS | SI | TTI | Doc | Hosts |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Book list / | |||||||||||
| baseline | / | 82 | (good)1.55 | 0.98 | (poor)4.64 | (good)0 | (good)0.000 | 2.53 | 4.64 | 144 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | / | 92 | (good)0.91 | 1.68 | (needs improvement)3.06 | (good)0 | (good)0.000 | 3.02 | 3.11 | 178 | 3/3 Vercel, Netlify, Cloudflare |
| Book page /10145787 | |||||||||||
| baseline | /10145787 | 94 | (good)1.51 | 0.62 | (needs improvement)2.94 | (good)0 | (good)0.000 | 2.02 | 2.94 | 140 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | /10145787 | 98 | (good)0.91 | 0.26 | (good)2.27 | (good)0 | (good)0.000 | 1.14 | 2.27 | 101 | 3/3 Vercel, Netlify, Cloudflare |
- Good
- Needs improvement
- Poor
FCP 1.8 s / 3 s · LCP 2.5 s / 4 s · TBT 200 ms / 600 ms · CLS 0.1 / 0.25
Per host
The medians above before averaging. Runs is how many measured runs went into each median. Host names link to the deployment.
| Build | Path | Host | Perf | FCP | Raw FCP | LCP | TBT | CLS | SI | TTI | Doc | Runs | Status |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Waku | |||||||||||||
| baseline | / | Vercel | 84 | (good)1.53 | 0.36 | (poor)4.53 | (good)0 | (good)0.000 | 1.70 | 4.53 | 153 | 3/3 | OK |
| baseline | / | Netlify | 80 | (good)1.56 | 2.34 | (poor)4.71 | (good)0 | (good)0.000 | 4.32 | 4.71 | 160 | 3/3 | OK |
| baseline | / | Cloudflare | 83 | (good)1.56 | 0.25 | (poor)4.68 | (good)0 | (good)0.000 | 1.56 | 4.68 | 120 | 3/3 | OK |
| baseline | /10145787 | Vercel | 95 | (good)1.51 | 0.24 | (needs improvement)2.91 | (good)0 | (good)0.000 | 1.51 | 2.91 | 119 | 3/3 | OK |
| baseline | /10145787 | Netlify | 93 | (good)1.51 | 1.41 | (needs improvement)3.05 | (good)0 | (good)0.000 | 3.03 | 3.05 | 230 | 3/3 | OK |
| baseline | /10145787 | Cloudflare | 95 | (good)1.51 | 0.22 | (needs improvement)2.87 | (good)0 | (good)0.000 | 1.51 | 2.87 | 72 | 3/3 | OK |
| optimized | / | Vercel | 91 | (good)0.91 | 2.31 | (needs improvement)3.32 | (good)0 | (good)0.000 | 3.61 | 3.38 | 139 | 3/3 | OK |
| optimized | / | Netlify | 88 | (good)0.93 | 2.46 | (needs improvement)3.52 | (good)0 | (good)0.000 | 4.54 | 3.58 | 302 | 3/3 | OK |
| optimized | / | Cloudflare | 98 | (good)0.91 | 0.26 | (good)2.34 | (good)0 | (good)0.000 | 0.91 | 2.36 | 93 | 3/3 | OK |
| optimized | /10145787 | Vercel | 99 | (good)0.91 | 0.20 | (good)2.11 | (good)0 | (good)0.000 | 0.91 | 2.11 | 82 | 3/3 | OK |
| optimized | /10145787 | Netlify | 98 | (good)0.92 | 0.36 | (good)2.28 | (good)0 | (good)0.000 | 1.61 | 2.28 | 146 | 3/3 | OK |
| optimized | /10145787 | Cloudflare | 98 | (good)0.91 | 0.20 | (good)2.41 | (good)0 | (good)0.000 | 0.91 | 2.41 | 75 | 3/3 | OK |