{"name":"Anime Proxy","version":"1.3.0","status":"Online","runtime":"Bun","performance":{"uptime":"0s","requests_served":0,"avg_latency":"0ms"},"endpoints":{"proxy":{"path":"/?url=<ENCODED_URL>","method":"GET | POST | HEAD","description":"Main proxy route. Fetches the target URL and streams the response through the proxy with correct headers.","status":"Operational","parameters":{"url":{"required":true,"description":"The full target URL to proxy (URL-encoded)."},"u":{"required":false,"description":"Encrypted target URL (XOR + base64url). Alternative to 'url'."},"headers":{"required":false,"description":"JSON object of custom headers to send upstream. Origin/Referer cannot be overridden."},"json":{"required":false,"description":"JSON body for POST requests. Sets Content-Type to application/json."},"debug":{"required":false,"description":"Set to '1' to attach debug headers (X-Proxy-Debug-*) on M3U8 responses."},"dashboard":{"required":false,"description":"Set to 'true' or '1' to force the interactive dashboard UI."}}},"help":{"path":"/help","method":"GET","description":"Interactive dashboard with live stats, proxy search, and API explorer.","status":"Operational"},"health":{"path":"/api/health","method":"GET","description":"Zero-auth health check for uptime monitors.","status":"Operational"},"encrypt":{"path":"/api/encrypt","method":"POST","description":"Encrypt a URL for use with the ?u= parameter.","status":"Operational"},"headers_preview":{"path":"/api/headers-preview?url=<URL>","method":"GET","description":"Preview the computed upstream headers for any target URL.","status":"Operational"},"domains":{"path":"/api/domains","method":"GET","description":"List all supported domain/provider groups and their patterns.","status":"Operational"},"test_upstream":{"path":"/api/test-upstream?url=<URL>","method":"GET","description":"Test upstream URL reachability and measure latency.","status":"Operational"},"resolve":{"path":"/api/resolve?url=<URL>","method":"GET","description":"Follow and report the full redirect chain of a URL.","status":"Operational"},"debug_manifest":{"path":"/api/debug-manifest?url=<M3U8_URL>","method":"GET","description":"Fetches an M3U8 manifest and returns parsed metadata.","status":"Operational"},"info":{"path":"/api/info","method":"GET","description":"Lightweight service metadata and live performance metrics.","status":"Operational"},"stats":{"path":"/api/stats","method":"GET","description":"Real-time performance metrics (HTMX HTML fragment).","status":"Operational"},"status_badge":{"path":"/api/status","method":"GET","description":"Live status badge. HTML by default, JSON with Accept: application/json.","status":"Operational"},"metrics":{"path":"/api/metrics","method":"GET","description":"Prometheus-compatible text metrics for Grafana/monitoring.","status":"Operational"},"activity_export":{"path":"/api/activity/export","method":"GET","description":"Export request history, active connections, and domain breakdown.","status":"Operational"}},"usage":{"basic_proxy":"GET /?url=https://example.com/video.m3u8","encrypted_proxy":"GET /?u=<XOR_ENCRYPTED_BASE64URL>","post_with_json":"POST /?url=https://api.example.com/endpoint&json={\"key\":\"value\"}","custom_headers":"GET /?url=https://example.com/video.m3u8&headers={\"x-custom\":\"value\"}","debug_mode":"GET /?url=https://example.com/master.m3u8&debug=1","manifest_debug":"GET /api/debug-manifest?url=https://example.com/master.m3u8","header_preview":"GET /api/headers-preview?url=https://example.com/video.m3u8","redirect_trace":"GET /api/resolve?url=https://example.com/redirect"},"features":["M3U8 manifest rewriting with full URI/URL attribute support","Automatic domain-based Origin/Referer header steering (50+ domain groups)","XOR + base64url encrypted URL support via ?u= parameter","3xx redirect following with proxy URL rewriting","Relative path recovery via _last_requested cookie","Range request passthrough for partial content","15s upstream timeout with AbortController","Media segment caching (immutable Cache-Control)","CORS headers on all responses","POST body forwarding with JSON shorthand","Redirect chain resolution and analysis","Prometheus-compatible metrics endpoint"],"notes":{"cors":"All responses include permissive CORS headers (Access-Control-Allow-Origin: *).","headers":"Origin and Referer are automatically set based on the target domain. Custom header overrides for these two are blocked.","m3u8":"M3U8 manifests are rewritten so all segment and variant URLs route back through the proxy.","encryption":"When XOR_KEY is configured, M3U8 segment URLs are encrypted with ?u= instead of ?url=.","caching":"Media segments (.ts, .mp4, .m4s, .aac, .vtt, .webm) get immutable cache headers. Manifests are no-cache."}}