Core@revojs/server

Web standards from request to response.

Build HTTP routes, middleware, scheduled jobs and WebSockets around Request, Response and a request-scoped context.

Open on npm

What it handles

Routes and middleware
Validated request data
WebSockets and schedules
Cookies, state and responses
Start here
import { defineRoute, sendOk } from "@revojs/server";

export default defineRoute({
    fetch(scope) {
        return sendOk(scope, { ready: true });
    },
});

Keep exploring

Related modules

revojs

A Vite-native framework that turns routes, middleware, hooks, context and modules into a small set of predictable primitives.

@revojs/client

Connect browser entry points, generated assets and HTML tags to the revojs module graph without application-specific bundler plumbing.