Skip to content
Projects

About

面向 Vibe Coding 新手的双语可视化术语图鉴——413 个界面、前端、后端、AI 与 Git 核心概念,配可交互示例与练习

Web & App Development

How these counts are measured

Measured star growth

in 24h
Collecting history
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

VibeHub — Visual glossary for Vibe and Web Coding turning plain-language ideas into exact terms, visual diagrams, and AI Agent prompts

简体中文 · English · Live Site · Contributing · Collaboration Rules


VibeHub is a bilingual (English & Chinese) visual glossary for people building software and websites with AI Agents. Every term page starts from what you actually see or want to ask, explains what the concept is responsible for (and what it is not), checks your judgment with interactive practice, and gives you a copy-ready prompt for coding Agents.

What You Can Learn

Three core VibeHub modules: 413 illustrated terms across UI, AI, and Git, judgment practice and Avoid AI Slop rules, and Agent API with companion Skill

  • 413 Bilingual Terms Across 8 Domains: Frontend, Backend, Product, Testing, Tech Stack, AI, Git, and Design Styles — with stable URLs under /<id> (Chinese) and /en/<id> (English).
  • Plain-Language Quote → Visual → Prompt: Each entry connects a real user phrase ("You might say...") to an interactive diagram, boundary distinctions, judgment quiz, and structured AI Agent prompt.
  • Practice & Avoid AI Slop: Interactive scenario judgment drills (/en/practice) and a dedicated field guide for recurring writing/UI/UX AI defaults (/en/anti-ai-flavor).
  • Machine-Readable Agent Surfaces: Versioned read-only JSON API (/api/agent/v1/*), /llms.txt, /llms-full.txt, /.well-known/vibehub.json, and an exportable companion Agent Skill (skills/vibehub/).

Quick Start

Requires Node.js >=22.19.0 and pnpm 10.x.

pnpm install --frozen-lockfile
pnpm run dev

Open http://localhost:3000 (Chinese) or http://localhost:3000/en (English).

pnpm run dev automatically runs predev (pnpm run generate:client) to compile the term registry, changelog, split JSON payloads, icon subset, and route-selective CSS packs.

Self-Hosting & Environment Variables

Copy .env.example to .env.local (or set variables in your hosting provider) before deploying your own instance:

Variable Default Purpose
NEXT_PUBLIC_SITE_URL https://vibe-hub.org Canonical origin for sitemap, Open Graph, JSON-LD, llms.txt, and host redirects. Set this to your own domain when self-hosting.
NEXT_PUBLIC_GA_MEASUREMENT_ID unset (disabled) Optional Google Analytics 4 measurement ID (G-XXXXXXXXXX).
NEXT_PUBLIC_ENABLE_VERCEL_ANALYTICS false Set to true to enable @vercel/analytics. Disabled by default for self-hosted deployments.
INDEXNOW_KEY unset (404) Optional IndexNow verification key (8–128 ASCII alphanumeric/hyphen chars) served at /indexnow-key.txt.
NEXT_PUBLIC_GITHUB_REPO_URL https://github.com/oil-oil/vibe-hub Overrides repository links in the footer and default issue links.
NEXT_PUBLIC_TERM_SUGGESTION_URL ${NEXT_PUBLIC_GITHUB_REPO_URL}/issues/new?template=new-term.yml Optional custom URL for the "Suggest a term" action.
NEXT_PUBLIC_X_URL unset (hidden) Optional X (Twitter) profile URL shown in the footer only when explicitly configured.

How It Works

VibeHub single-source content pipeline from term source files through build-time compilation to Next.js pages and Agent API

Each term lives in a single directory (src/content/terms/<id>/index.ts) and shares one dynamic route (app/[locale]/[id]/page.tsx). Build scripts compile a frozen static registry, split per-entry detail payloads, and route-selective CSS packs — there is zero filesystem scanning at runtime.

Repository Directory Map
Directory Role
app/ Next.js App Router pages, locale layouts, metadata/SEO routes, and /api/agent/v1/* handlers
src/content/terms/<id>/ Single source of truth for each term (index.ts exporting defineTerm(...))
src/content/model/ Shared TypeScript types, Zod schemas, payload contract constants, and deep-freeze helpers
site/catalog/ Catalog builder, search, journeys, practice builder, changelog releases, and SOP docs
site/features/ Feature UI modules (catalog, detail, practice, favorites, lab, anti-ai-flavor, shell)
site/visuals/ Shared visual runtime (shared-runtime.tsx) and domain visual modules
site/styles/ Theme tokens, route-selective style packs (packs/), StylePackGate, and modular domain CSS partials
scripts/ Build-time generators (generate:*), term scaffolding (term:new), and verification gates (validate:*)
public/ Static assets, pronunciation clips, split detail JSON payloads, and compiled CSS packs
open-source/vibehub-skill/ Export packaging for the companion VibeHub Agent Skill (skills/vibehub/)

See AGENTS.md and src/content/terms/README.md for content contracts, style-pack loading, and visual module boundaries.

Add a Term & Contribute

Read AGENTS.md and CONTRIBUTING.md first, then follow the Term Communication SOP:

# 1. Scaffold a new term directory
pnpm run term:new my-term

# 2. Edit src/content/terms/my-term/index.ts, regenerate artifacts, and validate
pnpm run generate:client
pnpm run validate:term my-term

# 3. Run the cross-platform PR verification gate before opening a PR
pnpm run check:pr

Pronunciation audio (public/audio/pronunciations/*.mp3): Generating .mp3 clips via pnpm run generate:pronunciations requires a local TTS engine (say on macOS, System.Speech on Windows, or espeak-ng/espeak on Linux) plus ffmpeg. Contributors without local TTS do not need to generate audio — run pnpm run check:pr and note in your PR that audio needs maintainer generation before release.

Common Scripts & Generated Artifacts
Script Purpose
pnpm run dev Regenerate artifacts and start the Next.js dev server
pnpm run build Regenerate artifacts and build the production Next.js app
pnpm run generate:client Regenerate term registry, changelog, catalog JSONs, Tabler subset, and CSS packs
pnpm run term:new <id> Scaffold a new term entry under src/content/terms/<id>/
pnpm run validate:term <id> Validate one term across schema, visuals, bilingual search, and Agent lessons
pnpm run check:pr Contributor PR gate (typecheck, lint, format:check, tests, validate:artifacts, build, validate:production, PR-mode catalog/bundle checks)
pnpm run check Maintainer release gate (same suite plus --release strict count/idDigest/zhDigest baselines, required .mp3 audio, and strict 593 kB gzip cap)
pnpm run baseline:sync Sync catalog baseline digests in scripts/validate-catalog.ts

Do not hand-edit generated files (src/content/generated-registry.ts, site/catalog/generated/**, public/catalog/**, site/styles/generated-pack-manifest.ts, public/styles/packs/*.css); regenerate them via pnpm run generate:client.

Related Repo

  • oil-oil/vibe-hub-skill — Standalone distribution repository for the companion VibeHub Agent Skill (npx skills add oil-oil/vibe-hub-skill). Its source lives in skills/vibehub/ and open-source/vibehub-skill/ in this repository and is exported via pnpm run export:skill.

Further Reading: Oil Book

Ready to move from individual terms to shipping complete projects? Oil Book is a companion collection of hands-on AI field guides and structured courses by the same author (published in Chinese, with free foundational guides):

Governance & License

Code and original learning content are licensed under the MIT License. Upstream Tabler Icons font subset attribution, Unsplash imagery references, third-party AI tool trademark notices, and pronunciation audio provenance are documented in NOTICE.

Explore related projects

Loading…