Next Level Builders Directory Toolkits
Monorepo containing the official TypeScript Contracts, CLI (nlb), Model Context Protocol (MCP) Server, and AgentSkill for Next Level Builders Directory.

📦 Packages & Architecture
nlb-directory-toolkits/
├── packages/
│ ├── contracts/ # @nextlevelbuilder/contracts: Zod schemas, 17 block types, 5 templates, SHA-256 hasher, wire APIs, affiliate contracts
│ ├── cli/ # @nextlevelbuilder/cli: `nlb` binary (validate, preview, submit, list, get, rankings, stats, traffic, doctor, vote, keys, upload, checkout, affiliates)
│ └── mcp/ # @nextlevelbuilder/mcp: Model Context Protocol server (stdio & Cloudflare Workers, 39 tools)
├── skills/
│ └── nlb-submit/ # SKILL.md: Standard AgentSkill for Claude Code, Cursor, Codex, OpenCode, skills.sh
└── docs/ # Detailed guides for CLI, MCP, Contracts, and Architecture
| Package | Description | Status |
|---|
@nextlevelbuilder/contracts | Canonical server-synchronized schemas for 17 block types, 5 layout templates, deterministic canonical SHA-256 hasher, and API wire contracts (including the affiliate program). |  |
@nextlevelbuilder/cli | Developer & agent CLI binary nlb with validation, terminal preview, submissions with Polar payments, rankings, stats, doctor, voting, uploads, and the affiliate program. |  |
@nextlevelbuilder/mcp | Model Context Protocol server exposing 39 tools (16 directory tools plus 23 affiliate program tools) for local AI IDEs and Cloudflare Workers edge runtime. |  |
skills/nlb-submit | Cross-marketplace AgentSkill for autonomous repository scanning, block formatting, and directory submission. |  |
⚡ Quickstart
1. Using the CLI (nlb)
# Validate schema and compute SHA-256 canonical hash:
npx @nextlevelbuilder/cli validate product.json
# Render terminal ASCII box preview:
npx @nextlevelbuilder/cli preview product.json
# Generate a starter template:
npx @nextlevelbuilder/cli template dev-tool --out product.json
# Submit revision to directory review queue (supports Polar checkout if slot needed):
npx @nextlevelbuilder/cli submit product.json --org <YOUR_ORG_UUID> --api-key <YOUR_API_KEY>
# View organic community rankings / leaderboard:
npx @nextlevelbuilder/cli rankings weekly
# Check live platform metrics and statistics:
npx @nextlevelbuilder/cli stats
# Query your product's NLB page traffic using the configured API key:
npx @nextlevelbuilder/cli traffic my-awesome-tool --json
# Export raw LLM-optimized Markdown for any product:
npx @nextlevelbuilder/cli get my-awesome-tool --markdown
# Check database and endpoint connectivity:
npx @nextlevelbuilder/cli doctor
# Affiliate program: your level, budget, referral links and earnings:
npx @nextlevelbuilder/cli affiliates program
npx @nextlevelbuilder/cli affiliates me
npx @nextlevelbuilder/cli affiliates links create --discount-bps 1000 --destination /courses
2. Setting up the MCP Server
For Cursor (.cursor/mcp.json)
{
"mcpServers": {
"nlb-directory": {
"command": "npx",
"args": ["-y", "@nextlevelbuilder/mcp"]
}
}
}
For Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"nlb-directory": {
"command": "npx",
"args": ["-y", "@nextlevelbuilder/mcp"],
"env": {
"NLB_API_KEY": "nlb_live_your_key_here"
}
}
}
}
3. Affiliate program (EN / VI)
EN — Members can read the program, join after accepting the Affiliate Agreement, create and tune referral links within their incentive budget, and follow conversions, commissions and payouts through nlb affiliates … or the affiliate_* MCP tools. Finance operators with the mcp:operator scope get read-only previews, conversion holds and draft payout batches (affiliate_admin_*); no tool sends money, reads bank or identity data, or approves anything that needs a second operator. See MCP Reference and CLI Reference.