Skip to content
프로젝트

소개

Code-first CMS for Astro

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Kide CMS

Built with Astro

The CMS that lives in your Astro app.

Define collections in TypeScript and get a generated admin UI and typed content API.

Kide admin UI

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/core npm dependency in node_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.

npm CI License: MIT

관련 프로젝트 살펴보기

불러오는 중…