{"id":16194407,"url":"https://github.com/muniftanjim/express-brute-lowdb","last_synced_at":"2026-05-05T21:33:47.650Z","repository":{"id":66188081,"uuid":"132210616","full_name":"MunifTanjim/express-brute-lowdb","owner":"MunifTanjim","description":"A lowdb storage adapter for express-brute middleware","archived":false,"fork":false,"pushed_at":"2018-05-09T10:50:35.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T11:49:03.295Z","etag":null,"topics":["express","express-brute","lowdb","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/MunifTanjim.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2018-05-05T03:18:46.000Z","updated_at":"2018-05-09T10:50:36.000Z","dependencies_parsed_at":"2023-05-04T18:33:33.339Z","dependency_job_id":null,"html_url":"https://github.com/MunifTanjim/express-brute-lowdb","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"356ae8435cb1ed09a589a5bb5d6d452b9dcce9a5"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MunifTanjim%2Fexpress-brute-lowdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MunifTanjim%2Fexpress-brute-lowdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MunifTanjim%2Fexpress-brute-lowdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MunifTanjim%2Fexpress-brute-lowdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MunifTanjim","download_url":"https://codeload.github.com/MunifTanjim/express-brute-lowdb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247683841,"owners_count":20978948,"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","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":["express","express-brute","lowdb","nodejs"],"created_at":"2024-10-10T08:19:15.409Z","updated_at":"2026-05-05T21:33:47.612Z","avatar_url":"https://github.com/MunifTanjim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GitHub release](https://img.shields.io/github/release/MunifTanjim/express-brute-lowdb.svg?style=for-the-badge)](https://github.com/MunifTanjim/express-brute-lowdb/releases/latest)\n[![GitHub Release Date](https://img.shields.io/github/release-date/MunifTanjim/express-brute-lowdb.svg?style=for-the-badge)](https://github.com/MunifTanjim/express-brute-lowdb/releases)\n[![license](https://img.shields.io/github/license/MunifTanjim/express-brute-lowdb.svg?style=for-the-badge)](https://github.com/MunifTanjim/express-brute-lowdb/blob/master/LICENSE)\n\n# express-brute-lowdb\n\nA [lowdb](https://github.com/typicode/lowdb) storage adapter for [express-brute](https://github.com/AdamPflug/express-brute) middleware\n\n## Installation\n\nvia **npm**:\n\n```shell\n$ npm install express-brute-lowdb\n```\n\nvia **yarn**:\n\n```shell\n$ yarn add express-brute-lowdb\n```\n\n## Usage\n\n```js\nconst ExpressBrute = require('express-brute')\nconst LowdbStore = require('express-brute-lowdb');\n\nconst store = new LowdbStore();\nconst bruteforce = new ExpressBrute(store);\n\napp.post('/auth',\n  bruteforce.prevent,\n  (req, res, next) =\u003e {\n    res.send('Success!')\n  }\n);\n```\n\n## Options\n\nAvailable options:\n\n|  Name         |  Type      |  Description                          |  Required\n| ------------- | ---------- |-------------------------------------- | ----------\n| `prefix`      | `String`   | Prefix for each lowdb key             | _false_\n| `adapter`     | `Function` | lowdb adapter Constructor             | _false_\n| `adapterArgs` | `Array`    | Arguments for adapter Constructor     | _false_\n| `rootKey`     | `String`   | name for database objects's root key  | _false_\n\nExample:\n\n```js\nconst Memory = require('lowdb/adapters/Memory') // or\nconst FileSync = require('lowdb/adapters/FileSync')\n\n// defaults:\nconst options = {\n  prefix: '',\n  adapter: Memory, // only `Memory` \u0026 `FileSync` adapters are currently supported\n  adapterArgs: ['express-brute.json'],\n  rootKey: 'express-brute'\n}\n\nconst store = new LowdbStore(options);\n```\n\n**N.B.**: lowdb's `Memory` adapter is not suitable for production usage\n\n### Useful Links\n\n- [lowdb Adapters API](https://github.com/typicode/lowdb#adapters-api)\n\n## Changelog\n\n[Changelog for express-brute-lowdb](https://github.com/MunifTanjim/express-brute-lowdb/blob/master/CHANGELOG.md)\n\n## License\n\nLicensed under the MIT License. Check the [LICENSE](https://github.com/MunifTanjim/express-brute-lowdb/blob/master/LICENSE) file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuniftanjim%2Fexpress-brute-lowdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuniftanjim%2Fexpress-brute-lowdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuniftanjim%2Fexpress-brute-lowdb/lists"}