Introduction

The Kirby Headless plugin enhances your Kirby site with headless capabilities.

Introduction

This plugin is designed for developers who want to use Kirby's backend to serve content to a frontend application, static site generator, or mobile application. You can either add headless functionality to your existing Kirby site, or use this plugin to build a headless-first CMS from scratch.

Check out to the Kirby Headless Starter repository for a ready-to-use headless-only setup!

Key Features

  • ๐Ÿงฉ Optional bearer token authentication for KQL and custom API endpoints
  • ๐Ÿงฑ Resolve fields in blocks: UUIDs to file and page objects or any other field
  • โšก๏ธ Cached KQL queries
  • ๐ŸŒ Multi-language support for KQL queries
  • ๐Ÿ˜ต Built-in CORS handling
  • ๐Ÿข Express-esque API builder with middleware support
  • ๐Ÿ—‚ Return JSON from templates instead of HTML