How leeddhh/dev-resource works
Main System Components
a. Frontend Layer:
• Next.js Client Application
• Apollo Client
• React Components (organized in layers: screen → parts → common → base)
• Storybook for component documentation
• TailwindCSS for styling
b. Backend Layer:
• Next.js API Routes
• Apollo Server
• GraphQL Schema and Resolvers
• Data Processing Utilities
c. Data Layer:
• JSON-based Data Storage (db.json, db_tags.json, db_origin.json)
• Image Assets Storage
• Tag Management System
Component Organization
• Blue: Core Application Components
• Components hierarchy (screen → parts → common → base)
• Hooks layer
• GraphQL operations
• Green: Data Processing Pipeline
• Content collection system
• Screenshot generation
• Image processing
• Tag management
• Orange: Development Tools
• Storybook
• Bundle analyzer
• Build trace analysis
• TypeScript types
• Client-Server communication via GraphQL
• Data processing pipeline flow
• Component hierarchy relationships
• Asset management flow
Integration Points
Integration with:
• Apollo Client/Server
• GraphQL schema and resolvers
• Image processing pipeline
• Tag management system
Architectural Patterns
Emphasize:
• Component-based architecture
• GraphQL-based data fetching
• Static site generation capabilities
• Client-side state management
┌─ Client Layer ─────────────────────┐
• Next.js Pages │
• React Components │
• Apollo Client │
• Hooks & Context │
• API Layer ──────────────────────┐ │
• GraphQL Schema │ │
• Apollo Server │ │
• Resolvers │ │
• Data Processing Layer ──────────┤ │
• Content Collection Pipeline │ │
• Image Processing │ │
• Tag Management │ │
• Storage Layer ─────────────────┤ │
• JSON Data Files │ │
• Image Assets │ │
• Tag Database │ │
• ┘
• Special markers for critical integration points