Johann Schopplich Johann Schopplich

Nuxt Kirby

Kirby data in Nuxt, via KQL or the REST API

Manual

Download

… and extract the folder to site/plugins/nuxt-kirby

Git Submodule

Features

🔒 Credentials Stay on the Server
Requests go through a Nuxt server route, so the Kirby token or password never reaches the browser.
🧩 KQL and REST in One Module
useKql() sends KQL queries and useKirbyData() fetches any Kirby API path, both with the options of Nuxt's useFetch.
🌐 Language per Request
A language option sends the X-Language header for multi-language sites.
🗃️ Server-Side Cache
Turn on server.cache, and responses are cached in Nitro storage, with optional stale-while-revalidate.
🦾 Typed Prefetched Queries
Queries listed under prefetch run at build time and import fully typed.
Version
4.1.0
License
MIT
Stars
50
Kirby support
More