Runtime API

RahulChaube Runtime provides built-in HTTP server capabilities and web standard APIs (Fetch, Request, Response, WebSocket, Crypto).

Web Standard Server

// server.ts
Bun.serve({
  port: 3000,
  fetch(req) {
    return new Response("Hello from RahulChaube Runtime!");
  },
});

REST API Services

The bundled API engine in api/ provides standard REST services:

  • GET /api/health — Server health checks
  • GET /api/version — Runtime version info
  • GET /api/releases — Official release list
  • GET /api/openapi.json — OpenAPI specifications