Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1<h1 align="center"> <code>express-rate-limit</code> </h1>2 3<div align="center">4 5[](https://github.com/express-rate-limit/express-rate-limit/actions/workflows/ci.yaml)6[](https://npmjs.org/package/express-rate-limit 'View this project on NPM')7[](https://www.npmjs.com/package/express-rate-limit)8[](license.md)9 10</div>11 12Basic rate-limiting middleware for [Express](http://expressjs.com/). Use to13limit repeated requests to public APIs and/or endpoints such as password reset.14Plays nice with15[express-slow-down](https://www.npmjs.com/package/express-slow-down) and16[ratelimit-header-parser](https://www.npmjs.com/package/ratelimit-header-parser).17 18## Usage19 20The [full documentation](https://express-rate-limit.mintlify.app/overview) is21available on-line.22 23```ts24import { rateLimit } from 'express-rate-limit'25 26const limiter = rateLimit({27 windowMs: 15 * 60 * 1000, // 15 minutes28 limit: 100, // Limit each IP to 100 requests per `window` (here, per 15 minutes).29 standardHeaders: 'draft-8', // draft-6: `RateLimit-*` headers; draft-7 & draft-8: combined `RateLimit` header30 legacyHeaders: false, // Disable the `X-RateLimit-*` headers.31 ipv6Subnet: 56, // Set to 60 or 64 to be less aggressive, or 52 or 48 to be more aggressive32 // store: ... , // Redis, Memcached, etc. See below.33})34 35// Apply the rate limiting middleware to all requests.36app.use(limiter)37```38 39### Data Stores40 41The rate limiter comes with a built-in memory store, and supports a variety of42[external data stores](https://express-rate-limit.mintlify.app/reference/stores).43 44### Configuration45 46All function options may be async. Click the name for additional info and47default values.48 49| Option | Type | Remarks |50| -------------------------- | ----------------------------------------- | ----------------------------------------------------------------------------------------------- |51| [`windowMs`] | `number` | How long to remember requests for, in milliseconds. |52| [`limit`] | `number` \| `function` | How many requests to allow. |53| [`message`] | `string` \| `json` \| `function` | Response to return after limit is reached. |54| [`statusCode`] | `number` | HTTP status code after limit is reached (default is 429). |55| [`handler`] | `function` | Function to run after limit is reached (overrides `message` and `statusCode` settings, if set). |56| [`legacyHeaders`] | `boolean` | Enable the `X-Rate-Limit` header. |57| [`standardHeaders`] | `'draft-6'` \| `'draft-7'` \| `'draft-8'` | Enable the `Ratelimit` header. |58| [`identifier`] | `string` \| `function` | Name associated with the quota policy enforced by this rate limiter. |59| [`store`] | `Store` | Use a custom store to share hit counts across multiple nodes. |60| [`passOnStoreError`] | `boolean` | Allow (`true`) or block (`false`, default) traffic if the store becomes unavailable. |61| [`keyGenerator`] | `function` | Identify users (defaults to IP address). |62| [`ipv6Subnet`] | `number` (32-64) \| `function` \| `false` | How many bits of IPv6 addresses to use in default `keyGenerator` |63| [`requestPropertyName`] | `string` | Add rate limit info to the `req` object. |64| [`skip`] | `function` | Return `true` to bypass the limiter for the given request. |65| [`skipSuccessfulRequests`] | `boolean` | Uncount 1xx/2xx/3xx responses. |66| [`skipFailedRequests`] | `boolean` | Uncount 4xx/5xx responses. |67| [`requestWasSuccessful`] | `function` | Used by `skipSuccessfulRequests` and `skipFailedRequests`. |68| [`validate`] | `boolean` \| `object` | Enable or disable built-in validation checks. |69| [`logger`] | `Logger` | Custom logger |70 71## Thank You72 73---74 75Thanks to Mintlify for hosting the documentation at76[express-rate-limit.mintlify.app](https://express-rate-limit.mintlify.app)77 78<p align="center">79 <a href="https://mintlify.com/?utm_campaign=devmark&utm_medium=readme&utm_source=express-rate-limit">80 <img height="75" src="https://devmark-public-assets.s3.us-west-2.amazonaws.com/sponsorships/mintlify.svg" alt="Create your docs today">81 </a>82</p>83 84---85 86And thank you to everyone who's contributed to this project in any way! 🫶87 88## Issues and Contributing89 90If you encounter a bug or want to see something added/changed, please go ahead91and92[open an issue](https://github.com/express-rate-limit/express-rate-limit/issues/new)!93If you need help with something, feel free to94[start a discussion](https://github.com/express-rate-limit/express-rate-limit/discussions/new)!95 96If you wish to contribute to the library, thanks! First, please read97[the contributing guide](https://express-rate-limit.mintlify.app/guides/contributing).98Then you can pick up any issue and fix/implement it!99 100## License101 102MIT © [Nathan Friedly](http://nfriedly.com/),103[Vedant K](https://github.com/gamemaker1)104 105[`windowMs`]:106 https://express-rate-limit.mintlify.app/reference/configuration#windowms107[`limit`]: https://express-rate-limit.mintlify.app/reference/configuration#limit108[`message`]:109 https://express-rate-limit.mintlify.app/reference/configuration#message110[`statusCode`]:111 https://express-rate-limit.mintlify.app/reference/configuration#statuscode112[`handler`]:113 https://express-rate-limit.mintlify.app/reference/configuration#handler114[`legacyHeaders`]:115 https://express-rate-limit.mintlify.app/reference/configuration#legacyheaders116[`standardHeaders`]:117 https://express-rate-limit.mintlify.app/reference/configuration#standardheaders118[`identifier`]:119 https://express-rate-limit.mintlify.app/reference/configuration#identifier120[`store`]: https://express-rate-limit.mintlify.app/reference/configuration#store121[`passOnStoreError`]:122 https://express-rate-limit.mintlify.app/reference/configuration#passonstoreerror123[`keyGenerator`]:124 https://express-rate-limit.mintlify.app/reference/configuration#keygenerator125[`ipv6Subnet`]:126 https://express-rate-limit.mintlify.app/reference/configuration#ipv6subnet127[`requestPropertyName`]:128 https://express-rate-limit.mintlify.app/reference/configuration#requestpropertyname129[`skip`]: https://express-rate-limit.mintlify.app/reference/configuration#skip130[`skipSuccessfulRequests`]:131 https://express-rate-limit.mintlify.app/reference/configuration#skipsuccessfulrequests132[`skipFailedRequests`]:133 https://express-rate-limit.mintlify.app/reference/configuration#skipfailedrequests134[`requestWasSuccessful`]:135 https://express-rate-limit.mintlify.app/reference/configuration#requestwassuccessful136[`validate`]:137 https://express-rate-limit.mintlify.app/reference/configuration#validate138[`logger`]:139 https://express-rate-limit.mintlify.app/reference/configuration#logger140 