Architecture
System Overview
hackmoney-route402/
├── apps/
│ ├── server/ # Express.js API server
│ ├── web/ # Next.js frontend
│ ├── extension/ # VS Code browser extension
│ ├── facilitator/ # Payment facilitator service
│ ├── contracts/ # Smart contracts
│ └── mcp/ # Model Context Protocol server
├── packages/
│ ├── sdk/ # @router402/sdk -- Core SDK
│ ├── types/ # @router402/types -- Shared type definitions
│ └── utils/ # @router402/utils -- Shared utilitiesComponent Architecture
Technology Stack
Backend
Component
Technology
Purpose
Frontend
Component
Technology
Purpose
Blockchain
Component
Technology
Purpose
Monorepo
Component
Technology
Purpose
Data Flows
Authentication Flow
Chat Completion Flow
Transaction Execution Flow
Key Design Decisions
Why ERC-4337?
Why Session Keys?
Why x402?
Why Pimlico?
Security Model
Signature Verification
Session Key Security
API Security
Last updated