pre-1.0 · TypeScript backend framework

Structured by design.
Fast by default.

Arcton is a backend framework for TypeScript, structured for real applications — priority-based routing, native WebSockets, and a runtime-decoupled core you can extend through adapters, without the ceremony.

Get Started
index.ts
import { Arcton } from '@arcton/core'import * as v from 'valibot'const app = Arcton({ port: 3000 })app.get('/', () => ({ message: 'Welcome to Arcton' }))app.post('/echo', {  body: v.object({ message: v.string() }),  handler: ctx => ({ echoed: ctx.body.message })})app.ws('/chat', {  message(ws, msg) {    ws.send(`echo: ${msg}`)  }})app.listen()

Everything a real API needs, nothing it doesn’t

Typed routing

ctx.params is inferred from the route literal itself — no generic argument, no cast.

An explicit pipeline

Middleware composes in onion order, and a route only ever runs what was registered before it.

Standard Schema validation

Validate params, query and body with Zod, Valibot or ArkType — Arcton depends on none of them.

Runtime-decoupled core

@arcton/core never imports Bun or Node.js. Pick a runtime as one option to listen().

WebSockets, natively

app.ws() registers a socket route on the same server as your HTTP routes.

Modules that really merge

Mount an Arcton instance into another and its route tree grafts in at registration — no nested router at request time.