How nuejs/nue works
Main Components
The system should be represented as a monorepo architecture with these core packages:
a. Core Framework Components:
• nuejs (Core framework package)
• nuekit (Build and development toolkit)
• nuemark (Markdown processing engine)
• glow (Syntax highlighting component)
b. Documentation/Examples:
• nuejs.org (Documentation website)
• examples/simple-blog (Example implementation)
Architectural Layers
┌─ Application Layer ─────────────────────┐
• [Examples] [Documentation Site] │
• simple-blog nuejs.org │
• ┬────────────────────┬─┘
┌─ Framework Layer ─▼────────────────┐ │
• ┌─ NueKit ──────────────────────┐ │ │
• CLI Interface │ │ │
• Development Server │ │ │
• Build System │ │ │
• Hot Reload │ │ │
• ┬──────────────┘ │ │
• ┌─ NueJS ──────▼──────────────┐ │ │
• Component System │ │ │
• Templating Engine │ │ │
• Reactive Runtime │ │ │
• ┬──────────────┘ │ │
• ┼────────────────┘ │
┌─ Utils Layer ───▼───────────────────▼┐
• [Nuemark] [Glow] │
• Markdown Engine Syntax Highlight │
• ┘
Important Details
• Browser Components (/src/browser)
• Server Components (/src/layout)
• Build Tools (/src/builder)
• CLI Interface (/src/cli)
Integration Points
External integration points:
• Browser Runtime
• Development Server
• Build Pipeline
• Content Processing
Development Flow
Source Files → NueKit Build → Optimized Output
• ↑ ↓
Hot Reload ←── Dev Server
Remember to:
• Use consistent styling and notation
• Version information
• Document key architectural decisions
• Standards-first approach
• Minimal tooling
• Content-centric architecture
• Built-in optimization
This will provide a clear understanding of how the different packages interact while maintaining a focus on the project's core principles of simplicity and standards-based development.