@palbase/backend
v9.0.1
Published
Palbase Backend SDK — class controllers (@Controller/@Get/@Post + @Body/@QueryParams/@Param), error classes, schema DSL
Downloads
1,847
Readme
@palbase/backend
The backend SDK for Palbase. Write file-based TypeScript endpoints, schema, workers, jobs, hooks, and webhooks that run in the Palbase managed runtime.
import { defineEndpoint, z, Database } from "@palbase/backend";
export default defineEndpoint({
method: "POST",
input: z.object({ title: z.string() }),
output: z.object({ id: z.string() }),
handler: async (req) => Database.insert("todos", { title: req.input.title }),
});Documentation
Start with docs/README.md. For AI coding tools, a single
concatenated corpus is generated at docs/llms-full.txt.
License
MIT
