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.
- 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
- 01Production CSS inlining1st-party2 pts
1st-party, like 7 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Set
inlineCss: trueon the@pracht/vite-pluginoptions.plugins: [pracht({ adapter, inlineCss: true })],From this repo's
pracht-books/vite.config.ts(optimizedbranch; other plugin options omitted). - 02Font optimization1st-party2 pts
1st-party, like 3 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
defineFont()from@pracht/coregenerates@font-facerules 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 tonext/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/geistinsrc/styles/global.cssinstead. - 03Image pipeline1st-party2 pts
1st-party, like 8 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
@pracht/imageships loaders inside the package (vercelLoader,netlifyLoader,cloudflareLoader,defaultLoader,passthroughLoader;createImageHandlerfrom@pracht/image/node), plusplaceholder="blur",priority, and build-time?prachtimports.netlifyLoaderwas added in@pracht/image0.5.0; this port uses it on Netlify (@pracht/image0.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.tsandsrc/features/book/components/book-cover.tsx(optimizedbranch; some props omitted).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.
@pracht/imageemitssrcset/sizes;getImageProps()likewise returns plainimgattributes, 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/imageonce per art-directed source, then write the<picture>yourself. The loader configured in the port'ssrc/lib/images.tsstill builds everysrcsetURL.// 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-toHide the how-to
ISG(render: "isg"withrevalidate: timeRevalidate(3600), orwebhookRevalidate()) is a per-route rendering mode. This port usesisgon both routes and addssrc/lib/catalog-cache.tsfor host-aware data caching.route('/', './routes/home.tsx', { id: 'home', render: 'isg', revalidate: timeRevalidate(3600), }),From this repo's
pracht-books/src/routes.ts(optimizedbranch;shellomitted). - 05Route prefetching1st-party2 pts
1st-party, like 18 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Use the
prefetchroute option or<Link>prop; the default isintent(hoveris an alias), withviewport,none, and link-onlyrenderalso available.<Link route="book" prefetch={eagerPrefetch ? 'viewport' : 'intent'} />Adapted from this repo's
pracht-books/src/features/book/components/book-card.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
Set the route option
streaming: trueand wrap slow loader values indefer(). It needsrender: "ssr"and full hydration. Pages-router files useexport const STREAMING = true.route("/product/:id", () => import("./routes/product.tsx"), { render: "ssr", streaming: true, });From the Pracht data loading docs ("Streaming the document").
- 07Early Hints / preload headers1st-party2 pts
1st-party, like 3 of the other 22 frameworks. None scores higher.
Show the how-toHide 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
Linkheader for their stylesheets (performance guide, Early hints). On the Node adapter,earlyHints: truesends the 103 itself, including the page's scripts, before the loaders run.nodeAdapter({ earlyHints: true });
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
Set
hydration: "islands"per route, with interactive components discovered fromsrc/islands/;hydration: "none"gives a zero-JS page (islands).route("/", "./routes/home.tsx", { render: "ssg", hydration: "islands", });Adapted from the islands docs.
server islandsrender 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. - 09Per-route render modes1st-party2 pts
1st-party, like 18 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Set
render: "ssg" | "ssr" | "isg" | "spa"per route insrc/routes.ts(rendering modes). Both routes in this port useisg.route('/:id', './routes/book.tsx', { id: 'book', render: 'isg', revalidate: timeRevalidate(3600), }),From this repo's
pracht-books/src/routes.ts(optimizedbranch;shellomitted). - 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
Preact; signals are an opt-in
@preact/signalspackage 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
- 11Built-in bundle analysis1st-party2 pts
1st-party, like 1 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
pracht build --analyzeprints per-route gzip and raw sizes;--jsonfor scripts. Per-routebudgetscan fail the build (--no-budget-failto opt out; CLI).pracht build --analyzeFrom the performance guide.
- 12Third-party script strategies1st-party2 pts
1st-party, like 4 of the other 22 frameworks. None scores higher.
Show the how-toHide the how-to
Use
<Script>from@pracht/corewithstrategy="beforeHydration" | "afterHydration" (default) | "idle" | "visible". Onhydration: "none"routes onlybeforeHydrationruns. This port does not use it; its only script is an inline theme script in the shell'shead().import { Script } from "@pracht/core"; // ... <Script strategy="idle" src="https://example.com/chat-widget.js" />Adapted from the head and headers docs.
- 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.const adapter = isCloudflare ? cloudflareAdapter() : process.env.NETLIFY ? netlifyAdapter() : vercelAdapter(); // ... pracht({ adapter, inlineCss: true })From this repo's
pracht-books/vite.config.ts(optimizedbranch; other plugins omitted). - 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 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'shead().// 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.
- App
- pracht-books
- Repository
- github.com/MaxwellCohen/pracht-books
Branch
main
vibe port
- Vercel
- pracht-books.vercel.app
- Netlify
- pracht-books.netlify.app
- Cloudflare
- pracht-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 | / | 86 | (good)1.51 | 0.40 | (poor)4.16 | (good)0 | (good)0.000 | 1.64 | 4.16 | 171 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | / | 93 | (good)0.98 | 0.93 | (needs improvement)3.08 | (good)1 | (good)0.000 | 1.96 | 3.10 | 92 | 3/3 Vercel, Netlify, Cloudflare |
| Book page /10145787 | |||||||||||
| baseline | /10145787 | 97 | (good)1.51 | 0.24 | (needs improvement)2.56 | (good)3 | (good)0.001 | 1.52 | 2.56 | 109 | 3/3 Vercel, Netlify, Cloudflare |
| optimized | /10145787 | 100 | (good)0.82 | 0.24 | (good)1.41 | (good)4 | (good)0.001 | 0.85 | 1.43 | 87 | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Pracht | |||||||||||||
| baseline | / | Vercel | 85 | (good)1.51 | 0.20 | (poor)4.36 | (good)0 | (good)0.000 | 1.51 | 4.36 | 98 | 3/3 | OK |
| baseline | / | Netlify | 87 | (good)1.51 | 0.32 | (poor)4.05 | (good)0 | (good)0.001 | 1.54 | 4.05 | 143 | 3/3 | OK |
| baseline | / | Cloudflare | 85 | (good)1.51 | 0.69 | (poor)4.06 | (good)0 | (good)0.000 | 1.87 | 4.06 | 272 | 3/3 | OK |
| baseline | /10145787 | Vercel | 97 | (good)1.51 | 0.24 | (needs improvement)2.56 | (good)0 | (good)0.000 | 1.53 | 2.56 | 113 | 3/3 | OK |
| baseline | /10145787 | Netlify | 97 | (good)1.51 | 0.27 | (needs improvement)2.56 | (good)8 | (good)0.003 | 1.51 | 2.56 | 143 | 3/3 | OK |
| baseline | /10145787 | Cloudflare | 97 | (good)1.51 | 0.23 | (needs improvement)2.56 | (good)0 | (good)0.000 | 1.51 | 2.56 | 72 | 3/3 | OK |
| optimized | / | Vercel | 99 | (good)0.93 | 0.21 | (good)1.95 | (good)1 | (good)0.000 | 0.93 | 1.95 | 70 | 3/3 | OK |
| optimized | / | Netlify | 80 | (good)1.07 | 2.32 | (poor)5.03 | (good)1 | (good)0.000 | 4.00 | 5.08 | 154 | 3/3 | OK |
| optimized | / | Cloudflare | 99 | (good)0.95 | 0.25 | (good)2.26 | (good)0 | (good)0.000 | 0.95 | 2.26 | 51 | 3/3 | OK |
| optimized | /10145787 | Vercel | 100 | (good)0.77 | 0.15 | (good)1.35 | (good)0 | (good)0.000 | 0.77 | 1.39 | 56 | 3/3 | OK |
| optimized | /10145787 | Netlify | 100 | (good)0.91 | 0.32 | (good)1.37 | (good)0 | (good)0.003 | 1.00 | 1.41 | 160 | 3/3 | OK |
| optimized | /10145787 | Cloudflare | 100 | (good)0.78 | 0.24 | (good)1.50 | (good)11 | (good)0.000 | 0.78 | 1.50 | 45 | 3/3 | OK |