Skip to content

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.

Tied for rank 8 of 23 with TanStack Start (React), TanStack Start (Solid), Analog, Void (Svelte)17/28 points: 8/14 first-paint, 9/14 other · 61% complete
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

8/14
  • Manual, like 11 of the other 22 frameworks. 11 frameworks score higher.

    Show 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 ?inline query instead of as a side effect. Render it as a React 19 <style> with href and precedence, 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-to

    Waku's docs recommend @fontsource/* because there is no next/font equivalent (migration guide). This is the optimized branch; main still loads Geist from fonts.googleapis.com with display=block.

    @import '@fontsource-variable/geist';

    From this repo's waku-books/src/styles.css (optimized branch).

  • 03Image pipelineThird-party1 pt

    Third-party, like 13 of the other 22 frameworks. 9 frameworks score higher.

    Show 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' m size token to l but emits no srcset.

    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 token m for the large l. There is no resizing, srcset or 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>

    Manual

    Serving 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 attribute srcSet.

    // 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-to

    waku-cache is 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 current waku-cache (0.0.2) requires Waku 1.0.0-rc.4 or later; this port runs rc.5 with waku-cache 0.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 optimized this port uses it in src/lib/catalog-cache.ts: a memory store in front of each host's shared store (Workers KV, Vercel Runtime Cache or Netlify Blobs) through unstorageStore. src/middleware/html-cache-control.ts sets the HTML Cache-Control (main has neither).

  • 05Route prefetching1st-party2 pts

    1st-party, like 18 of the other 22 frameworks. None scores higher.

    Show the how-to

    router.prefetch() is the manual API, documented under useRouter with no experimental marker. The navigation-prefetching guide is tagged Experimental and says its prefetch and instant-navigation props are experimental: the Link helpers are unstable_prefetchOnEnter / unstable_prefetchOnView, and Link prefetch is off unless a prop is set. This port uses the props on FastLink and HoverPrefetchLink.

    <Link
      to={hrefToTarget(href)}
      unstable_prefetchOnEnter={prefetchOnEnter}
      unstable_prefetchOnView={prefetchOnView}
    />

    From this repo's waku-books/src/components/ui/fast-link.tsx (optimized branch; other props omitted).

  • 06Streaming SSR1st-party2 pts

    1st-party, like 17 of the other 22 frameworks. None scores higher.

    Show 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

  • Manual, like 15 of the other 22 frameworks. 7 frameworks score higher.

    Show the how-to

    No first-party preload headers or Early Hints are documented on waku.gg. Add a Link header at the host or CDN.

    Code example

    Add a Hono middleware that sets a Link header 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

9/14
  • 1st-party, like 14 of the other 22 frameworks. None scores higher.

    Show the how-to

    lazy slices are 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.

  • 1st-party, like 18 of the other 22 frameworks. None scores higher.

    Show the how-to

    Export a getConfig that returns render: 'static' | 'dynamic' per page, layout, or slice (routing, slices).

    export const getConfig = async () => {
      return {
        render: 'dynamic',
      } as const;
    };

    From this repo's waku-books/src/pages/[id].tsx (optimized branch).

  • 1st-party, like 21 of the other 22 frameworks. None scores higher.

    Show the how-to

    React; the first-party React Compiler is enabled via a Babel preset (on both main and optimized in this port).

    plugins: [tailwindcss(), react(), babel({ presets: [reactCompilerPreset()] })],

    From this repo's waku-books/waku.config.ts (optimized branch).

  • Third-party, like 18 of the other 22 frameworks. 2 frameworks score higher.

    Show the how-to

    No first-party analyzer is documented (migration guide covers none); rollup-plugin-visualizer, not configured here.

    Code example

    Add rollup-plugin-visualizer under vite.plugins in waku.config.ts. waku build then writes a treemap of the bundle to stats.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

  • Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.

    Show the how-to

    The migration guide documents no next/script equivalent; 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 */}
  • 1st-party, like 7 of the other 22 frameworks. None scores higher.

    Show the how-to

    Use adapters for Node, Vercel, Netlify, and Cloudflare, plus experimental Deno, Bun, and AWS Lambda adapters.

    NETLIFY=1 npm run build
    CLOUDFLARE=1 npm run build

    From the Waku deployment docs.

  • Manual, like 16 of the other 22 frameworks. 6 frameworks score higher.

    Show the how-to

    No service worker support is documented. Put a hand-written worker in the public folder 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 }} />

    Source: Using Service Workers (MDN) · Waku static assets

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.

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.

Waku: latest benchmark per build and page
BuildPathPerfFCPRaw FCPLCPTBTCLSSITTIDocHosts
Book list /
baseline/82(good)1.550.98(poor)4.64(good)0(good)0.0002.534.641443/3 Vercel, Netlify, Cloudflare
optimized/92(good)0.911.68(needs improvement)3.06(good)0(good)0.0003.023.111783/3 Vercel, Netlify, Cloudflare
Book page /10145787
baseline/1014578794(good)1.510.62(needs improvement)2.94(good)0(good)0.0002.022.941403/3 Vercel, Netlify, Cloudflare
optimized/1014578798(good)0.910.26(good)2.27(good)0(good)0.0001.142.271013/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.

Waku: latest benchmark per build, page and host
BuildPathHostPerfFCPRaw FCPLCPTBTCLSSITTIDocRunsStatus
Waku
baseline/Vercel84(good)1.530.36(poor)4.53(good)0(good)0.0001.704.531533/3OK
baseline/Netlify80(good)1.562.34(poor)4.71(good)0(good)0.0004.324.711603/3OK
baseline/Cloudflare83(good)1.560.25(poor)4.68(good)0(good)0.0001.564.681203/3OK
baseline/10145787Vercel95(good)1.510.24(needs improvement)2.91(good)0(good)0.0001.512.911193/3OK
baseline/10145787Netlify93(good)1.511.41(needs improvement)3.05(good)0(good)0.0003.033.052303/3OK
baseline/10145787Cloudflare95(good)1.510.22(needs improvement)2.87(good)0(good)0.0001.512.87723/3OK
optimized/Vercel91(good)0.912.31(needs improvement)3.32(good)0(good)0.0003.613.381393/3OK
optimized/Netlify88(good)0.932.46(needs improvement)3.52(good)0(good)0.0004.543.583023/3OK
optimized/Cloudflare98(good)0.910.26(good)2.34(good)0(good)0.0000.912.36933/3OK
optimized/10145787Vercel99(good)0.910.20(good)2.11(good)0(good)0.0000.912.11823/3OK
optimized/10145787Netlify98(good)0.920.36(good)2.28(good)0(good)0.0001.612.281463/3OK
optimized/10145787Cloudflare98(good)0.910.20(good)2.41(good)0(good)0.0000.912.41753/3OK