Introduction

Headless CMS capabilities for Kirby with bearer token auth, KQL enhancements, and JSON templates.

Kirby Headless is a plugin for Kirby CMS that adds headless capabilities to your Kirby site. Use Kirby as a backend to serve content to frontend applications, static site generators, or mobile apps. Add headless functionality to existing sites or build a headless-first CMS from scratch.

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

Features

  • Bearer Token Authentication: Secure your KQL and custom API endpoints
  • Enhanced Blocks & Layouts: Resolve UUIDs to file and page objects automatically
  • KQL Enhancements: Built-in caching and multi-language support
  • JSON Templates: Return JSON from templates instead of HTML
  • CORS Handling: Automatic preflight response handling
  • API Builder: Express-style middleware support for custom routes
  • Panel Integration: Frontend preview URLs and automatic Panel redirects