How altcha-org/altcha works
Main Components
a. Client-Side Components:
• Web Component (altcha-widget)
• Worker Pool (for proof-of-work computation)
• Plugin System
• Core Verification Logic
b. Server-Side Components:
• Challenge Generation Service
• Verification Service
• Spam Filter Service
• Analytics Service (optional)
• Client Browser |
• ALTCHA Widget | | Worker Pool | | Plugins | |
• (Web Component) |--→| (PoW Computing) | | - Analytics | |
• Obfuscation | |
• ↑ | - Upload | |
• ↓ ↓
• Server Side |
• Challenge | | Verification | | Spam Filter | |
• Generator |←-→| Service |←-→| Classification | |
Key Elements to Highlight
a. Data Flow Indicators:
• Challenge request flow
• Proof-of-work computation flow
• Verification flow
• Plugin integration points
b. Component Relationships:
Technical Details
• Worker pool configuration (max 16 workers)
• Challenge verification endpoints
• Spam filter integration points
• File upload paths (for upload plugin)
• Analytics data flow (for analytics plugin)
Implementation Notes
• Rectangles: Core components
• Hexagons: Services
• Circles: Integration points
• Diamonds: Decision points
• Blue: Core functionality
• Green: Optional plugins
• Yellow: Security-related components
• Gray: External services
Additional Elements
• Configuration options as a separate section
• Error handling paths
• Where CSP considerations apply
Optimization Paths
• Bundle optimization routes
• Where external resources can be loaded
• Critical rendering paths
• Self-hosted nature
• Cookie-less operation
• GDPR compliance
• Proof-of-work mechanism
• Plugin extensibility