How bjornmelin/bjornmelin-platform-io works
Main Components
A. Client Layer:
• Next.js 14 Frontend (React 18)
• Static Assets (S3/CloudFront)
• Client-side Components
B. Edge Layer:
• CloudFront Distribution
• Route 53 DNS
• ACM Certificates
C. Application Layer:
• Next.js Server Components
• API Routes
• Lambda Functions
D. Infrastructure Layer:
• AWS Services Integration
• Storage Solutions
• Email Services
┌─────────────────────────────────────────────────────────────┐
• Client Browser │
• ┬─────────────────────────────┘
• ▼
┌─────────────────────────────────────────────────────────────┐
• Edge Layer (Global) │
• ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ │
• Route 53 │──▶│ CloudFront │◀───│ ACM │ │
• ┘ └──────────────┘ └──────────────┘ │
• ┬─────────────────────────────┘
• ▼
┌─────────────────────────────────────────────────────────────┐
• Application Layer │
• ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ │
• Next.js │ │ Lambda │ │ S3 │ │
• Server │──▶│ Functions │──▶│ Bucket │ │
• ┘ └──────────────┘ └──────────────┘ │
• ┬─────────────────────────────┘
• ▼
┌─────────────────────────────────────────────────────────────┐
• Services Layer │
• ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ │
• SES │ │ CloudWatch │ │ IAM │ │
• Email │ │ Monitoring │ │ Roles │ │
• ┘ └──────────────┘ └──────────────┘ │
• ┘
Important Flows to Highlight
A. Static Content Delivery:
Browser → CloudFront → S3 Bucket
B. Contact Form Flow:
Browser → API Route → Lambda → SES
C. DNS Resolution:
Browser → Route 53 → CloudFront
Component Details
Frontend:
• Next.js 14 App Router structure
• Server vs. client components
• Static asset handling
Infrastructure:
• AWS services from /infrastructure/lib/stacks
• Relationships between stacks
• CloudWatch monitoring points
Additional Elements
• Version badges for major components
• Scaling and redundancy where applicable
• Security perimeters
Implementation Notes
• Maintain consistent styling
• Component versions
• Brief descriptions for complex interactions