{"id":20846324,"url":"https://github.com/requarks/express-brute-loki","last_synced_at":"2025-05-09T03:04:18.516Z","repository":{"id":73217748,"uuid":"66213343","full_name":"requarks/express-brute-loki","owner":"requarks","description":"A Loki.js store for Express-Brute","archived":false,"fork":false,"pushed_at":"2022-02-24T15:44:19.000Z","size":7,"stargazers_count":13,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-09T03:03:59.327Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/requarks.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}},"created_at":"2016-08-21T18:09:47.000Z","updated_at":"2024-11-15T16:53:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"e9a3243a-01f8-4332-9998-2d7f70e7d3f7","html_url":"https://github.com/requarks/express-brute-loki","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/requarks%2Fexpress-brute-loki","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/requarks%2Fexpress-brute-loki/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/requarks%2Fexpress-brute-loki/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/requarks%2Fexpress-brute-loki/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/requarks","download_url":"https://codeload.github.com/requarks/express-brute-loki/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253181436,"owners_count":21866993,"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":"2024-11-18T02:15:47.204Z","updated_at":"2025-05-09T03:04:18.486Z","avatar_url":"https://github.com/requarks.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# express-brute-loki\n\n[![NPM version](http://img.shields.io/npm/v/express-brute-loki.svg)](https://www.npmjs.com/package/express-brute-loki)\n[![Build Status](https://travis-ci.org/Requarks/connect-loki.svg?branch=master)](https://travis-ci.org/Requarks/express-brute-loki)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/0dfbd8126e5a4db6ab044df67957e4c5)](https://www.codacy.com/app/Requarks/express-brute-loki)\n[![Dependency Status](https://gemnasium.com/badges/github.com/Requarks/express-brute-loki.svg)](https://gemnasium.com/github.com/Requarks/express-brute-loki)\n[![Known Vulnerabilities](https://snyk.io/test/github/requarks/express-brute-loki/badge.svg)](https://snyk.io/test/github/requarks/express-brute-loki)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/requarks/express-brute-loki/blob/master/LICENSE)\n\n##### A Loki.js store for Express-Brute\n\n### Installation\n\n```shell\nnpm install express-brute-loki\n```\n\n### Usage\n\n```js\nvar ExpressBrute = require('express-brute'),\n    ExpressBruteLokiStore = require('express-brute-loki');\n\nvar store = new ExpressBruteLokiStore({\n    path: './brute.db' // See all available options below\n});\nvar bruteforce = new ExpressBrute(store);\n\napp.post('/auth',\n    bruteforce.prevent, // error 403 if we hit this route too often\n    function (req, res, next) {\n        res.send('Success!');\n    }\n);\n```\n\n### Options\n\nSetting the `path` to the database file is optional but recommended.\n\nAvailable parameters:\n\n-\t`path` Path to the database file. Defaults to `./brute-store.db`\n-\t`autosave` Set `false` to disable save to disk. Defaults to `true`\n- `ttl` Duration in seconds to keep entries. Set to `0` to disable TTL. Defaults to `0`\n-\t`logErrors` Whether or not to log client errors. Defaults to `false`\n\t-\tIf `true`, a default logging function (`console.error`) is provided.\n\t-\tIf a function, it is called anytime an error occurs (useful for custom logging)\n\t-\tIf `false`, no logging occurs.\n\n### License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frequarks%2Fexpress-brute-loki","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frequarks%2Fexpress-brute-loki","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frequarks%2Fexpress-brute-loki/lists"}