npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@farming-labs/docs

v0.2.56

Published

Modern, flexible MDX-based docs framework — core types, config, and CLI

Readme

@farming-labs/docs

AI-native documentation for Next.js, TanStack Start, SvelteKit, Astro, and Nuxt.

Write Markdown or MDX, configure your docs in TypeScript, and ship a polished documentation experience for people, IDEs, and AI agents. @farming-labs/docs provides the shared configuration, types, content pipeline, agent tooling, and CLI used by the Farming Labs framework adapters.

Features

  • One docs.config.ts file for routing, themes, search, metadata, feedback, and AI features
  • Framework adapters for Next.js, TanStack Start, SvelteKit, Astro, and Nuxt
  • Built-in themes and MDX components such as Callout, Tabs, HoverLink, and Prompt
  • Built-in search, generated API references, and Next.js changelog pages
  • Machine-readable .md routes, llms.txt, sitemaps, JSON-LD, agent discovery, and MCP
  • CLI workflows for scaffolding, upgrades, documentation health checks, and static agent files

Quick start

Run the interactive setup inside an existing project:

npx @farming-labs/docs@latest init

Or bootstrap a new documentation project from a template:

npx @farming-labs/docs@latest init --template next --name my-docs

Available templates are next, tanstack-start, sveltekit, astro, and nuxt. The CLI installs the packages for your framework, creates the config and starter pages, and adds the theme CSS.

Framework packages

| Framework | Core and adapter | Theme | | --- | --- | --- | | Next.js | @farming-labs/docs, @farming-labs/next | @farming-labs/theme | | TanStack Start | @farming-labs/docs, @farming-labs/tanstack-start | @farming-labs/theme | | SvelteKit | @farming-labs/docs, @farming-labs/svelte | @farming-labs/svelte-theme | | Astro | @farming-labs/docs, @farming-labs/astro | @farming-labs/astro-theme | | Nuxt | @farming-labs/docs, @farming-labs/nuxt | @farming-labs/nuxt-theme |

Basic configuration

Every framework uses defineDocs(). A minimal Next.js config looks like this:

import { defineDocs } from "@farming-labs/docs";
import { fumadocs } from "@farming-labs/theme";

export default defineDocs({
  entry: "docs",
  theme: fumadocs(),
  metadata: {
    titleTemplate: "%s – Docs",
    description: "My documentation site",
  },
});

Next.js projects also wrap next.config.ts:

import { withDocs } from "@farming-labs/next/config";

export default withDocs();

Import your selected theme in the app's global stylesheet:

@import "tailwindcss";
@import "@farming-labs/theme/default/css";

Import the CSS for the selected preset. The default fumadocs() preset uses @farming-labs/theme/default/css. SvelteKit, Astro, and Nuxt import their theme helpers from the corresponding packages shown above; the CLI wires up the right config and CSS automatically.

Write content in Markdown or MDX

---
title: "Installation"
description: "Get up and running"
---

# Installation

Your documentation starts here.

Routing is file-based, so a page such as app/docs/guides/deployment/page.mdx becomes /docs/guides/deployment in Next.js. The CLI scaffolds the correct directory layout for every supported framework.

Documentation for agents

Farming Labs can expose the same docs in machine-readable forms, including:

  • llms.txt and full-document feeds
  • Markdown routes for individual pages
  • skill.md, AGENTS.md, and agent discovery endpoints
  • A built-in Model Context Protocol (MCP) server
  • Schema.org JSON-LD, sitemaps, and generated robots.txt
  • Agent-focused health checks with docs doctor --agent

Learn more

License

MIT