Full app
Your site, the admin and the API are one SvelteKit app, deployed as one Worker. Pages read content with the Local API: a function call, not an HTTP request.
v0.1 · open source · MIT
Define your content in TypeScript and get a Svelte 5 admin, a typed Local API, drafts, versions and sign-in. It all runs on Workers, D1 and R2: as one Worker with your site, or headless over Service Bindings.
pnpm create kitcms@latest my-site No separate CMS server, no hosted database to pay for, no schema clicked together in a dashboard.
Collections, globals, blocks and fields are defined in kitcms.config.ts. Types are inferred, migrations are generated, and every change goes through code review.
The admin, the API and your site deploy together as a single SvelteKit app on Cloudflare Workers.
The admin, REST, RPC and your own server code all go through the same access rules, hooks and validation.
Autosaved drafts, version history with restore, and previews rendered by your own Svelte components.
Uploads are stored in your own R2 bucket. Images are resized on the fly through Cloudflare's /cdn-cgi/image.
Other Workers read content over a Service Binding with a typed client. No public API keys, no extra network hop.
This is the whole definition. kitcms generates the D1 migration, the admin list and edit form, and the types your pages query with.
import { collection, defineConfig, fields as f } from '@kitcms/core';
export default defineConfig({
collections: [
collection({
slug: 'posts',
versions: { drafts: { autosave: true } },
access: { read: () => true },
fields: {
title: f.text({ required: true }),
slug: f.slug({ from: 'title', unique: true }),
publishedAt: f.date(),
body: f.richText(),
},
}),
],
});Same config, same API. Pick how content reaches your users.
Your site, the admin and the API are one SvelteKit app, deployed as one Worker. Pages read content with the Local API: a function call, not an HTTP request.
Keep content in one Worker and read it from others through a Service Binding. Calls stay inside Cloudflare and are typed end to end.
import { kitcms } from '@kitcms/client';
import type { KitcmsTypes } from './kitcms-types';
const cms = kitcms<KitcmsTypes>(env.CMS);
const { docs } = await cms.find('posts', { sort: '-publishedAt', limit: 10 });kitcms runs only on Cloudflare. That is the point: no servers to run, and content sits next to your code.
Passwords are hashed with scrypt, which needs more CPU time per request than the Free plan's 10 ms limit.
Learn moreContent, users and versions live in a D1 database, created with one wrangler command.
Uploaded files are stored in an R2 bucket you own.
Scaffold, migrate, run. Local D1 and R2 work without a Cloudflare account.
pnpm create kitcms@latest my-site