FAQ
Answers to common questions about runtimes, Effect, schemas, databases, production use, coding agents and getting help.
Short answers to the questions people ask first. For the bigger picture, read Why RelKit.
Is RelKit ready for production?
RelKit is pre-1.0. You can build and run a production server today, following the deployment guides, but expect one release with breaking changes before 1.0. That release will ship with a migration command and a migration guide, so you can update your code instead of rewriting it.
Which runtimes does RelKit support?
Applications run on Bun 1.3.10 or later. Node.js support is planned, followed by Cloudflare Workers for HTTP. Until then, choose RelKit only if you can run Bun in development and production.
Do I need to know Effect?
No. Handlers are plain async functions that return values. RelKit uses Effect internally for retries, cancellation and resource cleanup, but your code doesn’t have to:
/** Validates a new order and returns its calculated total. */
import { defineFunction } from "relkit/functions";
import { z } from "zod";
const createOrder = defineFunction({
input: z.object({
orderId: z.string().min(1),
sku: z.string().min(1),
quantity: z.number().int().positive(),
}),
output: z.object({ orderId: z.string(), sku: z.string(), totalCents: z.number().int() }),
handler: async ({ orderId, sku, quantity }, context) => {
context.log.info("order created", { orderId });
return { orderId, sku, totalCents: quantity * 100 };
},
});
export default createOrder;
Which schema library do I use?
Zod 4. New projects depend on zod and import z from it. RelKit accepts any Standard Schema library that can describe itself as JSON Schema, so ArkType, Valibot and Effect Schema work too, and you can mix them in one app. RelKit uses these schemas to validate input and output, produce the OpenAPI document and type the generated client. See Runtime schemas.
Can I use my own database or libraries?
Yes. A function is ordinary TypeScript, so it can call any library. For SQL databases, the Drizzle integration adds typed access, migrations and local Docker setup. Other integrations cover authentication, storage, caching and job providers.
How does RelKit work with coding agents?
New projects include an agent skill in .agents/skills/relkit that tells an agent where code goes, which APIs to use and how to check its work. The docs publish llms.txt and llms-full.txt. Because bun run check validates the whole application graph, an agent gets coded errors with links instead of runtime surprises.
Can I move an existing Express or Hono app?
Yes, one endpoint at a time. A Hono app can keep serving the endpoints that haven’t moved yet from inside RelKit. Follow Migrate from Express or Hono.
What does RelKit cost?
Nothing. RelKit is open source under the MIT license and has no hosted service you need to pay for.
Where do I get help?
Open an issue with the command you ran, the RELKIT_* code it printed, your package versions and a small reproduction.