mhernesniemi/kide-cms
关于
Code-first CMS for Astro
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Kide CMS
The CMS that lives in your Astro app.
Define collections in TypeScript and get a generated admin UI and typed content API.

Why Kide
Lives in your app, not a headless service. Kide runs inside your own server: collections in TypeScript, content read through a function call instead of HTTP, the admin served at your domain and deployed with your code.
No plugin API. You extend Kide the way you extend any code you own. Small needs are lifecycle hooks. Need more? pnpm exec kide eject moves the runtime, routes, and admin into src/cms/ to read, change, and audit. Package mode when you want a dependency, embedded when you want the source.
A complete admin for editors. Your schema stays in TypeScript, and editors get:
- 16 field types, including Tiptap rich text, blocks, and relations
- Assets with folders, focal points, and on-demand optimization
- Live preview: edit in the admin, see the page
- Drafts, publishing, scheduling, and version restore
- Field-level i18n: translate only what needs it
- Role-based access control, review, and an audit trail
Quick Start
pnpx create-kide-app
Pick how the runtime lives in your project:
- Package - the runtime is an
@kidecms/corenpm dependency innode_modules. Updates are a version bump. - Embedded - the CMS runtime, admin UI, and routes sit in
src/cms/as part of your project. Everything is there to read, debug, and change. Upgrades come as patches you review and apply yourself.
Pick a deploy target:
- Node.js - runs anywhere Node runs, SQLite for storage.
- Cloudflare - deploys as a Worker; provisions D1 + R2 for you.
How It Works
Define collections in src/cms/collections/:
// src/cms/collections/posts.ts
export default defineCollection({
slug: "posts",
labels: { singular: "Post", plural: "Posts" },
drafts: true,
fields: {
title: fields.text({ required: true, translatable: true }),
body: fields.richText({ translatable: true }),
author: fields.relation({ collection: "authors", admin: { position: "sidebar" } }),
},
});
One config generates everything: Drizzle tables, TypeScript types, a Zod validator, and the runtime admin UI.
Query through the typed local API anywhere in server code:
import { cms } from "@/cms/.generated/api";
const posts = await cms.posts.find({ status: "published" });
const post = await cms.posts.create({ title: "Hello" });
Hook into the lifecycle to transform, validate, or invalidate cache:
posts: {
afterPublish(doc, context) {
context.cache?.invalidate({ tags: ["posts", `post:${doc._id}`] });
},
}
Stack
Astro 7; admin in React 19. Drizzle ORM, SQLite/D1, Zod, Tiptap, shadcn/ui, Tailwind CSS
Note
Kide is in beta: the config and collection API, the local API and the project-owned files are stable, and breaking changes to them land only in minor releases with a changelog note. See Stability.
探索相关项目
加载中…