Skip to main content

Base URL

All API endpoints are hosted on Vercel:

Available Endpoints

Download Tracking

POST /api/track-download-supabase Tracks component downloads for analytics. Used automatically by the CLI on every component installation. View documentation →

Discord Integration

POST /api/discord/interactions Handles Discord bot slash commands for searching and installing components. View documentation →

Claude Code Monitoring

POST/GET /api/claude-code-check Monitors Claude Code releases and sends Discord notifications. Runs automatically via Vercel Cron every 30 minutes. View documentation →

Authentication

Most endpoints do not require authentication. The Discord interactions endpoint validates requests using Ed25519 signature verification.

CORS

All endpoints support Cross-Origin Resource Sharing (CORS) with the following headers:

Rate Limiting

There are no explicit rate limits, but endpoints are subject to Vercel’s serverless function limits:
  • Execution time: 10 seconds (Hobby), 60 seconds (Pro)
  • Memory: 1024 MB
  • Payload size: 4.5 MB

Error Responses

All endpoints return consistent error responses:
string
Error type or message
string
Human-readable error description
string
Additional error details (development mode only)

Example Error Response

Environment

The API runs on Vercel Serverless Functions with the following infrastructure:
  • Database (Download Tracking): Supabase
  • Database (Claude Code Monitoring): Neon PostgreSQL
  • Runtime: Node.js
  • Region: Auto-selected by Vercel Edge Network

Status & Monitoring

Monitor API health:

Support

For API issues or questions: