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/next

v0.2.62

Published

Next.js adapter for @farming-labs/docs — MDX config wrapper

Downloads

5,980

Readme

@farming-labs/next

The Next.js App Router adapter for @farming-labs/docs.

It connects the shared docs configuration and theme to Next.js, compiles Markdown and MDX, generates the standard docs routes, and provides Next-native runtime helpers for documentation APIs, API references, MCP, and changelogs.

What this package does

  • Wraps next.config.ts with the Farming Labs MDX and routing integration
  • Generates missing docs layouts, API routes, MCP routes, and enabled feature routes
  • Adds machine-readable Markdown, agent discovery, sitemap, and llms.txt rewrites
  • Provides App Router layout, metadata, API-reference, and changelog helpers
  • Preserves user-authored files and existing Next.js configuration

The shared config and CLI live in @farming-labs/docs. React UI, MDX components, providers, and theme CSS live in @farming-labs/theme.

Install

The CLI can add docs to an existing Next.js project:

npx @farming-labs/docs@latest init

For manual installation:

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

Minimal setup

Create docs.config.ts with defineDocs(), then wrap the Next.js config:

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

export default withDocs();

Existing Next.js configuration can be passed directly:

export default withDocs({
  reactStrictMode: true,
});

Import the selected theme in your global stylesheet:

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

Write documentation pages under app/docs/ or src/app/docs/. The CLI also adds the root RootProvider, generated docs layout, and server routes needed for a complete setup.

Main entrypoints

| Entrypoint | Purpose | | --- | --- | | @farming-labs/next/config | withDocs() Next.js configuration wrapper | | @farming-labs/next/layout | App Router docs layout and metadata helpers | | @farming-labs/next/api | Docs API and MCP route handlers | | @farming-labs/next/api-reference | Generated API-reference routes and pages | | @farming-labs/next/changelog | Generated changelog page helpers |

Requirements

  • Next.js 16 or newer
  • React and React DOM 19.2 or newer
  • @farming-labs/docs and @farming-labs/theme

Learn more

License

MIT