oil-oil/vibe-hub
About
面向 Vibe Coding 新手的双语可视化术语图鉴——413 个界面、前端、后端、AI 与 Git 核心概念,配可交互示例与练习
Web & App DevelopmentMeasured 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
简体中文 · 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
- 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
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.mp3clips viapnpm run generate:pronunciationsrequires a local TTS engine (sayon macOS,System.Speechon Windows, orespeak-ng/espeakon Linux) plusffmpeg. Contributors without local TTS do not need to generate audio — runpnpm run check:prand 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 inskills/vibehub/andopen-source/vibehub-skill/in this repository and is exported viapnpm 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):
- Vibe Coding a Personal Website from Scratch (如何从 0 到 1 Vibe Coding 一个个人网站) — End-to-end walkthrough from scoping requirements to deploying a live site.
- Learn Git & GitHub from Scratch (从 0 到 1 学会使用 Git 与 GitHub) — Practical branching, commits, pull requests, and collaboration basics.
- Designing High-Craft UI with AI (如何使用 AI 做出有高级感的设计) — Pairs with VibeHub's Avoid AI Slop guide to move past generic templates.
- Working Effectively with Sub-Agents (怎样用好子 Agent) — Task decomposition, context isolation, and verification loops for multi-agent workflows.
Governance & License
- Collaboration Rules (AGENTS.md) · Contributing Guide · Term Writing SOP
- Code of Conduct · Security Policy
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…