👑 📦

Nim Packages

API Endpoints

API Endpoints

← Back to Home

📡 REST API

All endpoints return JSON responses and support CORS for cross-origin requests.

GET /api/packages JSON
Get all packages in the database
📊 Returns: Array of packages 🔗 Try it
GET /api/packages/search?q=<query> JSON
Search packages with scoring and relevance ranking (high quality only)
📊 Returns: Scored results with match types 🎯 Score 40+: name, description, tag matches 🔗 Try it
GET /api/packages/search/simple?q=<query> JSON
Simple search packages (high quality only)
📊 Returns: Array of packages 🎯 Score 40+: name, description, tag matches 🔗 Try it
GET /api/packages/tag/<tag> JSON
Search packages by specific tag
📊 Returns: Array of packages with matching tag 🔗 Try it
GET /api/packages/<name> JSON
Get specific package by name
📊 Returns: Single package object 🔗 Try it
GET /api/stats JSON
Get package statistics and metadata
📊 Returns: Total packages, last updated timestamp 🔗 Try it

🛡️ Rate Limiting

Rate limiting is enabled to ensure fair usage of the API:

  • Maximum 60 requests per minute per IP address
  • Exceeding the limit will result in a 429 Too Many Requests response
  • Rate limits reset every minute automatically
  • Rate limit headers are included in all responses

📋 Response Format

All API responses follow a consistent JSON format:

{
  "packages": [...],
  "count": 123,
  "query": "search term",
  "searchInfo": {
    "description": "High-quality results only (score 40+)"
  }
}