16 · Integrations
Remix integration
Mount Remix's universal request handler under a wildcard. c.req.raw is the underlying Request — pass it through.
Code
with-remix.js
const { WebApp } = require(class="tk-str">39;@hyperbridge/forge/server39;); const { createRequestHandler } = require(class="tk-str">39;@remix-run/server-runtime39;); const build = require(class="tk-str">39;./build39;); const app = new WebApp(); const handle = createRequestHandler(build, class="tk-str">39;production39;); app.all(class="tk-str">39;*39;, (c) => handle(c.req.raw)); app.listen(3000);
How it works
Remix expects to be called with a Fetch Request — c.req.raw is exactly that, untouched by HBForge.
Add HBForge middleware before the wildcard for request logging, auth, rate limiting — Remix still owns the actual routing.
Same pattern works for any Fetch-API-compatible framework: SvelteKit, SolidStart, Astro adapters, Qwik City.
Try it
Quickstart
npm run remix-build && node server.js
Related modules
This is HBForge's port of Hono's example. Read the original at hono.dev/examples/with-remix.