Runable v1.0.0-alpha.20
Why Runable? Docs Modules Work with AI Blog About Changelog
  • 01Why Runable?
  • 02Docs
  • 03Modules
  • 04Work with AI
  • 05Blog
  • 06About
  • 07Changelog
Vue without a fixed server runtime.
Getting Started Structure Integrations Guide MCP API
  • Getting Started Structure Integrations Guide MCP API
  • Express
  • Fastify
  • Hono
  • Koa
  • NestJS
  • AdonisJS
  • h3
  • Bun
  • Deno
  • Custom

Koa

Add Runable as the last middleware in a Koa application.

Installation

pnpm add runable vue vue-router koa
pnpm add -D @types/koa

Configuration

// server.ts
import Koa from "koa";
import { koa } from "runable/adapters/koa";

const app = new Koa();

app.use(async (context, next) => {
  if (context.path === "/api/health") {
    context.body = { status: "ok" };
    return;
  }

  await next();
});

app.use(koa());
app.listen(3000);

The adapter disables Koa's automatic response with context.respond = false, then writes directly to context.res. Mount it last: it does not forward the request to subsequent middleware.

Report an issue Edit this page
Hono

Use Runable as a fallback after Hono routes.

NestJS

Connect Runable after the controllers of a NestJS application using Express.

On this page

  • 1Installation
  • 2Configuration
Runable

The Vue framework that brings productive conventions to any backend.

Product

  • Why Runable
  • Documentation
  • Installation
  • Integrations

Project

  • About
  • Blog
  • Changelog
  • Sponsor

Community

  • GitHub
  • Issues
  • Discussions
  • Bluesky

© 2026 Runable. Released under the MIT License.

Open source Built with Vue and Runable