MCPcopy Index your code
hub / github.com/shuding/nextra

github.com/shuding/nextra @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
370 symbols 1,210 edges 325 files 2 documented · 1% 72 cross-repo links updated 17d agonextra-theme-docs@4.6.1 · 2025-12-04★ 13,858286 open issues

Browse by type

Functions 344 Types & classes 26
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Nextra

Simple, powerful and flexible site generation framework with everything you love from Next.js.

Documentation

https://nextra.site

Development

Installation

The Nextra repository uses PNPM Workspaces and Turborepo.

  1. Run corepack enable to enable Corepack.

If the command above fails, run npm install -g corepack@latest to install the latest version of Corepack.

  1. Run pnpm install to install the project's dependencies.

Build nextra

pnpm --filter nextra build

Watch mode: pnpm --filter nextra dev

Build nextra-theme-docs

pnpm --filter nextra-theme-docs build

Development

You can also debug them together with a website locally. For instance, to start examples/docs locally, run

pnpm --filter example-docs dev

Any change to example/docs will be re-rendered instantly.

If you update the core or theme packages, a rebuild is required. Or you can use the watch mode for both Nextra and the theme in separated terminals.

Sponsors

Inkeep - AI Agents that get real work done xyflow preview

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 342
Interface 21
Class 4
Method 2
Enum 1

Languages

TypeScript100%

Modules by API surface

packages/nextra-theme-docs/src/components/sidebar.tsx12 symbols
packages/nextra/src/server/tsdoc/base.ts10 symbols
packages/nextra/src/server/tsdoc/tsdoc.tsx9 symbols
packages/nextra/src/client/components/search.tsx9 symbols
packages/nextra/src/client/components/tabs/index.client.tsx5 symbols
packages/esbuild-react-compiler-plugin/src/index.ts5 symbols
packages/nextra/src/server/tsdoc/zod-to-ts.ts4 symbols
packages/nextra/src/server/remark-plugins/remark-mdx-title.ts4 symbols
packages/nextra/src/server/rehype-plugins/rehype.ts4 symbols
packages/nextra/src/server/page-map/to-page-map.ts4 symbols
packages/nextra/src/client/normalize-pages.ts4 symbols
packages/nextra/src/client/mdx-components/table.tsx4 symbols

Dependencies from manifests, versioned

@changesets/cli2.29.4 · 1×
@eslint/compat2.0.0 · 1×
@eslint/js9.39.1 · 1×
@formatjs/intl-localematcher0.6.0 · 1×
@headlessui/react2.1.2 · 1×
@ianvs/prettier-plugin-sort-imports4.7.0 · 1×
@inkeep/cxkit-react0.5.98 · 1×
@mdx-js/mdx3.0.0 · 1×
@napi-rs/simple-git0.1.9 · 1×
@next/bundle-analyzer14.2.13 · 1×
@rollup/plugin-alias5.1.1 · 1×

For agents

$ claude mcp add nextra \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page