🚀 A lightweight API that generates Altcha tokens for Moomoo.io, optimized for speed and resilience against rate limits.
- ⚡ Multi-threaded Processing with
worker_threadsfor non-blocking performance - 📦 Queue-based Architecture ensures stable handling under concurrent load
- 🌍 Proxy Rotation (BrightData, Webshare) to bypass rate limits and IP bans
- ⏳ Timeout Safe for both network requests and worker tasks
- 🐳 Deployment Ready with Docker + Vercel
sequenceDiagram
Client->>API: GET /get-token
API->>Proxy: Fetch challenge
API->>Worker Pool: Add puzzle to queue
Worker->>API: Solve challenge & return result
API->>Client: Return altcha token
Endpoint:
GET https://api-altcha-gen.vercel.app/get-token
Success Response:
{ "token": "alt:eyJhbGciOiJTSEE..." }Error Response:
{ "error": "Could not generate token" }cURL Example:
curl -X GET https://api-altcha-gen.vercel.app/get-tokennpm install -g vercel
vercel login
vercelMake sure your
vercel.jsonincludes:
{
"builds": [
{ "src": "server.js", "use": "@vercel/node" }
],
"routes": [
{ "src": "/(.*)", "dest": "/server.js" }
]
}- Backend: Node.js, Express.js
- Concurrency: Worker Threads
- Proxying: https-proxy-agent
- Containerization: Docker
- Deployment: Vercel