Setup Rate Limiting
Implement comprehensive API rate limiting with advanced algorithms and user-specific policies
$ npx claude-code-templates@latest --command="setup/setup-rate-limiting" --yesRequires Claude Code. The command adds this command to your project's .claudedirectory — nothing runs on ToolZip's servers.
What's inside this command
Component source
Setup Rate Limiting
Implement comprehensive API rate limiting with advanced control mechanisms: $ARGUMENTS
Current API State
- Framework detection: @package.json or @requirements.txt (Express, FastAPI, Spring Boot, etc.)
- Existing rate limiting: !
grep -r "rate.limit\|throttle\|rateLimit" src/ 2>/dev/null | wc -l - Redis availability: !
redis-cli ping 2>/dev/null || echo "Redis not available" - API endpoints: !
grep -r "route\|endpoint\|@app\\.route" src/ 2>/dev/null | wc -l
Task
Implement production-ready rate limiting system with sophisticated algorithms and user policies:
Rate Limit Type: Use $ARGUMENTS to focus on API rate limiting, authentication limiting, file upload controls, or database access limiting Rate Limiting Architecture:- Algorithm Implementation - Token bucket, sliding window, fixed window, leaky bucket algorithms
- User Policies - Tier-based limits, authenticated vs anonymous, user-specific quotas, IP-based controls
- Storage Backend - Redis integration, distributed rate limiting, persistence strategies, failover mechanisms
- Endpoint Configuration - Per-route limits, method-specific rules, dynamic configuration, A/B testing
- Monitoring & Analytics - Usage tracking, abuse detection, performance metrics, alerting systems
- Bypass Mechanisms - Whitelist management, internal request handling, emergency overrides
Related Claude Code Commands
Design Database Schema
Design optimized database schemas with proper relationships, constraints, and performance considerations
Setup Docker Containers
Setup Docker containerization with multi-stage builds and development workflows
Setup Development Environment
Setup comprehensive development environment with tools, configurations, and workflows
Setup Linting
Configure comprehensive code linting and quality analysis tools with automated enforcement
Design Rest Api
Design RESTful API architecture with comprehensive endpoints, authentication, and documentation
Create Database Migrations
Create and manage database migrations with proper versioning and rollback support
Catalog data and component content are sourced from the open-source davila7/claude-code-templates project (MIT license). ToolZip curates the listing and writes original descriptions; every component links back to its original source. Claude Code is a product of Anthropic. ToolZip is an independent catalog and is not affiliated with or endorsed by Anthropic.