hanzo-docs

Hanzo Docs is a multi-brand documentation platform — fork of fumadocs with 27 packages and 15 apps.

Hanzo Docs - Multi-Brand Documentation Platform

Category: Hanzo Ecosystem Related Skills: hanzo/hanzo-cloud.md, hanzo/python-sdk.md, hanzo/hanzo-brand.md

Overview

Hanzo Docs is a multi-brand documentation platform — fork of fumadocs with 27 packages and 15 apps. Serves documentation for Hanzo, Lux, Zoo, and Zen brands from a single monorepo with shared components and per-brand theming.

NOTE: This is a fumadocs fork (not a plain Next.js MDX site). It's a monorepo with 27 packages and 15 apps, supporting multi-brand documentation (hanzo.ai/docs, docs.lux.network, docs.zoo.ngo, docs.zenlm.org).

Why Hanzo Docs?

When to use

Quick reference

| Item | Value | |------|-------| | Repo | github.com/hanzoai/docs | | Upstream | fumadocs fork | | Framework | Next.js 14+ with MDX | | Packages | 27 | | Apps | 15 | | Dev | pnpm dev | | Build | pnpm build | | Port | 3000 (dev) |

Brand Sites

| Brand | URL | App | |-------|-----|-----| | Hanzo | hanzo.ai/docs | apps/hanzo/ | | Lux | docs.lux.network | apps/lux/ | | Zoo | docs.zoo.ngo | apps/zoo/ | | Zen | docs.zenlm.org | apps/zen/ |

Project Structure

docs/
├── apps/ # 15 brand-specific apps
│ ├── hanzo/ # hanzo.ai/docs
│ ├── lux/ # docs.lux.network
│ ├── zoo/ # docs.zoo.ngo
│ ├── zen/ # docs.zenlm.org
│ └── ... # Other product-specific doc sites
│ # Apps: base-docs, bootnode-docs, bot-docs, cloud,
│ # dev-docs, dns-docs, docs, flow, insights-docs,
│ # platform, team, visor, zap-docs, zen-docs, zt-docs
├── packages/ # 27 shared packages
│ ├── core/ # Core fumadocs engine
│ ├── mdx/ # MDX processing and plugins
│ ├── ui/ # Shared UI components
│ ├── search/ # Full-text search
│ ├── openapi/ # OpenAPI → docs generator
│ ├── components/ # Shared MDX components
│ │ ├── CodeBlock.tsx
│ │ ├── ApiEndpoint.tsx
│ │ ├── Callout.tsx
│ │ └── SDKTabs.tsx
│ └── ... # More packages
├── content/ # Shared content
│ ├── api/ # API reference (auto-generated from OpenAPI)
│ ├── guides/ # Cross-brand guides
│ └── sdks/ # SDK documentation
├── pnpm-workspace.yaml
└── package.json

Development

git clone https://github.com/hanzoai/docs.git
cd docs
pnpm install

# Dev all brands
pnpm dev

# Dev specific brand
pnpm dev --filter @hanzo/docs-hanzo

# Build for production
pnpm build

# Lint MDX
pnpm lint

# Check broken links
pnpm check-links

Writing Documentation

MDX Page

---
title: "Chat Completions"
description: "Create chat completions with the Hanzo API"
---

import { CodeBlock, ApiEndpoint, Callout, SDKTabs } from "@hanzo/docs-components"

# Chat Completions

<Callout type="info">
 This endpoint is OpenAI-compatible.
</Callout>

<ApiEndpoint method="POST" path="/v1/chat/completions" />

## Request

<SDKTabs>
 <SDKTabs.Tab lang="python" title="Python">
 {`from hanzoai import Hanzo
client = Hanzo()
response = client.chat.completions.create(
 model="zen-70b",
 messages=[{"role": "user", "content": "Hello"}],
)`}
 </SDKTabs.Tab>
 <SDKTabs.Tab lang="typescript" title="TypeScript">
 {`import Hanzo from "hanzoai"
const client = new Hanzo()
const response = await client.chat.completions.create({
 model: "zen-70b",
 messages: [{ role: "user", content: "Hello" }],
})`}
 </SDKTabs.Tab>
</SDKTabs>

Adding a New Brand

# 1. Create new app
cp -r apps/hanzo apps/new-brand

# 2. Configure brand colors, logo, navigation in the app
# 3. Add to pnpm-workspace.yaml
# 4. Add to CI/CD

Redirects

Service-specific docs have vanity URLs:

Known-issue: @hanzo/docs workspace-protocol leak

@hanzo/[email protected] and sibling 16.7.5 packages were published with unresolved workspace:* deps — including @hanzo/docs-tailwind which was never published to npm. Downstream consumers see install failures.

Workarounds for consumers:

  1. Vendor ~/work/hanzo/docs/packages/* into a vendor/hanzo-docs/

directory and wire a pnpm-workspace.yaml so workspace:* resolves locally. A .pnpmfile.cjs can strip workspace refs to packages not vendored (build-only tooling).

  1. Pin to a known-clean version pair (@hanzo/[email protected] +

@hanzo/[email protected]) — see ~/work/zap/zap-protocol.github.io/ for a reference setup.

Upstream fix: add a prepublishOnly hook that rewrites workspace:* → concrete versions, or publish the missing packages.

API renames between docs versions:

umbrella) → use @hanzo/docs-core/framework/next × @hanzo/docs/ui/provider/base

Related Skills


Last Updated: 2026-05-12 Category: Hanzo Ecosystem Related: documentation, fumadocs, mdx, nextjs, multi-brand Prerequisites: MDX, Next.js basics