salvo-rate-limiter

Implement per-IP, per-user, and per-API-key rate limits for Salvo APIs.

20|5|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-rate-limiter
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: salvo-rate-limiter
Source: https://github.com/salvo-rs/salvo-skills/tree/main/skills/salvo-rate-limiter
Command: npx skills add https://github.com/salvo-rs/salvo-skills --skill salvo-rate-limiter

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Protect Salvo-powered APIs from abuse and overload by enforcing configurable rate limits to ensure fair resource usage and availability.

Core Features & Use Cases

  • Per-IP, per-user, and per-API-key quotas
  • Route-specific limits with dynamic quotas
  • Sliding-window options and customizable responses and headers
  • Easy integration with authentication flows and middleware

Quick Start

Configure and run a RateLimiter on your Salvo router to enforce API quotas.

Frequently Asked Questions about salvo-rate-limiter

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add rate limiting to my Salvo web services to prevent API abuse?

You can implement per-IP, per-user, and per-API-key quotas in Salvo using the RateLimiter middleware. It allows you to configure route-specific limits and customizable responses to protect your APIs from abuse and overload.

Can I apply route-specific rate limits with dynamic quotas in a Salvo application?

Yes, you can apply route-specific rate limits with dynamic quotas in a Salvo application. The RateLimiter supports per-route configuration, allowing different limits for different API endpoints based on your specific protection requirements.

Does the Salvo rate limiter support sliding-window options for API protection?

Yes, the Salvo rate limiter supports sliding-window options for API protection. This mechanism provides a more accurate enforcement of quotas over time compared to fixed windows, smoothing traffic spikes and ensuring consistent API availability.

How do I integrate rate limiting with existing authentication flows in Salvo?

You integrate rate limiting with existing authentication flows in Salvo by leveraging per-user and per-API-key quotas. The RateLimiter easily integrates with your middleware to issue limits based on authenticated identities rather than just IP addresses.

What are the limitations of using IP-based rate limiting for API protection?

IP-based rate limiting for API protection can be limited by shared networks like NATs, where many users share one IP. Combining per-IP limits with per-user or per-API-key quotas ensures accurate throttling and prevents blocking legitimate shared traffic.