Welcome to the Crypto Data Aggregator documentation! This guide will help you understand, use, and contribute to the project.
| Document | Description | Audience |
|---|---|---|
| README | Project overview, quick start, features | Everyone |
| CONTRIBUTING | How to contribute to the project | Contributors |
| API Reference | Complete API endpoint documentation | Developers |
| Swagger Docs | Interactive API documentation | Developers |
| AI Agents | AI agent discoverability guide | AI Developers |
| Archive System | Historical data collection | Developers |
| Architecture | System design and data flow | Developers |
| Tech Stack | Technologies, libraries, and tools | Developers |
| Components | React component reference | Developers |
| Data Sources | External APIs and caching | Developers |
| Development | Local setup and workflow | Contributors |
| Testing | Testing guide and best practices | Contributors |
| Deployment | Production deployment guide | DevOps |
| Performance | Optimization strategies | Developers |
| Security | Security guidelines | Everyone |
| PWA | Progressive Web App features | Developers |
| x402 Integration | x402 payment protocol guide | Developers |
| Troubleshooting | Common issues and solutions | Everyone |
| Changelog | Version history and changes | Everyone |
- Quick Start - Get running in 30 seconds
- Development Setup - Full dev environment
- Contributing Guide - Start contributing
- API Endpoints - All available endpoints
- Swagger UI - Interactive API documentation
- OpenAPI Spec - Machine-readable API spec
- Component Library - UI components
- Design System - Colors, tokens, and styling
- Tech Stack Details - Framework details
- Data Flow - How data moves through the app
- Caching Strategy - Multi-layer caching
- State Management - SWR and context
- Deployment Options - Vercel, Docker, self-hosted
- Performance Monitoring - Core Web Vitals
- Security Checklist - Security review
┌─────────────────────────────────────────────────────────────────┐
│ Browser │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
│ │ React │ │ SWR │ │ LocalStorage │ │
│ │ Components │──│ Cache │ │ (Portfolio/Alerts) │ │
│ └──────────────┘ └──────────────┘ └──────────────────────┘ │
└────────────────────────────┬────────────────────────────────────┘
│ HTTP
┌────────────────────────────┼────────────────────────────────────┐
│ Next.js Server │
│ ┌──────────────┐ ┌──────────────┐ ┌──────────────────────┐ │
│ │ API Routes │──│ Memory Cache │──│ External APIs │ │
│ │ (Edge) │ │ (TTL-based) │ │ CoinGecko/DeFiLlama │ │
│ └──────────────┘ └──────────────┘ └──────────────────────┘ │
└─────────────────────────────────────────────────────────────────┘
| Category | Technology | Version |
|---|---|---|
| Framework | Next.js | 16.x |
| UI Library | React | 19.x |
| Language | TypeScript | 5.x |
| Styling | Tailwind CSS | 4.x |
| Data Fetching | SWR | 2.x |
| Charts | Recharts | 2.x |
| Animations | Framer Motion | 12.x |
| Testing | Vitest | 4.x |
GET /api/market/coins # Top coins by market cap
GET /api/market/coins/:id # Single coin details
GET /api/market/history/:id # Historical prices
GET /api/market/ohlc/:id # OHLC candlestick data
GET /api/market/search?q= # Search coins
GET /api/defi # DeFi protocols
GET /api/defi/chains # Blockchain TVL
GET /api/sentiment # Fear & Greed Index
GET /api/trending # Trending coins
GET /api/charts/:id # Chart data
- Store holdings locally (no account needed)
- Track P&L, cost basis, allocation
- Export as JSON/CSV
- Set price above/below targets
- Browser notifications
- Persisted in localStorage
See: Components → Alerts
- Installable on mobile/desktop
- Offline browsing
- Background updates
See: PWA Guide
- Setup:
./scripts/setup.shornpm install - Develop:
npm run dev- Start dev server - Test:
npm run test- Run tests - Check:
npm run check-all- Lint + typecheck + test - Commit: Husky runs pre-commit hooks automatically
- PR: Follow PR template
Found an error or want to improve the docs?
- Fork the repository
- Edit files in
/docs - Submit a PR with your changes
Documentation follows these conventions:
- Markdown format with proper headings
- Code examples with syntax highlighting
- Tables for structured data
- Mermaid diagrams for architecture
- Questions: Open a Question issue
- Bugs: Open a Bug report
- Features: Open a Feature request