Search by

johannschopplich / kirby-headless

johannschopplich

KQL, JSON templates, and API routes for Kirby CMS

Package info

github.com/johannschopplich/kirby-headless

Homepage

Type:kirby-plugin

pkg:composer/johannschopplich/kirby-headless

Fund package maintenance!

kirby.tools

Statistics

Installs: 18 201

Dependents: 0

Suggesters: 0

Stars: 43

Open Issues: 0

8.1.0 2026-08-07 07:00 UTC

README

Kirby Headless logo

Kirby Headless

Kirby Headless is a plugin for Kirby CMS: JSON pages and KQL queries, served behind one bearer token.

AuthenticationKQLField MethodsPage Methods

Note

Want a ready-to-use headless-only project? Start from the Kirby Headless Starter.

When to Use

I want to… Use
Query content from a frontend over HTTP KQL endpoint at /api/kql
Lock the API behind a token instead of basic auth kql.auth => 'bearer' + headless.token
Resolve UUIDs in blocks and layouts to real objects $field->toResolvedBlocks()
Return JSON straight from a template JSON templates / __template__ endpoint
Compose custom, authenticated API routes Api::createHandler() + middlewares

Requirements

  • Kirby 5

Note

Using Kirby 4? Install the v4 release.

Installation

Composer (Recommended)

composer require johannschopplich/kirby-headless

Manual Installation

Download and copy this repository to /site/plugins/kirby-headless.

Documentation

For installation, configuration, and usage, see the Kirby Headless documentation.

License

MIT License © 2022-PRESENT Johann Schopplich