{"id":47728317,"url":"https://github.com/borrowdev/borrow","last_synced_at":"2026-04-02T21:02:45.091Z","repository":{"id":288952862,"uuid":"964187657","full_name":"borrowdev/borrow","owner":"borrowdev","description":"Open-Source Tools for Web Developers ⇀","archived":false,"fork":false,"pushed_at":"2026-03-29T00:06:00.000Z","size":647,"stargazers_count":34,"open_issues_count":3,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T01:47:28.608Z","etag":null,"topics":["api","javascript","serverless","toolkit","typescript"],"latest_commit_sha":null,"homepage":"https://borrow.dev","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/borrowdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-10T20:29:27.000Z","updated_at":"2026-03-29T00:08:28.000Z","dependencies_parsed_at":"2025-04-21T11:46:00.887Z","dependency_job_id":null,"html_url":"https://github.com/borrowdev/borrow","commit_stats":null,"previous_names":["borrowdev/borrow"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/borrowdev/borrow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borrowdev%2Fborrow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borrowdev%2Fborrow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borrowdev%2Fborrow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borrowdev%2Fborrow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/borrowdev","download_url":"https://codeload.github.com/borrowdev/borrow/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/borrowdev%2Fborrow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31316128,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","javascript","serverless","toolkit","typescript"],"created_at":"2026-04-02T21:02:42.184Z","updated_at":"2026-04-02T21:02:45.080Z","avatar_url":"https://github.com/borrowdev.png","language":"TypeScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://borrow.dev/opengraph.png\" alt=\"Borrow OpenGraph Image\" width=\"500\" height=\"250\" /\u003e\n\u003c/div\u003e\n\n\u003ch3 align=\"center\"\u003e⇀ DX-First Tools for 10x Developers ⇀\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eSimple, open-source, self-hostable\u003c/b\u003e\u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\" style=\"font-size:12px\"\u003e\n  MIT license, 0 lock-in and built with ❤️ by \u003ca href=\"https://borrow.dev\"\u003eBorrow\u003c/a\u003e\n\u003c/p\u003e\n\n## 🔑 Authentication\n\n[Follow this guide to authenticate if using our managed service.](https://borrow.dev/docs/limiter/quick-start#authentication)\n\n## 📚 Documentation\n\n[Read the full documentation for Borrow.](https://borrow.dev/docs)\n\n## 🌎 Borrow Ms\n\nMeasure the latency of your API around the world in 1 command.\n\n### Usage\n\n```bash\ncargo install borrow-dev\n\nexport BORROW_API_KEY=your_borrow_api_key\n\nborrow ms https://api.example.com/data \\\n  -m POST \\\n  --header \"Authorization: Bearer token\" \\\n  --header \"Content-Type: application/json\" \\\n  -d '{\"key\": \"value\"}'\n```\n\n## 🚪 Borrow Limiter\n\nSelf-hostable rate limiting API for protecting regular service usage.\n\n### Usage\n\nLet's use the [fixed window](https://borrow.dev/docs/limiter/algorithms#fixed-window) algorithm to rate limit our login endpoint to 10 requests per minute.\n\n```javascript\nimport { limiter } from \"@borrowdev/limiter\";\n\nconst { success, timeLeft } = await limiter(\n  {\n    key: \"my-limiter-id\",\n    userId: \"current-user-id\",\n  },\n  {\n    limiters: [\n      {\n        maxRequests: 10,\n        interval: \"minute\",\n        type: \"fixed\",\n      },\n    ],\n  },\n);\nif (!success) {\n  return {\n    message:\n      \"Rate limit exceeded.\" + timeLeft !== null\n        ? ` You can try again in ${timeLeft} seconds.`\n        : \"\",\n  };\n}\n```\n\n### Self-host\n\nTo self-host the Limiter API, follow the [self-hosting guide](https://borrow.dev/docs/limiter/self-hosting).\n\n## 🛠 Borrow CLI\n\n### Install\n\n```bash\ncargo install borrow-dev\n```\n\n### Borrow Start\n\nBorrow Start is a command-line tool that helps you quickly set up common boilerplate code with pre-defined templates and placeholders.\n\nTemplates are downloaded from the [Borrow registry](https://github.com/borrowdev/registry), or you can create your own templates\nand refer to them locally by using the `local:` prefix before `\u003ctemplate\u003e`.\n\n#### Usage\n\n```bash\n# Download and install a template\nborrow start new -t \u003ctemplate\u003e -o \u003coutput_dir\u003e\n# Delete a template from the cache\nborrow start del -t \u003ctemplate\u003e\n```\n\n#### Example\n\n```bash\nborrow start new -t supabase-proxy -o ~/my-awesome-project\n```\n\n#### Roadmap\n\n- [ ] Add support for self-hosted GitHub templates.\n- [ ] Add support for package metadata.\n- [ ] Add support for sandboxed template code execution with hooks.\n- [ ] Add support for per-file config with frontmatter.\n- [ ] Write documentation for how to create your own templates.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborrowdev%2Fborrow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborrowdev%2Fborrow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborrowdev%2Fborrow/lists"}