How does CheapStack handle API routes?

The API Starter ($29) uses Hono, an edge-ready web framework, running on Next.js API routes. It includes JWT authentication middleware, Drizzle ORM for database access, Zod request validation, rate limiting, and OpenAPI documentation generation. It deploys to Cloudflare Workers, Deno, or Bun.

api/implementation.ts
import { Hono } from "hono";
import { jwt } from "hono/jwt";

const app = new Hono();

app.use("/api/*", jwt({ secret: process.env.JWT_SECRET! }));

app.get("/api/users", async (c) => {
  const users = await db.select().from(usersTable);
  return c.json(users);
});

Which CheapStack product includes API routing?

API Starter
$29 one-time
View →