{"_id":"@bernierllc/rate-limiter","_rev":"14-c58ec01cca5cd28a213e84afc2db09c3","name":"@bernierllc/rate-limiter","dist-tags":{"latest":"0.7.0"},"versions":{"0.1.2":{"name":"@bernierllc/rate-limiter","version":"0.1.2","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.1.2","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"87dec262a5ca7c53a4012bb282cdb48697be9016","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.1.2.tgz","fileCount":36,"integrity":"sha512-3Hkbd0jmzA7laMWMr2dksl1qVCY8yxR13ML/tUNYl3CkBdbsjE/UC7Rr5SOPZc/GOn5FEUNTIUU7S6HfNp3Ntw==","signatures":[{"sig":"MEYCIQCUD9/tvAw/27TWzF4oSs+uy9ni4m5jjVo0K1UmDLKfeAIhAOsJrvwyN0KqKnOyUbBR/DigsgQLhcIycRkt7HcAzXyZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89959},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"69071537a05400342b973f1a199512b9ba12757a","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.4.2","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"24.4.1","dependencies":{"@bernierllc/connection-parser":"^1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.1.2_1759618655443_0.8674378146273658","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@bernierllc/rate-limiter","version":"0.1.3","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.1.3","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"fc3c04e264b630b377cfde4899c83ad4514e33f3","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.1.3.tgz","fileCount":36,"integrity":"sha512-SjHzYCH1BDyHy+/emf8glBlATMYI70tGa7aNLe4Jnc/f3/0B9x11duGUzvBfZ/44p6vOuI9S5yefwLa/dhA+BA==","signatures":[{"sig":"MEUCIQCkvYzg5G0eKUSlkAZ4qp5pJocgpQvvTOlp0zEzQtpiswIgFjqL2huUVrVj7jMsu6rRyIdQScLj0o+VNdGJtzZM010=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89959},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"69071537a05400342b973f1a199512b9ba12757a","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.4.2","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"24.4.1","dependencies":{"@bernierllc/connection-parser":"^1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.1.3_1759618890179_0.18135779978589728","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@bernierllc/rate-limiter","version":"0.1.5","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.1.5","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"250f6a1858f8fd8c6e1d68cac8ddd4630cf616a9","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.1.5.tgz","fileCount":36,"integrity":"sha512-uigULLlHfc7XetUGRxeRC+1/66CIYVIeim9pE9EWDKY7462AJDRBOF5sD3zu2hGgU/0wuhwSri6i2ewEjJGyrQ==","signatures":[{"sig":"MEQCIFZz0VdAQnhS7q+jo91YjPMmCx/RNQWD7ptY7XVtjGtLAiBICoO2RIT+YfpG3Oe4SGu7F3BI4SNampK45F66HxD6Eg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89958},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.1.5.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"_resolved":"/private/var/folders/r0/wspnzd1s18sfjy10ffyv2qxw0000gn/T/621392e2e1e7d290289c6942942443a3/bernierllc-rate-limiter-0.1.5.tgz","_integrity":"sha512-uigULLlHfc7XetUGRxeRC+1/66CIYVIeim9pE9EWDKY7462AJDRBOF5sD3zu2hGgU/0wuhwSri6i2ewEjJGyrQ==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.6.2","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"25.1.0","dependencies":{"@bernierllc/connection-parser":"^1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.1.5_1762382113602_0.9405707475732039","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@bernierllc/rate-limiter","version":"0.1.6","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.1.6","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"c8fc06d68d7fca421bf75e17c28b51c2e83bd51d","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.1.6.tgz","fileCount":36,"integrity":"sha512-dKLtOYreSSU8WsH7Z+ykyOtc7lEPrgzzgzcrqOnQkPJbXJfBgGjzqA+8nKDCdBuj1GxMvqYyI3Bu/WrocyXCqg==","signatures":[{"sig":"MEUCIQCu2xnwMZoh2PAU7b65qoTadXxiyC5HvD3tD59qweNuSAIgDEAOQAwdrPS16WDFaTWOuNfC4jtJEEYc21NeuJhYy9o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89958},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.1.6.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"_resolved":"/private/var/folders/r0/wspnzd1s18sfjy10ffyv2qxw0000gn/T/7035435e8360eadfd21b00519f1dc690/bernierllc-rate-limiter-0.1.6.tgz","_integrity":"sha512-dKLtOYreSSU8WsH7Z+ykyOtc7lEPrgzzgzcrqOnQkPJbXJfBgGjzqA+8nKDCdBuj1GxMvqYyI3Bu/WrocyXCqg==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.6.2","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"25.1.0","dependencies":{"@bernierllc/connection-parser":"^1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.1.6_1762580191232_0.04052489458893738","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@bernierllc/rate-limiter","version":"0.1.7","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.1.7","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"a7f2744e3894c009452b57118e9793b41def5ff0","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.1.7.tgz","fileCount":36,"integrity":"sha512-9Ys8qH7BdyzaX3pbGhEzIZ9+1n3AgOS9pi+e7S8SpJiQrHHz4OXC4NTefLe8e2clBejrvhLbMLMNQQans+UcZw==","signatures":[{"sig":"MEQCIBnY7ttTyb9ryWOzUrsfhtgLdOjKHiF/ctrg/64tPbdrAiABtAHqlFpRF4ioJtKa4p8ok1xxyTzKQnKHj0n0VnbqSg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90886},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.1.7.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"_resolved":"/private/var/folders/r0/wspnzd1s18sfjy10ffyv2qxw0000gn/T/5e54c9279d1cc3259c96e0a218668230/bernierllc-rate-limiter-0.1.7.tgz","_integrity":"sha512-9Ys8qH7BdyzaX3pbGhEzIZ9+1n3AgOS9pi+e7S8SpJiQrHHz4OXC4NTefLe8e2clBejrvhLbMLMNQQans+UcZw==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.6.2","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@bernierllc/connection-parser":"^1.0.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.1.7_1764636785909_0.9185645608210569","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@bernierllc/rate-limiter","version":"0.2.0","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.2.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"10c746001604922ad801b1b0f7f04ea20e9af0db","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.2.0.tgz","fileCount":36,"integrity":"sha512-z+NOqfZa7dkAm/tAs5BV+9JUoXYOYwMNAVOq545mycCyEs6+7WaZAWGHpX9ehaqZL7dBrUpY1u823Om9V5RtnQ==","signatures":[{"sig":"MEUCIC/YAK//0h84gIUmNyR/sSQQ9z0vvindVxThp5ZDRtqPAiEAgip/MHs9PAabMbVhBDPfoo6etUym7wf1sInOhzbJCcQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90892},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"db551cb6bf3978b86c5dbb9404a7ad53e8c837da","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0a86725d-cfe4-4042-86ac-5ca8f8164f4a"}},"repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.10.0","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@bernierllc/connection-parser":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.2.0_1771268005582_0.1320155428820471","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@bernierllc/rate-limiter","version":"0.2.1","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.2.1","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"4196ed51f89b286c349833df3bc1af3da84bd994","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.2.1.tgz","fileCount":36,"integrity":"sha512-WbiO7g5SrB/BS2vgDkmm4FMYWy2YfLSjJrs3Z+2UvNAdhGi2DsoasHm9LxCoY5AYhxUtMvWrqaZ69f4wdDJcGA==","signatures":[{"sig":"MEUCIQCMd7+VnbKhcI/nCmWjn56xHB/rrwTtW+kfujO33d/axwIgefs1FOGg44hHS6yuX1R6ODpubcwPsxKm1v10ZM1Y5Zw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90885},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.2.1.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0a86725d-cfe4-4042-86ac-5ca8f8164f4a"}},"_resolved":"/home/runner/work/tools/tools/packages/core/rate-limiter/bernierllc-rate-limiter-0.2.1.tgz","_integrity":"sha512-WbiO7g5SrB/BS2vgDkmm4FMYWy2YfLSjJrs3Z+2UvNAdhGi2DsoasHm9LxCoY5AYhxUtMvWrqaZ69f4wdDJcGA==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.11.0","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@bernierllc/connection-parser":"1.0.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.2.1_1772400293555_0.5364754525986797","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@bernierllc/rate-limiter","version":"0.2.2","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.2.2","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"01fb35037860ea92e144571ae10b7dbc468adca5","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.2.2.tgz","fileCount":36,"integrity":"sha512-4hvFWcOpaW2r4chFfs33HuKjmYTa6wImSMPIaQmrYkm+A+58DONOrl9dpHbNNnBnSKisJlKrQi1oiMqbdnJh1A==","signatures":[{"sig":"MEQCIC/9hmQqQqiWW4vxw0nSFvPIO1JMXJmElDw7sz4jwdsGAiA0Q0qxmkS0MihceXcJ4PmJOB23ocS3QA1U7BDt7KlPnQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90885},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.2.2.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"mkbernier","email":"mkbernier@gmail.com"},"_resolved":"/Users/mattbernier/projects/tools/packages/core/rate-limiter/bernierllc-rate-limiter-0.2.2.tgz","_integrity":"sha512-4hvFWcOpaW2r4chFfs33HuKjmYTa6wImSMPIaQmrYkm+A+58DONOrl9dpHbNNnBnSKisJlKrQi1oiMqbdnJh1A==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.6.2","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@bernierllc/connection-parser":"1.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.2.2_1772570950873_0.30717957586701283","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@bernierllc/rate-limiter","version":"0.2.3","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.2.3","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"e4d42d95570878e430bc7377c54a83c942c55150","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.2.3.tgz","fileCount":36,"integrity":"sha512-Dmq9xmSIgrhgu9GCqDsHwJSx6ikZYvTTvS0/pOMQLLUJLOC1VVk7pUxZW2sOdouWdK4BTqrAi/xbscq/QZVHug==","signatures":[{"sig":"MEQCIAKyEyXvsvBb+lffDW0w7gSV9OHesNl6Mg4OGqrphFrjAiAeowKcfAuTPUo9ryU23pXDw3ShbO6GQvin6mxPcOYuLA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":90885},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.2.3.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0a86725d-cfe4-4042-86ac-5ca8f8164f4a"}},"_resolved":"/home/runner/work/tools/tools/packages/core/rate-limiter/bernierllc-rate-limiter-0.2.3.tgz","_integrity":"sha512-Dmq9xmSIgrhgu9GCqDsHwJSx6ikZYvTTvS0/pOMQLLUJLOC1VVk7pUxZW2sOdouWdK4BTqrAi/xbscq/QZVHug==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.11.0","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@bernierllc/connection-parser":"1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.2.3_1773161863296_0.8418170784084809","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@bernierllc/rate-limiter","version":"0.4.0","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.4.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"96486f65004c05ce8c09b597f81cf85da8fa7e71","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.4.0.tgz","fileCount":38,"integrity":"sha512-GifTUM4BAKxJ08sl44MrfbndAGCdREhbU5mvCsJbW5QQNolYseesFlHNBO5Y+T3iOcU8nFsksY5lMtYhEmxxRA==","signatures":[{"sig":"MEUCIQDt/AJjYcvsmD7KW/YV99RjX4tGvMdvXsCICTTGwurAGAIgZLjRGiiraNKgcTF96Ep9JUxjdcEjh1KIfo1LSCLtvJo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":93900},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.4.0.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0a86725d-cfe4-4042-86ac-5ca8f8164f4a"}},"_resolved":"/home/runner/work/tools/tools/packages/core/rate-limiter/bernierllc-rate-limiter-0.4.0.tgz","_integrity":"sha512-GifTUM4BAKxJ08sl44MrfbndAGCdREhbU5mvCsJbW5QQNolYseesFlHNBO5Y+T3iOcU8nFsksY5lMtYhEmxxRA==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.14.1","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/connection-parser":"1.0.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.4.0_1779221406515_0.5864477731774209","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@bernierllc/rate-limiter","version":"0.4.1","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.4.1","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"c2bad83b212ba8d1a9aa5f5d0884aee914ac13d7","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.4.1.tgz","fileCount":38,"integrity":"sha512-tgP9l/Dck4Vu4svHqcPQLEXcBP1g3GeajspModQea4t3cNwv18tXCGGU3VMYlmfkyh/I3LjrJ1MHVyLw9WXHTQ==","signatures":[{"sig":"MEQCIEoucuHNTL6cmc4ntfLX5v4nrhtrvVEsQLyyQxeS1N4zAiAIEHaA1x/tIyL2GxDIELeDk0uSYS2zl7OUYH6JDEaMNA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":93900},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.4.1.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0a86725d-cfe4-4042-86ac-5ca8f8164f4a"}},"_resolved":"/home/runner/work/tools/tools/packages/core/rate-limiter/bernierllc-rate-limiter-0.4.1.tgz","_integrity":"sha512-tgP9l/Dck4Vu4svHqcPQLEXcBP1g3GeajspModQea4t3cNwv18tXCGGU3VMYlmfkyh/I3LjrJ1MHVyLw9WXHTQ==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.14.1","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/connection-parser":"1.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.4.1_1779233962973_0.5855645923815966","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@bernierllc/rate-limiter","version":"0.5.0","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.5.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"a16ad08e2f01334c643d0af00d3f8ff7e13b108b","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.5.0.tgz","fileCount":38,"integrity":"sha512-WAxNWS5AP0y2gIzUXDvELsAwtKrSRmuKr32GHezh8vZYyivFRBA8qMRjWNVKUm+zjoPyxlxaJqd4g8EZQSoQYQ==","signatures":[{"sig":"MEQCIG/ec7lCrQCRkpNi0SJkga4agyQcuzKhU/llKqg7cgZfAiA42eAZq44w3FPp1oKSlq7iLqIL+AhXkHU+bWkQvS4v2A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":93900},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.5.0.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0a86725d-cfe4-4042-86ac-5ca8f8164f4a"}},"_resolved":"/home/runner/work/tools/tools/packages/core/rate-limiter/bernierllc-rate-limiter-0.5.0.tgz","_integrity":"sha512-WAxNWS5AP0y2gIzUXDvELsAwtKrSRmuKr32GHezh8vZYyivFRBA8qMRjWNVKUm+zjoPyxlxaJqd4g8EZQSoQYQ==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.14.1","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/connection-parser":"1.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.5.0_1779241362675_0.8506053570372698","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@bernierllc/rate-limiter","version":"0.6.0","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","_id":"@bernierllc/rate-limiter@0.6.0","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"homepage":"https://github.com/bernierllc/tools#readme","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"dist":{"shasum":"b9f5d3fa99fdead759688e15eebaca89e5a4ec1c","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.6.0.tgz","fileCount":38,"integrity":"sha512-3kIcaqjl61QM+Y85wT6x3y3uC+LkmoSxLjiBfihbZc7fDJvo37dpizQ9+bhMFn/mPKluXtalQR0VseWY7Fwl2g==","signatures":[{"sig":"MEYCIQDfNpvjzpoPoRV2riOvBV/ASm0vz7wJkfImWd6vEMISDgIhAJ2R3/nzGx0hwDX/mqb/j0mjPO8veblIG0cNvyvr0xPW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":93900},"main":"dist/index.js","_from":"file:bernierllc-rate-limiter-0.6.0.tgz","types":"dist/index.d.ts","private":false,"scripts":{"dev":"tsc --watch","lint":"eslint src --ext .ts","test":"jest","build":"tsc","clean":"rm -rf dist","lint:fix":"eslint src --ext .ts --fix","test:run":"jest","test:coverage":"jest --coverage"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0a86725d-cfe4-4042-86ac-5ca8f8164f4a"}},"_resolved":"/home/runner/work/tools/tools/packages/core/rate-limiter/bernierllc-rate-limiter-0.6.0.tgz","_integrity":"sha512-3kIcaqjl61QM+Y85wT6x3y3uC+LkmoSxLjiBfihbZc7fDJvo37dpizQ9+bhMFn/mPKluXtalQR0VseWY7Fwl2g==","repository":{"url":"git+https://github.com/bernierllc/tools.git","type":"git","directory":"packages/core/rate-limiter"},"_npmVersion":"11.14.1","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@bernierllc/connection-parser":"1.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.37.0","ts-jest":"^29.0.5","typescript":"^5.0.0","@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/parser":"^5.57.0","@typescript-eslint/eslint-plugin":"^5.57.0"},"peerDependencies":{"redis":"^4.0.0","ioredis":"^5.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/rate-limiter_0.6.0_1779250111816_0.5851777989600653","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"@bernierllc/rate-limiter","version":"0.7.0","description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","main":"dist/index.js","types":"dist/index.d.ts","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"author":{"name":"Bernier LLC"},"license":"UNLICENSED","private":false,"dependencies":{"@bernierllc/connection-parser":"3.0.0"},"peerDependencies":{"ioredis":"^5.0.0","redis":"^4.0.0"},"peerDependenciesMeta":{"redis":{"optional":true},"ioredis":{"optional":true}},"devDependencies":{"@types/jest":"^29.5.0","@types/node":"^18.15.0","@typescript-eslint/eslint-plugin":"^5.57.0","@typescript-eslint/parser":"^5.57.0","eslint":"^8.37.0","jest":"^29.5.0","ts-jest":"^29.0.5","typescript":"^5.0.0"},"repository":{"type":"git","url":"git+https://github.com/bernierllc/tools.git","directory":"packages/core/rate-limiter"},"publishConfig":{"access":"public"},"scripts":{"build":"tsc","dev":"tsc --watch","test":"jest","test:run":"jest","test:coverage":"jest --coverage","lint":"eslint src --ext .ts","lint:fix":"eslint src --ext .ts --fix","clean":"rm -rf dist"},"_id":"@bernierllc/rate-limiter@0.7.0","bugs":{"url":"https://github.com/bernierllc/tools/issues"},"homepage":"https://github.com/bernierllc/tools#readme","_integrity":"sha512-vCS2BvgioTZpAWrg59qY0Z1qnpYpKEFzzBMLilrLWSdjI6Pi1IDppFQyGMS8XxxOD9FoI0YDYAKP9Wwgz63kiw==","_resolved":"/home/runner/work/tools/tools/packages/core/rate-limiter/bernierllc-rate-limiter-0.7.0.tgz","_from":"file:bernierllc-rate-limiter-0.7.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"11.14.1","dist":{"integrity":"sha512-vCS2BvgioTZpAWrg59qY0Z1qnpYpKEFzzBMLilrLWSdjI6Pi1IDppFQyGMS8XxxOD9FoI0YDYAKP9Wwgz63kiw==","shasum":"c7239e2b7d2dbbcf40173dde0fe2781634474c2a","tarball":"https://registry.npmjs.org/@bernierllc/rate-limiter/-/rate-limiter-0.7.0.tgz","fileCount":38,"unpackedSize":93900,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCRz4YjmC6n0e2Ns6Mb9MiQYUMzXz7EceVgbNGQga93aQIgM/O3vDeYPV/JsoghYevkXp8xkhdDcYoCGQyMgwrx0+s="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:0a86725d-cfe4-4042-86ac-5ca8f8164f4a"}},"directories":{},"maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/rate-limiter_0.7.0_1779303349737_0.721485971997718"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-04T22:57:35.337Z","modified":"2026-05-20T18:55:50.010Z","0.1.2":"2025-10-04T22:57:35.622Z","0.1.3":"2025-10-04T23:01:30.376Z","0.1.5":"2025-11-05T22:35:13.808Z","0.1.6":"2025-11-08T05:36:31.433Z","0.1.7":"2025-12-02T00:53:06.121Z","0.2.0":"2026-02-16T18:53:25.734Z","0.2.1":"2026-03-01T21:24:53.713Z","0.2.2":"2026-03-03T20:49:11.059Z","0.2.3":"2026-03-10T16:57:43.472Z","0.4.0":"2026-05-19T20:10:06.660Z","0.4.1":"2026-05-19T23:39:23.131Z","0.5.0":"2026-05-20T01:42:42.812Z","0.6.0":"2026-05-20T04:08:31.979Z","0.7.0":"2026-05-20T18:55:49.870Z"},"bugs":{"url":"https://github.com/bernierllc/tools/issues"},"author":{"name":"Bernier LLC"},"license":"UNLICENSED","homepage":"https://github.com/bernierllc/tools#readme","keywords":["rate-limiting","throttling","api-security","token-bucket","sliding-window","middleware","performance","security"],"repository":{"type":"git","url":"git+https://github.com/bernierllc/tools.git","directory":"packages/core/rate-limiter"},"description":"High-performance rate limiting with multiple algorithms (token bucket, sliding window) and storage backends (memory, Redis, database)","maintainers":[{"name":"alikhan410","email":"mczeyo@gmail.com"},{"name":"mkbernier","email":"mkbernier@gmail.com"}],"readme":"# @bernierllc/rate-limiter\n\nHigh-performance rate limiting with multiple algorithms and storage backends for Node.js applications.\n\n## Installation\n\n```bash\nnpm install @bernierllc/rate-limiter\n```\n\nFor Redis support, install the Redis client:\n```bash\n# Using node-redis\nnpm install redis\n\n# Or using ioredis\nnpm install ioredis\n```\n\n## Usage\n\n### Basic Rate Limiting\n\n```typescript\nimport { createRateLimiter } from '@bernierllc/rate-limiter';\n\n// Create a rate limiter with default token bucket algorithm\nconst rateLimiter = createRateLimiter({\n  algorithm: 'token-bucket',\n  limit: 100,\n  windowMs: 60000, // 1 minute\n  storage: 'memory'\n});\n\n// Check if request is allowed\nconst result = await rateLimiter.check('user-123');\n\nif (result.allowed) {\n  console.log(`Request allowed. ${result.remaining} requests remaining.`);\n} else {\n  console.log(`Rate limit exceeded. Try again in ${result.reset - Date.now()}ms.`);\n}\n```\n\n### Express Middleware\n\n```typescript\nimport express from 'express';\nimport { createRateLimiter, createExpressMiddleware } from '@bernierllc/rate-limiter';\n\nconst app = express();\n\n// Create rate limiter\nconst rateLimiter = createRateLimiter({\n  algorithm: 'sliding-window',\n  limit: 50,\n  windowMs: 60000,\n  storage: 'memory'\n});\n\n// Apply middleware\napp.use('/api', createExpressMiddleware(rateLimiter, {\n  keyGenerator: (req) => req.ip,\n  skip: (req) => req.method === 'GET' && req.path === '/health',\n  handler: (req, res) => {\n    res.status(429).json({ error: 'Too many requests' });\n  },\n  contextBuilder: (req) => ({\n    key: req.ip,\n    path: req.path,\n    method: req.method,\n    userId: req.user?.id\n  })\n}));\n```\n\n### Fastify Plugin\n\n```typescript\nimport fastify from 'fastify';\nimport { createRateLimiter, createFastifyPlugin } from '@bernierllc/rate-limiter';\n\nconst app = fastify();\n\nconst rateLimiter = createRateLimiter({\n  algorithm: 'fixed-window',\n  limit: 200,\n  windowMs: 60000\n});\n\napp.register(createFastifyPlugin(rateLimiter, {\n  points: request => (request.routerPath === '/upload' ? 5 : 1)\n}));\n```\n\n### Next.js Middleware\n\n```typescript\nimport type { NextApiHandler } from 'next';\nimport { createRateLimiter, createNextMiddleware } from '@bernierllc/rate-limiter';\n\nconst limiter = createRateLimiter({\n  algorithm: 'token-bucket',\n  limit: 120,\n  windowMs: 60000\n});\n\nconst rateLimit = createNextMiddleware(limiter);\n\nconst handler: NextApiHandler = async (req, res) => {\n  await rateLimit(req, res, async () => {\n    res.status(200).json({ ok: true, remaining: req.rateLimit?.remaining });\n  });\n};\n\nexport default handler;\n```\n\n### Redis Storage Backend\n\n```typescript\nimport { createRateLimiter } from '@bernierllc/rate-limiter';\nimport { createClient } from 'redis';\n\n// Using node-redis\nconst redisClient = createClient({ url: 'redis://localhost:6379' });\nawait redisClient.connect();\n\nconst rateLimiter = createRateLimiter({\n  algorithm: 'fixed-window',\n  limit: 1000,\n  windowMs: 3600000, // 1 hour\n  storage: {\n    type: 'redis',\n    client: redisClient,\n    keyPrefix: 'rl:'\n  }\n});\n```\n\n### Using ioredis\n\n```typescript\nimport { createRateLimiter } from '@bernierllc/rate-limiter';\nimport Redis from 'ioredis';\n\nconst redisClient = new Redis({\n  host: 'localhost',\n  port: 6379\n});\n\nconst rateLimiter = createRateLimiter({\n  algorithm: 'sliding-window',\n  limit: 500,\n  windowMs: 900000, // 15 minutes\n  storage: {\n    type: 'redis',\n    client: redisClient,\n    keyPrefix: 'api_limits:'\n  }\n});\n```\n\n### Database Storage Backend\n\n```typescript\nimport { createRateLimiter } from '@bernierllc/rate-limiter';\n\nconst adapter = {\n  get: async (key) => database.fetchRateLimit(key),\n  set: async (key, data, ttl) => database.upsertRateLimit(key, data, ttl),\n  increment: async (key, amount = 1) => database.incrementRateLimit(key, amount),\n  delete: async (key) => database.removeRateLimit(key),\n  expire: async (key, ttl) => database.setExpiry(key, ttl)\n};\n\nconst rateLimiter = createRateLimiter({\n  limit: 100,\n  windowMs: 60000,\n  storage: {\n    type: 'database',\n    adapter,\n    keyPrefix: 'api:'\n  }\n});\n```\n\n## API Reference\n\n### createRateLimiter(options)\n\nCreates a rate limiter instance with the specified configuration.\n\n#### Options\n\n- **limit** (`number`): Maximum number of requests allowed in the base configuration (required)\n- **windowMs** (`number`): Time window in milliseconds for the base configuration (required)\n- **algorithm?** (`string`): Algorithm to use for the base configuration (`'token-bucket'`, `'sliding-window'`, `'fixed-window'`, `'leaky-bucket'`)\n- **bucketSize? / refillRate? / tokensPerRequest? / precision? / leakRate?** (`number`): Algorithm-specific overrides for the base configuration\n- **storage?** (`string | object`): Storage backend configuration\n  - `'memory'` - In-memory storage (default)\n  - `{ type: 'redis', client: RedisClient | IORedisClient, keyPrefix?: string }` - Redis-backed storage\n  - `{ type: 'database', adapter: RateLimitDatabaseAdapter, keyPrefix?: string }` - Database-backed storage using custom adapter\n- **skipOnError?** (`boolean`): When `true`, allows traffic if the storage backend fails (default `false`)\n- **onLimitReached?** (`function`): Callback invoked when a limit is exceeded. Receives `(key, result, context)`\n- **customRules?** (`RateLimitRule[]`): Array of context-aware rules that can override algorithm, limits, or storage key prefix per request\n\n#### Returns\n\nReturns a `RateLimiter` instance with the following methods:\n\n- `check(key: string, options?: RateLimitCheckOptions): Promise<RateLimitResult>` - Check if request is allowed with optional points/context\n- `reset(key: string): Promise<boolean>` - Reset limits for a key\n- `getUsage(key: string): Promise<UsageInfo>` - Get current usage stats\n\n### createExpressMiddleware(rateLimiter, options?)\n\nCreates Express middleware from a rate limiter instance.\n\n#### Options\n\n- **keyGenerator?** (`function`): Function to generate rate limit key from request\n  - Default: `(req) => req.ip`\n\n- **skip?** (`function`): Function to skip rate limiting for certain requests\n  - Default: `() => false`\n\n- **handler?** (`function`): Custom handler when limit exceeded\n  - Default: Sends 429 status with standard message\n\n- **points?** (`number | function`): Number of points consumed per request or resolver function\n- **contextBuilder?** (`function`): Builds contextual metadata passed to custom rules and storage keys\n\n- **legacyHeaders?** (`boolean`): Include legacy `X-RateLimit-*` headers\n  - Default: `false`\n\n- **standardHeaders?** (`boolean`): Include standard `RateLimit-*` headers\n  - Default: `true`\n\n- **requestPropertyName?** (`string`): Property name to attach rate limit info to request\n  - Default: `'rateLimit'`\n\n### createFastifyPlugin(rateLimiter, options?)\n\nRegisters rate limiting as a Fastify `onRequest` hook.\n\n- Shares the same option signatures as `createExpressMiddleware`, including `points` and `contextBuilder`.\n- Automatically sets response headers using Fastify's reply helpers.\n\n### createNextMiddleware(rateLimiter, options?)\n\nProvides a drop-in middleware for Next.js API routes.\n\n- Supports the same options as `createExpressMiddleware`.\n- Attaches rate limit metadata to the request object and sets response headers via `setHeader`.\n\n### Rate Limit Algorithms\n\n#### Token Bucket\n- Allows bursts up to bucket capacity\n- Refills tokens at steady rate\n- Best for: APIs that can handle bursts\n\n#### Sliding Window\n- Precise rate limiting over moving time window\n- Higher memory usage but accurate\n- Best for: Strict rate enforcement\n\n#### Fixed Window\n- Simple time windows with reset points\n- Lower memory usage, allows bursts at window boundaries\n- Best for: Simple rate limiting needs\n\n#### Leaky Bucket\n- Smooths out bursts by processing at steady rate\n- Queues requests up to bucket capacity\n- Best for: Traffic shaping and smoothing\n\n## Configuration Examples\n\n### API Rate Limiting\n\n```typescript\n// Public API - 1000 requests per hour\nconst publicApi = createRateLimiter({\n  algorithm: 'sliding-window',\n  limit: 1000,\n  windowMs: 3600000,\n  storage: 'redis' // Distributed limiting\n});\n\n// Premium API - 5000 requests per hour  \nconst premiumApi = createRateLimiter({\n  algorithm: 'token-bucket',\n  limit: 5000,\n  windowMs: 3600000,\n  storage: 'redis'\n});\n```\n\n### Different Endpoints\n\n```typescript\n// Login attempts - strict limiting\nconst loginLimiter = createRateLimiter({\n  algorithm: 'fixed-window',\n  limit: 5,\n  windowMs: 900000, // 15 minutes\n  storage: 'memory'\n});\n\n// File uploads - burst handling\nconst uploadLimiter = createRateLimiter({\n  algorithm: 'token-bucket', \n  limit: 10,\n  windowMs: 60000, // 1 minute\n  storage: 'memory'\n});\n\napp.post('/login', createExpressMiddleware(loginLimiter));\napp.post('/upload', createExpressMiddleware(uploadLimiter));\n```\n\n### Advanced Middleware Configuration\n\n```typescript\nconst advancedMiddleware = createExpressMiddleware(rateLimiter, {\n  // Use user ID for authenticated users, IP for anonymous\n  keyGenerator: (req) => {\n    return req.user?.id || req.ip;\n  },\n  \n  // Skip rate limiting for admin users\n  skip: (req) => {\n    return req.user?.role === 'admin';\n  },\n  \n  // Custom response for rate limit exceeded\n  handler: (req, res, result) => {\n    const retryAfter = Math.ceil((result.reset - Date.now()) / 1000);\n\n    res.status(429).json({\n      error: 'Rate limit exceeded',\n      retryAfter,\n      limit: result.limit,\n      remaining: result.remaining\n    });\n  },\n\n  // Include both standard and legacy headers\n  standardHeaders: true,\n  legacyHeaders: true,\n\n  // Attach rate limit info to request for logging\n  requestPropertyName: 'rateLimitInfo',\n\n  // Provide additional context for custom rules or analytics\n  contextBuilder: (req) => ({\n    key: req.user?.id || req.ip,\n    userId: req.user?.id,\n    plan: req.user?.plan || 'free'\n  })\n});\n```\n\n## Integration Status\n\n### Logger Integration\n**Status**: Not applicable\n\n**Justification**: This is a pure utility package with no runtime state, side effects, or error conditions that require logging. The RateLimiter class is stateless and deterministic - it simply calculates rate limit status based on request counts and time windows. All errors are returned as structured results that calling code can handle, and there are no background operations, network calls, or state changes that would benefit from structured logging.\n\n**Pattern**: Pure functional utility - no logger integration needed.\n\n### NeverHub Integration\n**Status**: Not applicable\n\n**Justification**: This is a core utility package that provides rate limiting functionality. It does not participate in service discovery, event publishing, or service mesh operations. Rate limiting is a stateless utility operation that doesn't require service registration or discovery.\n\n**Pattern**: Core utility - no service mesh integration needed.\n\n### Docs-Suite Integration\n**Status**: Ready\n\n**Format**: TypeDoc-compatible JSDoc comments are included throughout the source code. All public APIs are documented with examples and type information.\n\n## Error Handling\n\nAll rate limiter methods return structured results instead of throwing errors:\n\n```typescript\nconst result = await rateLimiter.check('user-123');\n\nif (!result.allowed) {\n  // Handle rate limit exceeded\n  console.log(`Blocked: ${result.remaining} remaining, reset at ${result.reset}`);\n}\n```\n\nFor storage backend errors (Redis connection issues, etc.), the rate limiter will:\n1. Log the error (if logger integration is available)\n2. Fall back to allowing the request (fail-open policy)\n3. Return appropriate error information in the result\n\n## Performance\n\n- **Memory Storage**: Handles 100k+ requests/second per algorithm instance\n- **Redis Storage**: Performance depends on Redis server and network latency\n- **Algorithms**: Token bucket and fixed window are most performant\n- **Memory Usage**: Sliding window uses most memory, fixed window uses least\n\n## Testing\n\n```bash\n# Run all tests\nnpm test\n\n# Run tests with coverage\nnpm run test:coverage\n\n# Run specific test suite\nnpm test -- algorithms/token-bucket.test.ts\n```\n\n## See Also\n\n- [@bernierllc/connection-parser](../connection-parser) - Redis connection string parsing (used internally)\n- [@bernierllc/crypto-utils](../crypto-utils) - Secure token generation for rate limiting keys\n\n## License\n\nCopyright (c) 2025 Bernier LLC. All rights reserved.","readmeFilename":"README.md"}