nuxt-kirby
Kirby CMS data in Nuxt, via KQL or the REST API
14,256
50
| Install | |
|---|---|
npm install nuxt-kirby |
|
| Latest Version: | 4.1.0 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 15, 2026 |
| Links: | GitHub · npm |
Maintainer: johannschopplich
Nuxt Kirby
Kirby CMS data in Nuxt, via KQL or the REST API.
Features
- 🔒 Protected Kirby credentials on every request
- 🪢 Supports token-based authentication with the Kirby Headless plugin (recommended)
- 🍱 Handle requests just like with the
useFetchcomposable - 🦦 Multiple starter kits available
- 🗃 Cached query responses
- 🤹 No CORS issues
- 🦾 Strongly typed
Setup
npx nuxt module add kirby
Basic Usage
Add Nuxt Kirby to your Nuxt configuration:
// `nuxt.config.ts`
export default defineNuxtConfig({
modules: ['nuxt-kirby']
})
And send queries in your template:
<script setup lang="ts">
const { data, error, status } = await useKql({
query: 'site'
})
</script>
<template>
<div>
<h1>{{ data?.result?.title }}</h1>
<pre>{{ JSON.stringify(data?.result, undefined, 2) }}</pre>
</div>
</template>
The documentation covers authentication, multi-language sites and every module option.
💻 Development
- Clone this repository
- Enable Corepack using
corepack enable - Install dependencies using
pnpm install - Run
pnpm run dev:prepare - Start development server using
pnpm run dev
License
MIT License © 2022-PRESENT Johann Schopplich
Related Packages
nuxt-api-party
Auto-generated composables for any API, typed from OpenAPI and never exposing yo...
246,965
306
vue-query-utils
A utility for converting objects to query strings and vice versa for Vue.js and...
4,245
2
Version History
| Version | Released | License |
|---|---|---|
| 4.1.0 | MIT | |
| 4.0.0 | MIT | |
| 3.0.3 | MIT | |
| 3.0.2 | MIT | |
| 3.0.1 | MIT | |
| 3.0.0 | MIT | |
| 1.1.0 | ISC |
