@farming-labs/nuxt

Nuxt adapter for @farming-labs/docs — content loading and navigation utilities
54,401
Install
npm install @farming-labs/nuxt
Latest Version:0.2.125
License:MIT
Last Updated:Oct 21, 2026
Links: npm
Maintainer: kinfish

@farming-labs/nuxt

The Nuxt and Nitro runtime adapter for @farming-labs/docs.

It loads Markdown and MDX content from Nitro storage, builds navigation, renders page content on the server, and provides H3 handlers for docs, search, AI, agent discovery, MCP, and API references.

Package responsibilities

  • @farming-labs/docs — shared config, types, content features, and CLI
  • @farming-labs/nuxt — Nitro content loading and server handlers
  • @farming-labs/nuxt-theme — Vue layout and UI components
  • @farming-labs/theme — shared preset CSS

Install

The CLI can wire the complete Nuxt integration:

npx @farming-labs/docs@latest init

For manual installation:

npm install @farming-labs/docs @farming-labs/nuxt @farming-labs/nuxt-theme @farming-labs/theme

Server integration

Create the main Nitro API handler:

// server/api/docs.ts
import { defineDocsHandler } from "@farming-labs/nuxt/server";
import config from "../../docs.config";

export default defineDocsHandler(config, useStorage);

The generated setup also adds public-route middleware with defineDocsPublicHandler() and makes the docs directory available through Nitro storage:

// nuxt.config.ts
export default defineNuxtConfig({
  css: ["@farming-labs/theme/default/css"],
  nitro: {
    moduleSideEffects: ["@farming-labs/nuxt/server"],
    serverAssets: [{ baseName: "docs", dir: "docs" }],
  },
});

Render the returned page data with DocsLayout and DocsContent from @farming-labs/nuxt-theme.

Main entrypoints

Entrypoint Purpose
@farming-labs/nuxt/server Nitro handlers, docs server, public forwarding, and MCP
@farming-labs/nuxt/content Content discovery and navigation utilities
@farming-labs/nuxt/markdown Server-side Markdown rendering
@farming-labs/nuxt/api-reference API-reference route handler

Learn more

License

MIT

Related Packages

@farming-labs/nuxt-theme

Nuxt/Vue UI components for @farming-labs/docs — layout, sidebar, TOC, search, an...

54,826
@uxfront/layer-docs

Nuxt layer for UXFront documentation sites: Docus, plus a framework switcher tha...

2,918
@compodium/nuxt

A plug an play component playground for Nuxt.

132,990 259
nuxt-llms

Generate llms.txt documentation for your Nuxt application

1,000,918 171
@scayle/storefront-nuxt

Nuxt integration for the SCAYLE Commerce Engine and Storefront API

152,903

Version History

Version Released License
0.2.125 MIT
0.2.124 MIT
0.2.123 MIT
0.2.122 MIT
0.2.121 MIT
Pre-releases (28)
Version Released License
0.1.1-beta.4 MIT
0.1.1-beta.2 MIT
0.1.1-beta.1 MIT
0.0.33-beta.1 MIT
0.0.9-beta.1 MIT