# For developers

URL: https://www.kywi.dev/developers
Type: page

## Give marketing control without giving up the codebase.

For developers

Your marketing team shouldn’t need you to change a headline.

You also shouldn’t have to hand them an unrestricted page builder that slowly turns the frontend into something nobody wants to maintain.

Kywi creates a boundary both sides can live with.

Developers define the system.

Marketers operate it.

Read the docs

The Kywi admin site tree, showing the content hierarchy of a running site

[View on GitHub](https://github.com/Kywi-Software/kywi-cms)

## You should not be the CMS.

If developers have to make every content change, the organization doesn’t really have a CMS.

It has developers with database access.

Kywi gives the rest of the team a proper operating surface for parts of the site that are designed to change.

## Keep structural contracts in Git.

Content types, fields, and layout contracts live in kywi.config.ts — versioned, reviewed in a pull request, and applied through the same migration path as every other schema change. Nothing about that requires every field to be locked to code: a type declared there can still be extended through the admin, without touching the application.

## The same page, as a marketer edits it.

contentTypes: [ { name: 'caseStudy', label: 'Case study', baseType: 'content', fields: [ { name: 'client', type: 'text', required: true }, { name: 'industry', type: 'select', options: ['saas', 'retail', 'finance'] }, ], }, ],

Change the case study headline.

Client

Industry

You don’t have to choose between code-first and usable.

## The CMS should not dictate the frontend.

Read the same published content over REST, through the SDK, or with GraphQL.

REST

# Published content is a public read - no key required. curl -s "https://kywi.dev/api/v1/content/slug/launch?siteId=default" # Every node of one type, filtered and paged curl -s "https://kywi.dev/api/v1/content/page?status=published&limit=10"

SDK

import { createKywiSdk } from '@kywi-software/sdk' const kywi = createKywiSdk({ baseUrl: 'https://kywi.dev/api/v1', apiKey: process.env.KYWI_API_KEY, // rides on Authorization: Bearer defaultSiteId: 'default', }) const page = await kywi.content.getBySlug('launch') const nav = await kywi.nav.getTree()

GraphQL

# POST /api/v1/graphql. GraphQL is default-deny per content type: a type is # reachable only when kywi.config.ts declares it with `graphql: true`. query Page($slug: String!, $siteId: String!) { contentBySlug(slug: $slug, siteId: $siteId) { id title path status summary publishedAt } }

## Give agents tools, not unrestricted filesystem access.

### Site work

- content
- layouts
- feeds
- media

### Development work

- schema
- configuration
- structural changes

Agents should work at the same layer the task belongs to.

## Marketing freedom inside developer-defined boundaries.

Roles, permissions, and per-site scopes decide who can do what — down to which API keys can publish and which can only read. Reusable components and code-owned content models keep the boundary in one place, not re-checked page by page.

> “Yes, marketing can manage that.”

## No proprietary service in the middle of your render path.

Kywi runs as a package inside your own Next.js application and reads and writes directly to the Postgres database you provision. There is no hosted proxy or third-party render step between a request and your data.

## Your app

Kywi

Your Postgres

Three processes, all of them yours.

[Explore open source architecture](/open-source)

## Technical proof

Admin feature areas

## ~35 surfaces, one mounted app

API key scopes

read · write · publish · admin · developer

SDK scopes

auth, content, nav, media, forms, and more

MCP servers

kywi-mcp-site · kywi-mcp-dev

### REST routes

Every request goes through `/api/v1/*`. Every success response wraps its payload in `{ data }` (list endpoints add `{ data, meta }`); every error returns `{ error: { code, message, details? } }`.

`siteId` rides on the query string, not the request body — the server’s create schema is strict and rejects a `siteId` field inside JSON. Type-agnostic operations (get by id, delete, publish, unpublish, get children) hit `/content/by-id/:id*`; typed operations (list, create, update) hit `/content/:type*`.

### GraphQL

`POST /api/v1/graphql`. GraphQL is default-deny per content type — a type is reachable only once `kywi.config.ts` declares it with `graphql: true`.

### Runtime requirements

Node.js 20+, pnpm 9+, and PostgreSQL 16+ to run migrations locally. The engine is built on Postgres or MySQL through Drizzle.

### API key scopes

An API key carries one or more of five scopes: read, write, publish, admin, developer. Keys are created only from an authenticated admin session — an API key can never mint another API key, so a read-scoped key can’t bootstrap a higher-scoped one.

### Package architecture

The engine ships as separate npm packages, not one monolith: `@kywi-software/core` (schema generation, API routes, admin UI, layout/theming, auth, audiences/experiments, AX), `@kywi-software/sdk` (a standalone HTTP client with no dependency on core), `@kywi-software/js` (the browser runtime loaded as `/kywi.js`), `@kywi-software/cli`, and `@kywi-software/mcp`. A host app like this one mounts core’s admin and API and owns its own frontend.

### MCP tooling & crawler surfaces

Two MCP servers ship over stdio: `kywi-mcp-site` (content, layout, media, search, users, feeds, webhooks against a running site) and `kywi-mcp-dev` (reads and mutates a local `kywi.config.ts`, or drives the same operations over the REST API). Both expose a `get_building_patterns` tool that returns Kywi’s own agent guidance before either one starts authoring.

Separately, the Agent Experience layer serves `llms.txt`, `llms-full.txt`, `sitemap.xml`, `robots.txt` and per-page JSON-LD by default, plus Markdown content negotiation at `/<path>.md` where a site turns it on — this one does.

## Your website shouldn’t get harder to change after launch.

Build quickly. Change what matters. Personalize the experience. Test what works. Put guardrails around what needs them.

And keep the content, code, and infrastructure under your control.

[Get started with Kywi](/start)

[View Kywi on GitHub](https://github.com/Kywi-Software/kywi-cms)

Open source · Self-hosted · Built for marketers, developers, and the agents working alongside them.
