File map

View raw
On this page

แผนที่ไฟล์ทั้งหมดใน repo (ยกเว้น node_modules, ไฟล์ build และภาพหน้าจอ) พร้อมลิงก์และหน้าที่ ใช้หาว่า "ต้องแก้ที่ไหน" docs:check ตรวจว่าทุกลิงก์ในหน้านี้ยังชี้ไฟล์ที่มีอยู่จริง

Root#

ไฟล์ หน้าที่
package.json dependencies, npm scripts (npm-scripts.md)
next.config.ts Cache Components, security headers, real-404 rewrite, dev bindings
wrangler.jsonc Worker config, vars, rate limits, D1 binding DB
migrations/0001_schema_meta.sql, migrations/0002_chat_history.sql, 0003_chat_runtime.sql, 0004_factory.sql, 0005_channels.sql D1 migrations ของ nvx-db (d1-schema.md)
agents/orchestrator/ นิยาม agent (agent.json) และแอป Python อ้างอิง (OpenAI Agents API, self-hosted executor)
src/app/chat/page.tsx, src/app/chat/dev/page.tsx, src/app/factory/page.tsx หน้า User Chat, Dev Chat, Sandbox Factory
src/components/chat/, src/components/factory/factory-app.tsx UI แชต, แผง Sandbox, Markdown renderer, ฟอร์ม Factory
src/lib/chat/turn-route.ts, plain-turn.ts, turn.ts, limits.ts, store.ts handler ของแชต, provider chain, agent runner, โควตา, D1
src/lib/ai/workers-ai.ts, src/lib/ai/hf.ts client ของ Workers AI และ Hugging Face router
open-next.config.ts OpenNext: static-assets incremental cache
cloudflare-env.d.ts ชนิดของ Cloudflare bindings
tsconfig.json, eslint.config.mjs, vitest.config.mts TypeScript, ESLint, Vitest
.env.example, .dev.vars.example ตัวอย่าง env
AGENTS.md กติกาสำหรับ AI agent
README.md, CHANGELOG.md, CONTRIBUTING.md, CODE_OF_CONDUCT.md, LICENSE, NOTICE เอกสารโครงการ, สัญญาอนุญาต (MIT), เครื่องหมายการค้า
public/_headers headers ของ static assets บน Workers (รวม cache ของ /brand/*)
public/brand/, public/icon-192.png, public/icon-512.png, public/icon-maskable-512.png โลโก้ ภาพตัวมาสคอต และไอคอนของ web manifest (สร้างด้วยสคริปต์ ห้ามแก้มือ)
assets/brand/nvx-logo-master.png, assets/brand/nvx-mascot-body.png ต้นฉบับโลโก้พื้นใส 1024px และภาพตัวที่ลบตาออก
.github/workflows/ci.yml CI: lint, typecheck, test, docs:check

src/app — routes#

ไฟล์ หน้าที่
src/app/layout.tsx root layout, ฟอนต์, <html class="dark">, สคริปต์ pre-paint, providers
src/app/page.tsx หน้าแรก /
src/app/templates/page.tsx catalog /templates
src/app/templates/[id]/page.tsx รายละเอียดเทมเพลต
src/app/builder/page.tsx /builder
src/app/design/page.tsx /design style guide
src/app/not-found.tsx หน้า 404
src/app/manifest.ts web app manifest (/manifest.webmanifest)
src/app/favicon.ico, src/app/icon.png, src/app/apple-icon.png, src/app/opengraph-image.png favicon 16/32/48, icon 32, apple-touch-icon 180, OG card 1200×630 (Next.js file conventions)
src/app/api/plan/route.ts API /api/plan
src/app/tokens.css, src/app/globals.css design tokens และ Tailwind theme

src/components — feature components#

ไฟล์ หน้าที่
builder.tsx ตัวสร้าง 4 ขั้น, state, export
builder-loader.tsx โหลด builder ฝั่ง client + skeleton
sortable-steps.tsx ลากจัดลำดับ (dnd-kit)
step-card.tsx การ์ดขั้นตอน
agent-panel.tsx แผง AI agent
catalog.tsx, template-card.tsx, template-detail.tsx catalog และรายละเอียด
header.tsx header, nav, footer
command-palette.tsx Ctrl/⌘+K
prefs.tsx, providers.tsx ภาษา/ธีม, providers (toast, tooltip)
os-toggle.tsx, copy-button.tsx สลับ POSIX/Windows, ปุ่มคัดลอก
design-system.tsx เนื้อหา /design
brand/mascot.tsx มาสคอตแบบเคลื่อนไหว (header + hero + /design)
brand/tool-icon.tsx, brand/brand-icons.data.ts โลโก้เครื่องมือ
ui/index.ts ไลบรารีคอมโพเนนต์ NVX UI (badge, button, card, checkbox, code-block, dialog, empty-state, field, kbd, segmented, skeleton, stepper, tabs, toast, tooltip, icons, cn, copy)

src/lib — logic#

ไฟล์ หน้าที่
types.ts ชนิดข้อมูลหลัก
composer.ts, placeholders.ts ประกอบคำสั่ง
scripts.ts, download.ts setup.sh/ps1/README/zip
share.ts ลิงก์แชร์
sanitize.ts sanitizer
i18n.ts ข้อความ UI สองภาษา, CATEGORY_LABELS
design-tokens.ts manifest ของ token
rate-limit.ts limiter ในหน่วยความจำ
security-headers.ts CSP และ headers
ai/openai.ts, ai/schema.ts, ai/plan.ts, ai/fallback.ts, ai/types.ts AI planner
server/env.ts, server/http.ts, server/rate-limit.ts ฝั่งเซิร์ฟเวอร์เท่านั้น (server-only)

src/data — templates#

ไฟล์ หน้าที่
templates/index.ts registry
template-ids.ts id สำหรับ 404 rewrite
common-steps.ts, runtime-steps.ts, addon-steps.ts ขั้นร่วม, runtime, add-on
templates/nextjs-dashboard.ts · vite-react-game.ts · express-api.ts · fastapi-ai.ts · streamlit-dashboard.ts · node-cli-npx.ts · pypi-package.ts · collab-workspace.ts · react-admin-tool.ts · nextjs-ai-chat.ts เทมเพลต 10 ตัว

scripts/ และ tests/#

ไฟล์ หน้าที่
scripts/export-template.ts CLI export
scripts/gen-brand-icons.mjs สร้างข้อมูลโลโก้เครื่องมือ
scripts/gen-brand-assets.py สร้าง asset ของแบรนด์ NVX (Pillow + numpy)
scripts/patch-opennext.mjs patch adapter
scripts/docs-check.mjs, scripts/docs-pdf.mjs เครื่องมือเอกสาร
scripts/build-docs.mjs, scripts/render-diagrams.mjs docs bundle + SVG ของ Mermaid สำหรับ /docs
src/app/docs/layout.tsx, src/app/docs/page.tsx, src/app/docs/[...slug]/page.tsx, src/app/docs/raw/[...slug]/route.ts, src/app/llms.txt/route.ts, src/app/llms-full.txt/route.ts หน้าเอกสาร ไฟล์ดิบ และ llms.txt (docs-site.md)
src/components/docs/docs-shell.tsx, src/components/docs/doc-view.tsx, src/components/docs/doc-article.tsx, src/components/docs/doc-toc.tsx, src/lib/docs.ts, src/lib/docs-search.ts UI และข้อมูลของ /docs
public/docs-assets/diagrams/ SVG ของ Mermaid ที่เรนเดอร์ไว้ (commit)
tests/composer.test.ts, tests/scripts-share-ai.test.ts, tests/production.test.ts, tests/tokens.test.ts, tests/ui-components.test.tsx, tests/tool-icons.test.tsx, tests/docs-check.test.ts, tests/mascot.test.tsx, tests/docs-site.test.ts, tests/setup.ts ชุด test (testing.md)

docs/#

ดู docs/README.md สำหรับแผนผังเอกสารทั้งหมด

Source: docs/reference/file-map.md · /docs/reference/file-map.md