Skip to content

Pracht

Pracht scores 26 of 28 points. That is 14 of 14 on the 7 features that affect first paint (the moment the browser first draws content), and 12 of 14 on the 7 other features.

Rank 1 of 2326/28 points: 14/14 first-paint, 12/14 other · 93% complete
Version checked
@pracht/core 1.0.1 (npm latest), @pracht/image 0.6.1, Vite ^8.3.2
Version notes
inlineCss, @pracht/image, ISG, prefetch; Fontsource fonts
Performance guide
Performance — pracht docs
Issues
github.com/JoviDeCroock/pracht/issues

Scorecard

All 14 features, in two groups. Each row shows Pracht's label, how that label compares across all 23 frameworks, and how to enable the feature. Feature names link to Pracht's entry on that feature's page.

Pracht's labels across 14 features

  • 1st-party13
  • Experimental0
  • Third-party0
  • Manual1
  • of 14

How it compares

On 13 of 14 features, no framework has a higher-scoring label than Pracht. On the other 1, at least one does.

Tested in our port

The pracht-books port passes 11/11 feature tests. Run on 2026-11-26 at MaxwellCohen/pracht-books@7a6c6b4. How we test labels

First-paint levers

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

    Show the how-to

    Set inlineCss: true on the @pracht/vite-plugin options.

    plugins: [pracht({ adapter, inlineCss: true })],

    From this repo's pracht-books/vite.config.ts (optimized branch; other plugin options omitted).

  • 02Font optimization1st-party2 pts

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

    Show the how-to

    defineFont() from @pracht/core generates @font-face rules and preload links by default; fallback-metric overrides (sizeAdjust, ascentOverride, ...) are opt-in with hand-supplied values, and there is no build-time download or subsetting, so it is not equivalent to next/font.

    export const interRegular = defineFont({ family: "Inter", src: "/fonts/inter-400.woff2", weight: 400 });
    // head: { fonts: [interRegular, interBold] }

    Adapted from the fonts docs. This port chose @fontsource-variable/geist in src/styles/global.css instead.

  • 03Image pipeline1st-party2 pts

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

    Show the how-to

    @pracht/image ships loaders inside the package (vercelLoader, netlifyLoader, cloudflareLoader, defaultLoader, passthroughLoader; createImageHandler from @pracht/image/node), plus placeholder="blur", priority, and build-time ?pracht imports. netlifyLoader was added in @pracht/image 0.5.0; this port uses it on Netlify (@pracht/image 0.6.1).

    plugins: [prachtImage(), pracht({ adapter, inlineCss: true })],
    import { Image } from '@pracht/image';
    // ...
    <Image
      alt={title}
      blurDataURL={placeholder}
      fill
      placeholder={placeholder ? 'blur' : 'empty'}
      priority={priority}
      sizes={sizes}
      src={resolved}
    />

    From this repo's pracht-books/vite.config.ts and src/features/book/components/book-cover.tsx (optimized branch; some props omitted).

    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.

    @pracht/image emits srcset/sizes; getImageProps() likewise returns plain img attributes, with no <picture> component. Hand-write the <picture> from those attributes, as in the Next snippet above. No Pracht-specific code example was found in the docs.

    Example

    Call getImageProps() from @pracht/image once per art-directed source, then write the <picture> yourself. The loader configured in the port's src/lib/images.ts still builds every srcset URL.

    // src/features/book/components/book-cover.tsx
    import { getImageProps } from '@pracht/image';
    import { EMPTY_IMAGE_URL, getLargeBookImageUrl } from '@/features/book/book-constants';
    import '@/lib/images';
    // …
    const small = src ?? EMPTY_IMAGE_URL;
    const common = { alt: title, fill: true, priority, sizes };
    const { srcset: desktop } = getImageProps({ ...common, src: getLargeBookImageUrl(small) });
    const mobile = getImageProps({ ...common, src: small });
    
    return (
      <picture>
        <source media="(min-width: 768px)" srcset={desktop} sizes={sizes} />
        <img {...mobile} className="size-full object-cover" onError={() => setFailedSrc(small)} />
      </picture>
    );
  • 04Data/HTML caching1st-party2 pts

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

    Show the how-to

    ISG (render: "isg" with revalidate: timeRevalidate(3600), or webhookRevalidate()) is a per-route rendering mode. This port uses isg on both routes and adds src/lib/catalog-cache.ts for host-aware data caching.

    route('/', './routes/home.tsx', {
      id: 'home',
      render: 'isg',
      revalidate: timeRevalidate(3600),
    }),

    From this repo's pracht-books/src/routes.ts (optimized branch; shell omitted).

  • 05Route prefetching1st-party2 pts

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

    Show the how-to

    Use the prefetch route option or <Link> prop; the default is intent (hover is an alias), with viewport, none, and link-only render also available.

    <Link route="book" prefetch={eagerPrefetch ? 'viewport' : 'intent'} />

    Adapted from this repo's pracht-books/src/features/book/components/book-card.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

    Set the route option streaming: true and wrap slow loader values in defer(). It needs render: "ssr" and full hydration. Pages-router files use export const STREAMING = true.

    route("/product/:id", () => import("./routes/product.tsx"), {
      render: "ssr",
      streaming: true,
    });

    From the Pracht data loading docs ("Streaming the document").

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

    Show the how-to

    Nothing to enable for the header: rendered pages, and prerendered SSG/ISG pages on the Node, Cloudflare, Vercel, and Netlify adapters, send a preload Link header for their stylesheets (performance guide, Early hints). On the Node adapter, earlyHints: true sends the 103 itself, including the page's scripts, before the loaders run.

    nodeAdapter({ earlyHints: true });

    From the Pracht performance guide.

Other features

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

    Show the how-to

    Set hydration: "islands" per route, with interactive components discovered from src/islands/; hydration: "none" gives a zero-JS page (islands).

    route("/", "./routes/home.tsx", {
      render: "ssg",
      hydration: "islands",
    });

    Adapted from the islands docs. server islands render a fragment per request with cookies and middleware context while the surrounding page stays SSG/ISG. This port sets neither, so it uses full hydration.

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

    Show the how-to

    Set render: "ssg" | "ssr" | "isg" | "spa" per route in src/routes.ts (rendering modes). Both routes in this port use isg.

    route('/:id', './routes/book.tsx', {
      id: 'book',
      render: 'isg',
      revalidate: timeRevalidate(3600),
    }),

    From this repo's pracht-books/src/routes.ts (optimized branch; shell omitted).

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

    Show the how-to

    Preact; signals are an opt-in @preact/signals package from the Preact team, counted as first-party the way Vue's reactivity is for Nuxt; Pracht's own docs do not mention it. This port does not use them, and no code example was found in the docs.

    Code example

    Install @preact/signals. Passing the signal itself into JSX ({count}, not {count.value}) binds it straight to the text node, so the component does not re-render when it changes.

    // src/components/counter.tsx
    import { signal } from '@preact/signals'
    
    const count = signal(0)
    
    export function Counter() {
      return (
        <div>
          <p>Count: {count}</p>
          <button onClick={() => count.value++}>click me</button>
        </div>
      )
    }

    Source: Preact: Signals

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

    Show the how-to

    pracht build --analyze prints per-route gzip and raw sizes; --json for scripts. Per-route budgets can fail the build (--no-budget-fail to opt out; CLI).

    pracht build --analyze

    From the performance guide.

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

    Show the how-to

    Use <Script> from @pracht/core with strategy="beforeHydration" | "afterHydration" (default) | "idle" | "visible". On hydration: "none" routes only beforeHydration runs. This port does not use it; its only script is an inline theme script in the shell's head().

    import { Script } from "@pracht/core";
    // ...
    <Script strategy="idle" src="https://example.com/chat-widget.js" />

    Adapted from the head and headers docs.

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

    Show the how-to

    Use adapters for Node, Vercel, Netlify, and Cloudflare.

    const adapter = isCloudflare
      ? cloudflareAdapter()
      : process.env.NETLIFY
        ? netlifyAdapter()
        : vercelAdapter();
    // ...
    pracht({ adapter, inlineCss: true })

    From this repo's pracht-books/vite.config.ts (optimized branch; other plugins omitted).

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

    Show the how-to

    No service worker support is documented in the Pracht docs. Hand-write the worker, serve it from public/, and register it from the shell.

    Code example

    Put a hand-written worker in public/ and register it with an inline script from the shell's head().

    // 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/shells/public.tsx
    const swScript = `if('serviceWorker' in navigator)addEventListener('load',function(){navigator.serviceWorker.register('/sw.js')});`;
    // … in the shell's head()
        script: [{ children: themeScript }, { children: swScript }],

    Source: Using Service Workers (MDN) · Pracht shells

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.

Pracht: latest benchmark per build and page
BuildPathPerfFCPRaw FCPLCPTBTCLSSITTIDocHosts
Book list /
baseline/86(good)1.510.40(poor)4.16(good)0(good)0.0001.644.161713/3 Vercel, Netlify, Cloudflare
optimized/93(good)0.980.93(needs improvement)3.08(good)1(good)0.0001.963.10923/3 Vercel, Netlify, Cloudflare
Book page /10145787
baseline/1014578797(good)1.510.24(needs improvement)2.56(good)3(good)0.0011.522.561093/3 Vercel, Netlify, Cloudflare
optimized/10145787100(good)0.820.24(good)1.41(good)4(good)0.0010.851.43873/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.

Pracht: latest benchmark per build, page and host
BuildPathHostPerfFCPRaw FCPLCPTBTCLSSITTIDocRunsStatus
Pracht
baseline/Vercel85(good)1.510.20(poor)4.36(good)0(good)0.0001.514.36983/3OK
baseline/Netlify87(good)1.510.32(poor)4.05(good)0(good)0.0011.544.051433/3OK
baseline/Cloudflare85(good)1.510.69(poor)4.06(good)0(good)0.0001.874.062723/3OK
baseline/10145787Vercel97(good)1.510.24(needs improvement)2.56(good)0(good)0.0001.532.561133/3OK
baseline/10145787Netlify97(good)1.510.27(needs improvement)2.56(good)8(good)0.0031.512.561433/3OK
baseline/10145787Cloudflare97(good)1.510.23(needs improvement)2.56(good)0(good)0.0001.512.56723/3OK
optimized/Vercel99(good)0.930.21(good)1.95(good)1(good)0.0000.931.95703/3OK
optimized/Netlify80(good)1.072.32(poor)5.03(good)1(good)0.0004.005.081543/3OK
optimized/Cloudflare99(good)0.950.25(good)2.26(good)0(good)0.0000.952.26513/3OK
optimized/10145787Vercel100(good)0.770.15(good)1.35(good)0(good)0.0000.771.39563/3OK
optimized/10145787Netlify100(good)0.910.32(good)1.37(good)0(good)0.0031.001.411603/3OK
optimized/10145787Cloudflare100(good)0.780.24(good)1.50(good)11(good)0.0000.781.50453/3OK