# Remix 3

Remix 3 scores 10 of 28 points on 14 speed features: 8/14 on first-paint levers and 2/14 on other features. Rank 21 of 23. Labels: 4 1st-party, 0 Experimental, 2 Third-party, 8 Manual.

- Version checked: remix 3.3.0 (npm latest on 2026-11-25; docs at docs.remix.run) (Remix 3 is a new framework with its own component runtime (remix/component); it does not use React and is separate from React Router.)
- Performance guide: [Files and Assets | Remix Guides](https://docs.remix.run/files-and-assets/)
- Issue tracker: https://github.com/remix-run/remix/issues
- Books demo port: [remix3-books](https://github.com/MaxwellCohen/remix3-books)

## Summary

| Feature | Group | Label | Points |
| --- | --- | --- | --- |
| [Production CSS inlining](https://framework-compare.vercel.app/features/css-inlining.md) | First-paint levers | 1st-party | 2 |
| [Font optimization](https://framework-compare.vercel.app/features/font-optimization.md) | First-paint levers | Third-party | 1 |
| [Image pipeline](https://framework-compare.vercel.app/features/image-pipeline.md) | First-paint levers | Third-party | 1 |
| [Data/HTML caching](https://framework-compare.vercel.app/features/caching.md) | First-paint levers | Manual | 0 |
| [Route prefetching](https://framework-compare.vercel.app/features/route-prefetching.md) | First-paint levers | 1st-party | 2 |
| [Streaming SSR](https://framework-compare.vercel.app/features/streaming-ssr.md) | First-paint levers | 1st-party | 2 |
| [Early Hints / preload headers](https://framework-compare.vercel.app/features/early-hints.md) | First-paint levers | Manual | 0 |
| [Islands / partial hydration / lazy slices](https://framework-compare.vercel.app/features/islands.md) | Other features | 1st-party | 2 |
| [Per-route render modes](https://framework-compare.vercel.app/features/render-modes.md) | Other features | Manual | 0 |
| [Fine-grained client reactivity](https://framework-compare.vercel.app/features/reactivity.md) | Other features | Manual | 0 |
| [Built-in bundle analysis](https://framework-compare.vercel.app/features/bundle-analysis.md) | Other features | Manual | 0 |
| [Third-party script strategies](https://framework-compare.vercel.app/features/third-party-scripts.md) | Other features | Manual | 0 |
| [Portable multi-host deployment](https://framework-compare.vercel.app/features/multi-host-deployment.md) | Other features | Manual | 0 |
| [Service worker / offline support](https://framework-compare.vercel.app/features/service-worker.md) | Other features | Manual | 0 |

## First-paint levers

### Production CSS inlining

Label: **1st-party** (2 of 2 points).

Styles written with the `css(...)` mixin from `remix/component` are collected during server rendering, deduplicated and emitted as `<style data-rmx-style>` tags in the document head. Global stylesheets added with `<link rel="stylesheet">` and `assets.getHref()` stay linked files. ([rendering-ui](https://docs.remix.run/rendering-ui/#styling-with-css), [component](https://docs.remix.run/api/component/))

Example of building it yourself:

Styles written with `css(...)` and applied through the `mix` prop are collected during server rendering. Remix dedupes them and writes them into `<style data-rmx-style>` tags in the document head.

```tsx
// app/ui/book-card.tsx
import { css } from "remix/component";
import type { Handle } from "remix/component";

export function BookCard(handle: Handle<{ title: string; author: string }>) {
  return () => (
    <article
      mix={css({
        border: "1px solid #d6d6d6",
        borderRadius: "12px",
        padding: "1rem",
        "&:hover": { borderColor: "#6d28d9" },
        "@media (max-width: 40rem)": { borderRadius: 0 },
      })}
    >
      <h2>{handle.props.title}</h2>
      <p>{handle.props.author}</p>
    </article>
  );
}
```

Source: [Remix: Rendering UI, styling with css](https://docs.remix.run/rendering-ui/#styling-with-css)

### Font optimization

Label: **Third-party** (1 of 2 points).

No first-party font module documented. The asset server rewrites `url()` references in CSS, and a font preload is a hand-written `<link rel="preload" as="font">` using `assets.getHref()`; the third-party route is [Fontsource](https://fontsource.org). ([files-and-assets](https://docs.remix.run/files-and-assets/))

Example of building it yourself:

Install Fontsource, allow the package in the asset server, and link its stylesheet. The asset server rewrites the `url()` references in the CSS. The preload is a hand-written `<link>` with a URL from `getHref()`.

```tsx
// app/assets.ts  (npm i @fontsource-variable/inter)
export const assets = createAssetServer({
  // …
  allowPackages: ["remix", "@fontsource-variable/inter"],
  files: { extensions: [".svg", ".png", ".jpg", ".woff2"] },
});

export const fontCssHref = await assets.getHref(
  "node_modules/@fontsource-variable/inter/index.css",
);
export const fontHref = await assets.getHref(
  "node_modules/@fontsource-variable/inter/files/inter-latin-wght-normal.woff2",
);

// app/actions/document.tsx, inside <head>
<link rel="preload" href={fontHref} as="font" type="font/woff2" crossOrigin="anonymous" />
<link rel="stylesheet" href={fontCssHref} />
```

Source: [Remix: Files and assets, reference styles, images, and fonts](https://docs.remix.run/files-and-assets/)

### Image pipeline

Label: **Third-party** (1 of 2 points).

The asset server has a first-party transform pipeline: `files.transforms` defined with `defineFileTransform`, requested as `assets.getHref(path, { transform: [["resize", "400"], "webp"] })`, with `createFsFileCache()` for results. The resize and format code is written by the app with the third-party Sharp library, and there is no image component or `srcset` helper. ([files-and-assets](https://docs.remix.run/files-and-assets/), [assets](https://docs.remix.run/api/assets/))

Example of building it yourself:

The asset server runs named file transforms that the app writes with Sharp. A URL picks the chain, and `createFsFileCache()` keeps the results on disk.

```ts
// app/assets.ts  (npm i sharp)
import { createAssetServer, createFsFileCache, defineFileTransform } from "remix/assets";
import sharp from "sharp";

export const assets = createAssetServer({
  // …
  files: {
    extensions: [".png", ".jpg"],
    transforms: {
      resize: defineFileTransform({
        extensions: [".png", ".jpg"],
        param: true,
        // check that param is a width in range before using it
        transform: (bytes, { param }) => sharp(bytes).resize({ width: Number(param) }).toBuffer(),
      }),
      webp: defineFileTransform({
        extensions: [".png", ".jpg"],
        transform: async (bytes) => ({ content: await sharp(bytes).webp().toBuffer(), extension: ".webp" }),
      }),
    },
    cache: createFsFileCache(),
  },
});

// in an action
let coverHref = await assets.getHref("app/ui/public/cover.jpg", { transform: [["resize", "400"], "webp"] });
```

Source: [Remix: Files and assets, transform images and other files](https://docs.remix.run/files-and-assets/)

Art direction with `<picture>` (Manual, not scored):

No first-party `<picture>` helper documented; hand-write `<picture>` with transform URLs from `assets.getHref()`. ([files-and-assets](https://docs.remix.run/files-and-assets/))

There is no image component, so write `<picture>` yourself. Resolve each crop and format with `assets.getHref()` transforms in the action and pass the URLs in as props.

```tsx
// app/ui/hero-image.tsx
import type { Handle } from "remix/component";
import { assets } from "../assets.ts";

export async function getHeroSources() {
  let get = (file: string, transform: (string | [string, string])[]) => assets.getHref(`app/ui/public/${file}`, { transform });
  return {
    square: await get("hero-square.jpg", [["resize", "640"], "webp"]),
    wide: await get("hero-wide.jpg", [["resize", "1280"], "webp"]),
    fallback: await get("hero-wide.jpg", [["resize", "1280"]]),
  };
}

export function HeroImage(handle: Handle<Awaited<ReturnType<typeof getHeroSources>>>) {
  return () => (
    <picture>
      {/* art direction: a square crop on narrow screens */}
      <source media="(max-width: 640px)" type="image/webp" srcset={handle.props.square} />
      <source type="image/webp" srcset={handle.props.wide} />
      <img src={handle.props.fallback} alt="Shelves of books" width={1280} height={720}
           fetchpriority="high" decoding="async" />
    </picture>
  );
}
```

Source: [Remix: Files and assets, transform images and other files](https://docs.remix.run/files-and-assets/)

### Data/HTML caching

Label: **Manual** (0 of 2 points).

No prerender, ISR or data cache documented; actions return standard `Response` objects and set `Cache-Control` by hand. Fingerprinted assets are served with `Cache-Control: public, max-age=31536000, immutable`. ([request-handling](https://docs.remix.run/request-handling/), [assets](https://docs.remix.run/api/assets/))

Example of building it yourself:

There is no data or HTML cache, so each action sets `Cache-Control` on its own response. `context.render()` takes a `ResponseInit` for that.

```tsx
// app/actions/books/controller.tsx
import { createController } from "remix/router";
import { routes } from "../../routes.ts";
import { getBook } from "./data.ts";
import { BookPage } from "./show-page.tsx";

export default createController(routes.books, {
  actions: {
    async show(context) {
      let book = await getBook(context.params.bookId);
      if (!book) return new Response("Book not found", { status: 404 });

      return context.render(<BookPage book={book} />, {
        headers: { "Cache-Control": "public, max-age=60, s-maxage=300, stale-while-revalidate=600" },
      });
    },
  },
});
```

Source: [Remix: Rendering UI, rendering pages through request context](https://docs.remix.run/rendering-ui/#rendering-pages-through-request-context)

### Route prefetching

Label: **1st-party** (2 of 2 points).

`<a href="/products/shirt" data-rmx-prefetch="intent">` or `"viewport"` loads the destination before navigation; `prefetch()` from `remix/component` does it from code. ([component](https://docs.remix.run/api/component/#prefetching), [interactivity](https://docs.remix.run/interactivity/))

Example of building it yourself:

Add `data-rmx-prefetch` to a link to load the destination on hover or focus (`intent`) or when it scrolls into view (`viewport`). `prefetch()` does the same from code.

```tsx
// app/ui/book-link.tsx
import { prefetch } from "remix/component";
import type { Handle } from "remix/component";
import { routes } from "../routes.ts";

export function BookLink(handle: Handle<{ bookId: string; title: string }>) {
  return () => (
    <a href={routes.books.show.href({ bookId: handle.props.bookId })} data-rmx-prefetch="intent">
      {handle.props.title}
    </a>
  );
}

// elsewhere, from custom logic
prefetch(routes.books.show.href({ bookId: "dune" }));
```

Source: [Remix: Interactivity, prefetch links before navigation](https://docs.remix.run/interactivity/)

### Streaming SSR

Label: **1st-party** (2 of 2 points).

Give a `<Frame src="...">` a `fallback`; the fallback is part of the initial HTML, and when the frame's route finishes Remix streams its HTML and replaces the fallback. The `render()` middleware from `remix/middleware/render` streams the component tree. A frame without a fallback blocks the first chunk. ([streaming-ui-with-frames](https://docs.remix.run/streaming-ui-with-frames/))

Example of building it yourself:

The `render()` middleware streams the component tree. A `<Frame>` with a `fallback` sends the fallback in the first chunk, then streams the frame route's HTML when it is ready.

```tsx
// app/router.ts
import { render } from "remix/middleware/render";
import { createRouter } from "remix/router";
import { assets } from "./assets.ts";

export const router = createRouter({
  middleware: [render({ assets })],
});

// app/actions/books/show-page.tsx
<main>
  <h1>{book.title}</h1>
  <Frame
    src={routes.books.reviews.href({ bookId: book.id })}
    fallback={<p>Loading reviews…</p>}
  />
</main>
```

Source: [Remix: Streaming UI with frames, stream a fallback first](https://docs.remix.run/streaming-ui-with-frames/)

### Early Hints / preload headers

Label: **Manual** (0 of 2 points).

No first-party preload `Link` headers or 103 Early Hints documented; the asset server returns module `preloads` that the document renders as `<link rel="modulepreload">` tags. Set a `Link` header by hand on the returned `Response`. ([assets](https://docs.remix.run/api/assets/), [files-and-assets](https://docs.remix.run/files-and-assets/))

Example of building it yourself:

There is no Early Hints API, so set a `Link` preload header yourself on the response the action returns.

```tsx
// app/actions/books/controller.tsx
import { assets, stylesheetHref } from "../../assets.ts";

// inside the show action:
let coverHref = await assets.getHref("app/ui/public/cover.jpg");

return context.render(<BookPage book={book} coverHref={coverHref} />, {
  headers: {
    Link: [
      `<${stylesheetHref}>; rel=preload; as=style`,
      `<${coverHref}>; rel=preload; as=image; fetchpriority=high`,
    ].join(", "),
  },
});
```

Source: [Remix: Rendering UI, rendering pages through request context](https://docs.remix.run/rendering-ui/#rendering-pages-through-request-context)

## Other features

### Islands / partial hydration / lazy slices

Label: **1st-party** (2 of 2 points).

Pages are server-rendered HTML; only components wrapped in `clientEntry(import.meta.url, Component)` hydrate. `<Frame src="..." fallback={...}>` streams a server-rendered region into the page and can load it lazily. ([interactivity](https://docs.remix.run/interactivity/#cliententry), [streaming-ui-with-frames](https://docs.remix.run/streaming-ui-with-frames/))

Example of building it yourself:

Pages are server HTML. Only a component wrapped in `clientEntry(import.meta.url, ...)` is loaded and hydrated in the browser, with its props serialized into the page.

```tsx
// app/actions/books/public/add-to-cart.tsx
import { clientEntry, on } from "remix/component";
import type { Handle } from "remix/component";

export const AddToCart = clientEntry(
  import.meta.url,
  function AddToCart(handle: Handle<{ bookId: string }>) {
    let added = false;
    return () => (
      <button
        type="button"
        mix={on("click", () => {
          added = true;
          handle.update();
        })}
      >
        {added ? "Added" : "Add to cart"}
      </button>
    );
  },
);
```

Source: [Remix: Interactivity, hydration boundaries with clientEntry](https://docs.remix.run/interactivity/#cliententry)

### Per-route render modes

Label: **Manual** (0 of 2 points).

Routes render on the server per request. `remix/spa` runs a whole app as a client-rendered app; no per-route prerender or SPA switch is documented. ([spa](https://docs.remix.run/api/spa/), [request-handling](https://docs.remix.run/request-handling/))

Example of building it yourself:

Every route renders per request. To serve one page as static HTML, render it once at startup with `renderToString()` and return the stored string from that route.

```tsx
// app/router.ts
import { renderToString } from "remix/component/server";
import { render } from "remix/middleware/render";
import { createHtmlResponse } from "remix/response/html";
import { createRouter } from "remix/router";
import { assets } from "./assets.ts";
import { AboutPage } from "./actions/about-page.tsx";

// rendered once, when the server starts
const aboutHtml = await renderToString(<AboutPage />);

export const router = createRouter({ middleware: [render({ assets })] });

router.get("/about", () =>
  createHtmlResponse(aboutHtml, { headers: { "Cache-Control": "public, max-age=3600" } }),
);
// all other routes: context.render(...) on each request
```

Source: [Remix: Streaming UI with frames, render the response as a stream](https://docs.remix.run/streaming-ui-with-frames/#server-rendering-with-rendertostream-and-rendertostring)

### Fine-grained client reactivity

Label: **Manual** (0 of 2 points).

State is a plain variable and the component re-renders only when the app calls `handle.update()`; there are no signals and no dependency tracking. ([interactivity](https://docs.remix.run/interactivity/), [component](https://docs.remix.run/api/component/))

Example of building it yourself:

State is a plain variable in setup scope. The component renders again only when you call `handle.update()`.

```tsx
// app/ui/public/counter.tsx
import { on } from "remix/component";
import type { Handle } from "remix/component";

export function Counter(handle: Handle<{ initialCount: number }>) {
  let count = handle.props.initialCount;

  return () => (
    <button
      type="button"
      mix={on("click", () => {
        count++;
        handle.update();
      })}
    >
      Count: {count}
    </button>
  );
}
```

Source: [Remix: Interactivity, state, updates, and post-render tasks](https://docs.remix.run/interactivity/)

### Built-in bundle analysis

Label: **Manual** (0 of 2 points).

There are no bundles to analyze: the asset server compiles modules on request and the browser loads them one by one. `remix assets` lists every reachable file and `remix assets inspect <url-or-file>` explains one mapping; neither reports sizes. ([files-and-assets](https://docs.remix.run/files-and-assets/), [assets](https://docs.remix.run/api/assets/))

Example of building it yourself:

There is no bundle. The `remix assets` CLI lists every file the browser can reach and explains one URL. It reads the `assets` section of `remix.json` and does not report sizes.

```jsonc
// remix.json
{
  "$schema": "./node_modules/remix/schema/remix.json",
  "assets": {
    "basePath": "/assets",
    "allowFiles": ["app/routes.ts", "app/**/public/**"],
    "allowPackages": ["remix"],
    "files": { "extensions": [".svg", ".png", ".jpg", ".woff2"] }
  }
}
```

```sh
npx remix assets                                   # URL -> file for every reachable file
npx remix assets inspect /assets/app/ui/public/cart.ts
```

Source: [Remix: Files and assets, debug asset URLs with remix assets](https://docs.remix.run/files-and-assets/)

### Third-party script strategies

Label: **Manual** (0 of 2 points).

No first-party script-loading strategy documented; add `<script>` tags to the document by hand. ([rendering-ui](https://docs.remix.run/rendering-ui/))

Example of building it yourself:

There is no script loader. Put the `<script>` tag in the document shell's `<head>` with `async` or `defer`.

```tsx
// app/actions/document.tsx
export function Document(handle: Handle<DocumentProps>) {
  return () => (
    <html lang="en">
      <head>
        <meta charSet="utf-8" />
        <title>{handle.props.title ?? "Books"}</title>
        {/* … import map, module preloads, entry script */}
        <script async src="https://plausible.io/js/script.js" data-domain="books.example.com"></script>
      </head>
      <body>{handle.props.children}</body>
    </html>
  );
}
```

Source: [Remix: Rendering UI, document shells and head content](https://docs.remix.run/rendering-ui/#document-shells-and-head-content)

### Portable multi-host deployment

Label: **Manual** (0 of 2 points).

The router is a Fetch handler. Node runs it through `remix/node-fetch-server`, and the docs show Bun, Deno and Cloudflare Worker entries; the static-file and compression middleware are Node-only. No Vercel or Netlify setup is documented, and the Production chapter covers the Node server. ([request-handling](https://docs.remix.run/request-handling/#alternate-runtimes-bun-deno-workers), [production](https://docs.remix.run/production/), [node-fetch-server](https://docs.remix.run/api/node-fetch-server/))

Example of building it yourself:

The router is a Fetch handler. Node wraps it with `createRequestListener`; Bun, Deno and Workers call `router.fetch` directly.

```ts
// server.ts (Node)
import * as http from "node:http";
import { createRequestListener } from "remix/node-fetch-server";
import { router } from "./app/router.ts";

http.createServer(createRequestListener(router.fetch)).listen(44100);

// server.ts (Bun)
Bun.serve({ port: 44100, fetch: (request) => router.fetch(request) });

// server.ts (Deno)
Deno.serve({ port: 44100 }, router.fetch);

// worker.ts (Cloudflare)
export default { fetch: (request) => router.fetch(request) } satisfies ExportedHandler;
```

Source: [Remix: Request handling, alternate runtimes](https://docs.remix.run/request-handling/#alternate-runtimes-bun-deno-workers)

### Service worker / offline support

Label: **Manual** (0 of 2 points).

No service worker support documented in the Remix 3 guides or API reference. Hand-write the worker, serve it through the asset server or a static route, and register it from a client entry. ([files-and-assets](https://docs.remix.run/files-and-assets/))

Example of building it yourself:

Write `sw.js` by hand, serve it from the root `public/` directory with `staticFiles()` so its scope is `/`, and register it from the browser entry.

```ts
// app/router.ts
export const router = createRouter({
  middleware: [staticFiles("./public", { index: false }), render({ assets })],
});

// app/actions/public/entry.ts
import { run } from "remix/component";

let app = run({ /* loadModule, … */ });
await app.ready();

if ("serviceWorker" in navigator) {
  navigator.serviceWorker.register("/sw.js");
}
```

Source: [Remix: Request handling, common middleware](https://docs.remix.run/request-handling/#common-middleware)

## Other performance features

- No application build step: the asset server compiles TypeScript and JSX per module, and an import map keeps fingerprints per module so one changed file does not invalidate the files that import it. ([files-and-assets](https://docs.remix.run/files-and-assets/))
- `<Frame>` regions can be reloaded without a full navigation. ([streaming-ui-with-frames](https://docs.remix.run/streaming-ui-with-frames/))
- Module preloads for client entries are generated by the asset server. ([assets](https://docs.remix.run/api/assets/))

## Deployments of the Books demo

| Branch | Note | Vercel | Netlify | Cloudflare |
| --- | --- | --- | --- | --- |
| `main` | baseline | https://remix3-books.vercel.app | https://remix3-books.netlify.app | https://remix3-books.to-email-max.workers.dev |
| `optimized` | streamed frames + prefetch + fonts + catalog cache + cover preloads + asset headers | https://remix3-books-optimized.vercel.app | https://remix3-books-max-optimized.netlify.app | https://remix3-books-optimized.to-email-max.workers.dev |

## Benchmark, 2026-11-28

Tool: PageSpeed Insights v5 (Lighthouse lab run), mobile strategy. 3 measured runs per deployment, median reported; cold runs are left out of the median when a warm run exists. Each build's figure is the average of its hosts' medians (vercel, netlify, cloudflare). Pages measured: book list (/) and one book (/10145787). Times are lab values from one run on 2026-11-28. FCP is the Lighthouse estimate for simulated Slow 4G; Raw FCP, where shown, is the first paint in the real, unthrottled load that estimate is built from. Builds in the same FCP band (https://framework-compare.vercel.app/measured.md) are a tie, so read "fastest first" as band order.

| Page | Build | Branch | Hosts | Performance | FCP | Raw FCP | LCP | TBT | CLS |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| book list (/) | baseline | `main` | cloudflare, netlify, vercel | 84 | 1.51 s | 1.67 s | 4.36 s | 0 ms | 0.000 |
| book list (/) | optimized | `optimized` | cloudflare, netlify, vercel | 87 | 0.91 s | 0.95 s | 4.06 s | 0 ms | 0.000 |
| one book (/10145787) | baseline | `main` | cloudflare, netlify, vercel | 96 | 1.51 s | 0.63 s | 2.66 s | 0 ms | 0.000 |
| one book (/10145787) | optimized | `optimized` | cloudflare, netlify, vercel | 98 | 0.91 s | 0.99 s | 2.28 s | 3 ms | 0.000 |

Full run: https://framework-compare.vercel.app/benchmark.md

---

HTML version: https://framework-compare.vercel.app/frameworks/remix · All pages: https://framework-compare.vercel.app/llms.txt · Data: https://framework-compare.vercel.app/api/index.json
