rate-limit-setup

Community

Implement rate limiting for API endpoints.

AuthorAppleLamps
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill documents and implements a database-backed rate-limiting system that protects APIs by limiting premium image requests per user.

Core Features & Use Cases

  • Anonymous user hashing: generate a hash from IP and User-Agent to identify users
  • Windowed quotas: 24-hour reset with per-user counters
  • Usage enforcement: return 429 when limits are reached and increment counts on success

Quick Start

Integrate the checkUsage pattern into your API route, initialize the usage_tracking table, and enforce limits for premium actions.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rate-limit-setup
Download link: https://github.com/AppleLamps/xpic2/archive/main.zip#rate-limit-setup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.