Apiker is a library for building serverless REST APIs on Cloudflare Workers and Durable Objects. You describe your API as a plain object of routes, and Apiker handles the request pipeline, persistent state, authentication and the operational tooling around it.

A complete API is three lines:

import { apiker, res } from "apiker"; const routes = { "/users/:id/hello": () => res("Hello World!") }; apiker.init({ routes, exports, objects: ["Common"] });

A GET request to /users/my-user/hello then returns:

{ "message": "Hello World!" }

What comes built in

  • Routing with path parameters and a middleware chain
  • Persistent state backed by Durable Objects, with atomic counters
  • Email and password authentication, JWTs, verification and password reset
  • Rate limiting, bans and Cloudflare WAF firewall integration
  • Request logging, server-side analytics beacons and transactional email
  • A hosted admin panel for users, bans, logs and analytics
Apiker runs on Durable Objects, which require a Cloudflare account with the paid Workers plan.

Start here