https://github.com/shahradelahi/axios-throttle-interceptor
🚦 A lightweight Axios request throttling interceptor
https://github.com/shahradelahi/axios-throttle-interceptor
axios interceptor rate-limiting throttle
Last synced: 3 months ago
JSON representation
🚦 A lightweight Axios request throttling interceptor
- Host: GitHub
- URL: https://github.com/shahradelahi/axios-throttle-interceptor
- Owner: shahradelahi
- License: mit
- Created: 2024-12-06T12:30:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-05T17:27:14.000Z (3 months ago)
- Last Synced: 2026-03-05T20:14:22.870Z (3 months ago)
- Topics: axios, interceptor, rate-limiting, throttle
- Language: TypeScript
- Homepage: https://npmjs.com/axios-throttle-interceptor
- Size: 65.4 KB
- Stars: 36
- Watchers: 1
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# axios-throttle-interceptor
[](https://github.com/shahradelahi/axios-throttle-interceptor/actions/workflows/ci.yml)
[](https://www.npmjs.com/package/axios-throttle-interceptor)
[](/LICENSE)

[](https://packagephobia.com/result?p=axios-throttle-interceptor)
## 📦 Installation
```bash
npm install axios axios-throttle-interceptor
```
Install using your favorite package manager
**pnpm**
```bash
pnpm install axios axios-throttle-interceptor
```
**yarn**
```bash
yarn add axios axios-throttle-interceptor
```
## 🚀 Usage
```typescript
import axios from 'axios';
import axiosThrottle from 'axios-throttle-interceptor';
const instance = axios.create();
axiosThrottle(instance, {
limit: 5,
interval: 1000,
onDelay: () => console.log('Request delayed due to throttling.'),
});
instance.get('...'); // The requests are now throttled.
```
## 🤝 Contributing
Want to contribute? Awesome! To show your support is to star the project, or to raise issues on [GitHub](https://github.com/shahradelahi/axios-throttle-interceptor)
Thanks again for your support, it is much appreciated! 🙏
## License
[MIT](/LICENSE) © [Shahrad Elahi](https://github.com/shahradelahi) and [contributors](https://github.com/shahradelahi/axios-throttle-interceptor/graphs/contributors).