Skip to content

Runtime Environments

Routup runs on any JavaScript runtime that supports Web standard Request and Response. Import from routup — the correct runtime entry is selected automatically via conditional exports.

typescript
import { App, defineCoreHandler, serve } from 'routup';

const app = new App();
app.get('/', defineCoreHandler(() => 'Hello'));

serve(app, { port: 3000 });

This works on Node.js, Bun, Deno, and any runtime that supports conditional exports.

Explicit Entry Points

For runtimes without conditional export support, explicit entry points are available:

ImportRuntime
routup/nodeNode.js
routup/bunBun
routup/denoDeno
routup/cloudflareCloudflare Workers
routup/service-workerService Workers
routup/genericGeneric Web API