Define a resource once, get the rest for free.
VeriKit is a TypeScript-first resource framework for CRUD-heavy applications. Define fields, validation, relationships, permissions, and actions in one place, then use that definition across your API, database adapter, typed client, forms, and tables.
Requires Node.js 24 or newer.
1. Create an app.
npm create verikit@latest my-app
cd my-app
npm run devOpen http://localhost:3000. You have an admin panel for a sample post
resource, with search, sorting, and create, edit, and delete pages, backed by
a REST API at /api/post and a SQLite database.
2. Add a resource.
npx verikit make:resource Tag name:text color:select:red,green,blue
npm run db:generateThat writes resources/tag.ts, regenerates the database schema, and creates a
migration. The dev server restarts and a Tags page appears.
3. Relate two resources.
npx verikit make:resource Comment body:textarea post:belongsTo:post
npm run db:generateThe comment form gets a searchable picker that lists posts by title, and the comments table and record page show each comment's post by title too.
4. Lock a resource down. In server/permissions.ts, replace a resource's
"open" with rules. Permissions fail closed, so this makes tags read-only:
anything without a rule, like creating or editing, is denied.
import { definePermissions } from "verikit";
// in the permissions map:
tag: definePermissions()
.can("list", true)
.can("read", true)
.field("name", { read: true })
.field("color", { read: true }),For signed-in users, see examples/waitlist-sqlite, which gives admins full access and the public a single create endpoint.
5. Ship it.
npm run build
npm startnpm start serves the API and the built panel on PORT (default 3000) with
the database at DATABASE_PATH (default data/app.db). Before deploying, read
the Production sections of the @verikit/server
and @verikit/client READMEs.
npm install verikitOne package, with your framework and ORM installed alongside it (React:
react react-dom @tanstack/react-query; Drizzle: drizzle-orm). See
packages/verikit for the full list. The scoped
@verikit/* packages are still published for finer-grained installs.
import { boolean, defineResource, text } from "verikit";
export const post = defineResource("post", {
fields: {
title: text().required(),
published: boolean().default(false),
},
});That one definition is what verikit/server exposes over REST, verikit/drizzle or
verikit/prisma backs with a database, verikit/client consumes through a typed client, and
verikit/react renders as tables and forms. verikit/react-panel turns a list of
resources into a full admin panel with navigation and list, record, create, and edit pages:
<Panel title="Acme" resources={[post, user]} />One adapter factory stores every resource, and a revision column gives
resources with permissions safe concurrent updates automatically:
const api = createServer({
adapter: drizzleAdapter(db, { tables }),
resources: [{ resource: post, permissions: "open" }],
});- examples/waitlist-sqlite: a waitlist the public joins through the API and an admin manages in the panel. Covers permissions down to field level, a server action, sign-in, and API tests. It runs in CI.
Guides and API reference: verikit.dev
VeriKit is under active development. APIs may change.
Contributing? See CONTRIBUTING.md for local setup.
