{"id":27075859,"url":"https://github.com/soumyadas15/lock","last_synced_at":"2026-04-30T08:34:52.355Z","repository":{"id":286260616,"uuid":"960884732","full_name":"Soumyadas15/lock","owner":"Soumyadas15","description":"Lock is a drop-in security toolkit designed for modern applications. Whether you're building APIs, serverless functions, or microservices, Lock helps you secure your routes with a powerful, plug-and-play middleware.","archived":false,"fork":false,"pushed_at":"2025-04-05T22:17:40.000Z","size":274,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-12T06:41:26.620Z","etag":null,"topics":["api","backend","express","microservice","nextjs","nodejs","security","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Soumyadas15.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-05T09:21:19.000Z","updated_at":"2025-04-05T22:17:44.000Z","dependencies_parsed_at":"2025-04-09T20:06:42.913Z","dependency_job_id":"89f63599-b2cb-4cd2-987d-92e6989f361d","html_url":"https://github.com/Soumyadas15/lock","commit_stats":null,"previous_names":["soumyadas15/lock"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Soumyadas15/lock","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2Flock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2Flock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2Flock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2Flock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Soumyadas15","download_url":"https://codeload.github.com/Soumyadas15/lock/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Soumyadas15%2Flock/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005411,"owners_count":26083883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","backend","express","microservice","nextjs","nodejs","security","typescript"],"created_at":"2025-04-06T00:18:11.661Z","updated_at":"2025-10-10T21:11:57.160Z","avatar_url":"https://github.com/Soumyadas15.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"logo.png\" alt=\"Lock Cover\" /\u003e\n\u003c/p\u003e\n\n# Lock 🛡️\n\n_Modular, modern security middleware for web APIs and backend frameworks._\n\n---\n\nLock is a **drop-in security toolkit** designed for modern applications. Whether you're building APIs, serverless functions, or microservices, Lock helps you secure your routes with powerful and composable middleware modules like:\n\n- 🔒 **Rate limiting**\n- 🌍 **Geo blocking**\n- 🤖 **Bot detection**\n- 🧠 **VPN and proxy filtering**\n- 📦 **Payload inspection**\n- 🧬 **CSRF protection**\n\n---\n\n## ✨ Features\n\n- ✅ Plug-and-play modules\n- 🧱 Composable middleware engine\n- ⚡️ Zero-config defaults, full-config control\n- 🎯 Framework support: **Express**, **Next.js (App \u0026 Pages routers)**\n- 🌐 Distributed storage support (Redis, Upstash)\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install @lock-sdk/main\n```\n\n## 🚀 Quick Start\n\n```ts\nimport { secure, rateLimit } from '@lock-sdk/main';\n\nconst middleware = secure()(\n  rateLimit({\n    limit: 100,\n    windowMs: 60_000,\n  })\n);\n```\n\n### 💡 In Express\n\n```ts\napp.use('/api', middleware);\n```\n\n### 💡 In Next.js App Router\n\n```ts\nexport const GET = secureAppRoute(handler)(rateLimit({ limit: 10, windowMs: 10_000 }));\n```\n\n## ✨ Check out modules\n\n✅ [Bot Detection](https://github.com/Soumyadas15/lock/tree/main/packages/modules/bot-detection)\n✅ [CSRF](https://github.com/Soumyadas15/lock/tree/main/packages/modules/csrf)\n✅ [Geo-Block](https://github.com/Soumyadas15/lock/tree/main/packages/modules/geo-block)\n✅ [IP Filter](https://github.com/Soumyadas15/lock/tree/main/packages/modules/ip-filter)\n✅ [Payload Guard](https://github.com/Soumyadas15/lock/tree/main/packages/modules/payload-guard)\n✅ [Rate Limit](https://github.com/Soumyadas15/lock/tree/main/packages/modules/rate-limit)\n✅ [VPN Detection](https://github.com/Soumyadas15/lock/tree/main/packages/modules/vpn-detection)\n\n## 🧩 Framework Support\n\n✅ Express / Node HTTP\n\n✅ Next.js\n\n🧪 Fastify, H3, and others (coming soon)\n\n## 🛠 Contributing\n\nWe love contributions! Read our [CONTRIBUTE.md](CONTRIBUTE.md) to get started.\n\n## 📄 License\n\nMIT — © 2025 Lock\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoumyadas15%2Flock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoumyadas15%2Flock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoumyadas15%2Flock/lists"}