Skip to content

Repository files navigation

Kirby Headless logo

Kirby Headless

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

Authentication • KQL • Field Methods • Page 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

About

🦭 JSON pages and KQL queries, served behind one bearer token

Topics

Resources

Stars

43 stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages