Gathering detailed insights and metrics for @upstash/strapi-plugin-upstash-ratelimit
Gathering detailed insights and metrics for @upstash/strapi-plugin-upstash-ratelimit
npm install @upstash/strapi-plugin-upstash-ratelimit
Typescript
Module System
Min. Node Version
Node Version
NPM Version
44
Supply Chain
69.4
Quality
79.2
Maintenance
100
Vulnerability
96.8
License
Cumulative downloads
Total Downloads
Last day
100%
2
Compared to previous day
Last week
-16.7%
5
Compared to previous week
Last month
44.9%
71
Compared to previous month
Last year
0%
413
Compared to previous year
8
4
[!NOTE]
This project is in the Experimental Stage. We declare this project experimental to set clear expectations for your usage. There could be known or unknown bugs, the API could evolve, or the project could be discontinued if it does not find community adoption. While we cannot provide professional support for experimental projects, we’d be happy to hear from you if you see value in this project!
1npm install --save @upstash/strapi-plugin-upstash-ratelimit
1yarn add @upstash/strapi-plugin-upstash-ratelimit
Create a new redis database on Upstash Console. See docs for further info related to creating a database.
Get the environment variables from Upstash Console, and set it to .env
file as below:
1UPSTASH_REDIS_REST_TOKEN="<YOUR_TOKEN>" 2UPSTASH_REDIS_REST_URL="<YOUR_URL>"
In the ./config/plugins.ts
file, set the configurations for ratelimiter.
1export default () => ({ 2 "strapi-plugin-upstash-ratelimit": { 3 enabled: true, 4 resolve: "./src/plugins/strapi-plugin-upstash-ratelimit", 5 config: { 6 enabled: true, 7 token: process.env.UPSTASH_REDIS_REST_TOKEN, 8 url: process.env.UPSTASH_REDIS_REST_URL, 9 strategy: [ 10 { 11 methods: ["GET", "POST"], 12 path: "*", 13 limiter: { 14 algorithm: "fixed-window", 15 tokens: 10, 16 window: "20s", 17 }, 18 }, 19 ], 20 prefix: "@strapi", 21 }, 22 }, 23});
See the documentation for more information details about this package.
No vulnerabilities found.
No security vulnerabilities found.