{"id":24518244,"url":"https://github.com/flasd/express-brute-firestore","last_synced_at":"2025-03-15T11:12:09.872Z","repository":{"id":34922731,"uuid":"190440540","full_name":"flasd/express-brute-firestore","owner":"flasd","description":"Firestore Store for express-brute","archived":false,"fork":false,"pushed_at":"2023-01-03T23:29:18.000Z","size":784,"stargazers_count":0,"open_issues_count":11,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-23T10:33:36.369Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flasd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-05T17:39:15.000Z","updated_at":"2019-06-05T18:29:14.000Z","dependencies_parsed_at":"2023-01-15T10:26:42.631Z","dependency_job_id":null,"html_url":"https://github.com/flasd/express-brute-firestore","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flasd%2Fexpress-brute-firestore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flasd%2Fexpress-brute-firestore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flasd%2Fexpress-brute-firestore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flasd%2Fexpress-brute-firestore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flasd","download_url":"https://codeload.github.com/flasd/express-brute-firestore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243719398,"owners_count":20336607,"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":[],"created_at":"2025-01-22T01:41:16.589Z","updated_at":"2025-03-15T11:12:09.848Z","avatar_url":"https://github.com/flasd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"express-brute-firestore\n===================\n\nA Firestore store for [express-brute](https://github.com/AdamPflug/express-brute).\n\n[![npm version](https://badge.fury.io/js/express-brute-firestore.svg)](https://www.npmjs.com/package/express-brute-firestore)\n[![npm downloads per month](https://img.shields.io/npm/dm/express-brute-firestore.svg)](https://www.npmjs.com/package/express-brute-firestore)\n\n## Installation\nInstall the latest version of express-brute-firestore:\n(note: this package requires NodeJs \u003e= 7.6)\n```\nnpm install express-brute-firestore --save\n\n// or, with yarn\nyarn add express-brute-firestore\n```\n\n## Usage\n```javascript\nconst express = require('express');\nconst ExpressBrute = require('express-brute');\nconst FirestoreStore = require('express-brute-firestore');\nconst admin = require('firebase-admin');\n\nadmin.initializeApp();\n\nconst app = express();\nconst store = new FirestoreStore(admin.firestore(), 'BRUTE_FORCE_COLLECTION');\n\nconst bruteGuard = new ExpressBrute(store);\n\napp.post('/unprotected-route', bruteGuard.prevent, (req, res) =\u003e { /* your usual logic */ });\n```\n\n### Copyright \u0026 License\n\nCopyright (c) 2019 [Marcel de Oliveira Coelho](https://github.com/husscode) under the [MIT License](https://github.com/husscode/cpf-check/blob/master/LICENSE.md). Go Crazy. :rocket:","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflasd%2Fexpress-brute-firestore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflasd%2Fexpress-brute-firestore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflasd%2Fexpress-brute-firestore/lists"}