← スキル一覧に戻る

project-architecture
by nextblock-cms
The open-source core of NextBlock CMS. A high-performance, developer-first CMS built with Next.js 15, Supabase, and Tailwind. Features a Notion-style block editor, native multi-language support, and perfect Lighthouse scores. The modern alternative to WordPress.
⭐ 3🍴 0📅 2026年1月14日
SKILL.md
name: project-architecture description: When you need to understand the directory structure, open-core model, or where to add new code.
Project Architecture & Monorepo Structure
1. High-Level Layout
| Path | Type | Purpose | Import Alias |
|---|---|---|---|
apps/nextblock | Application | Primary Prod App (Admin + Public). | — |
apps/create-nextblock | Application | CLI Scaffolder. | — |
libs/ui | Library | Shared UI components. | @nextblock-cms/ui |
libs/utils | Library | Core utilities. | @nextblock-cms/utils |
libs/db | Library | Database layer (Supabase). | @nextblock-cms/db |
libs/editor | Library | Tiptap editor package. | @nextblock-cms/editor |
2. Core Rules
Open-Core Model
- Core: Everything in this repo is Open Source (MIT), except
libs/ecommerce(if present). - Premium: Private extensions live in
libs/ecommerce.
Code Placement Decisions
- New UI Component: Go to
libs/ui. - New Helper Function: Go to
libs/utils. - New Database Query: Go to
libs/db. - New Page/Route: Go to
apps/nextblock/app. - CLI Logic: Go to
apps/create-nextblock.
3. Dependency Graph Rules
libs/*can depend on otherlibs/*(e.g.,uidepends onutils).apps/*depend onlibs/*.- Crucial:
libs/uiMUST NOT depend onapps/nextblock. This creates a circular dependency and breaks the build.
4. Template Syncing
apps/create-nextblock/templates/nextblock-templateis generated code.- Do not edit it directly.
- Edit
apps/nextblockinstead, then runnpm run sync:create-nextblockto update the template.
スコア
総合スコア
70/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
✓説明文
100文字以上の説明がある
+10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です