{"id":13781466,"url":"https://github.com/lookinlab/adonis-recaptcha2","last_synced_at":"2026-01-31T20:07:38.783Z","repository":{"id":57173614,"uuid":"149427580","full_name":"lookinlab/adonis-recaptcha2","owner":"lookinlab","description":"Google reCAPTCHA for AdonisJS","archived":false,"fork":false,"pushed_at":"2021-07-08T08:44:47.000Z","size":86,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-09-02T09:58:28.392Z","etag":null,"topics":["adonis-captcha","adonis-recaptcha","adonisjs","captcha","google-recaptcha","recaptcha2"],"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/lookinlab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-19T09:40:43.000Z","updated_at":"2025-01-18T14:56:57.000Z","dependencies_parsed_at":"2022-08-24T13:31:10.384Z","dependency_job_id":null,"html_url":"https://github.com/lookinlab/adonis-recaptcha2","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/lookinlab/adonis-recaptcha2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookinlab%2Fadonis-recaptcha2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookinlab%2Fadonis-recaptcha2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookinlab%2Fadonis-recaptcha2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookinlab%2Fadonis-recaptcha2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lookinlab","download_url":"https://codeload.github.com/lookinlab/adonis-recaptcha2/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookinlab%2Fadonis-recaptcha2/sbom","scorecard":{"id":598684,"data":{"date":"2025-08-11","repo":{"name":"github.com/lookinlab/adonis-recaptcha2","commit":"d3f143395eb94c2ffafafd422cf10163b9dbe1a1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T23:48:33.966Z","repository_id":57173614,"created_at":"2025-08-20T23:48:33.966Z","updated_at":"2025-08-20T23:48:33.966Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28952600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T18:30:42.805Z","status":"ssl_error","status_checked_at":"2026-01-31T18:30:19.593Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["adonis-captcha","adonis-recaptcha","adonisjs","captcha","google-recaptcha","recaptcha2"],"created_at":"2024-08-03T18:01:26.267Z","updated_at":"2026-01-31T20:07:38.765Z","avatar_url":"https://github.com/lookinlab.png","language":"TypeScript","funding_links":[],"categories":["Third-party Service Integration","Packages"],"sub_categories":[],"readme":"# Adonis ReCAPTCHA v2\n\n[![npm-image]][npm-url] [![license-image]][license-url] [![typescript-image]][typescript-url]\n\nVerifier for Google ReCAPTCHA v2. Not working with ReCAPTCHA Enterprise or v3\n\nDocs [for **Adonis v4**](https://github.com/lookinlab/adonis-recaptcha2/tree/v1)\n\n## Installation\n\nMake sure to install it using `npm` or `yarn`.\n\n```bash\n# npm\nnpm i adonis-recaptcha2\nnode ace configure adonis-recaptcha2\n\n# yarn\nyarn add adonis-recaptcha2\nnode ace configure adonis-recaptcha2\n```\n\n## How to use\n\n### Step 1: Get secret and site keys\n\nYou need to receive your `siteKey` and `secretKey` for your domain from [Google reCAPTCHA v3 Admin Console](https://www.google.com/recaptcha/admin)\n\nLogin and Follow the steps on this page to include the reCAPTCHA on your website.\n\n### Step 2: Initialization\n\n- Make sure to register the provider inside `.adonisrc.json` file.\n\n```json\n{\n  \"providers\": [\n    \"...other packages\",\n    \"adonis-recaptcha2\"\n  ] \n}\n```\n\n- Add variables to `.env` file of project.\n\n```txt\n...\nRECAPTCHA_SITE_KEY=YOUR_KEY\nRECAPTCHA_SECRET_KEY=YOUR_KEY\n```\n\n- Add fields to `env.ts` file of project.\n\n```ts\nimport Env from '@ioc:Adonis/Core/Env'\n\nexport default Env.rules({\n  // ...\n  RECAPTCHA_SITE_KEY: Env.schema.string(),\n  RECAPTCHA_SECRET_KEY: Env.schema.string(),\n})\n```\n\n- Set options in `config/recaptcha.ts`.\n\n```ts\nimport Env from '@ioc:Adonis/Core/Env'\nimport { RecaptchaConfig } from '@ioc:Adonis/Addons/Recaptcha2'\n\nconst recaptchaConfig: RecaptchaConfig = {\n  // ...\n  siteKey: Env.get('RECAPTCHA_SITE_KEY'),\n  // ...\n  secretKey: Env.get('RECAPTCHA_SECRET_KEY'),\n}\nexport default recaptchaConfig\n```\n\n### Step 3: Add named middleware to `start/kernel.ts`\n\n```ts\nServer.middleware.registerNamed({\n  recaptcha: () =\u003e import('App/Middleware/Recaptcha')\n})\n```\n\n### Step 4: Add middleware for `start/routes.ts`\n\nExample:\n```ts\nRoute.post('login', 'AuthController.login').middleware('recaptcha')\n```\n\nThis middleware will check `g-recaptcha-response` field in body request\n```json\n{\n  \"login\": \"admin\",\n  \"password\": \"admin\",\n  \"g-recaptcha-response\": \"osjoiadjaoisdjasijda...\"\n}\n```\n\u003e Field `g-recaptcha-response` it is Google reCAPTCHA v2 response\n\n## Use in Views\n\u003e **Note:** Required [View](https://docs.adonisjs.com/guides/views/introduction) (@adonisjs/view)\n\n### Step 1: Enable `views` in `config/recaptcha.ts`\n```ts\nconst recaptchaConfig: RecaptchaConfig = {\n  // ... \n  views: true\n}\n```\n\n### Step 2: Use `recaptcha()` function in templates\n```html\n...\n\u003chead\u003e\n  ...\n  {{ recaptcha('script') }}\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003csection\u003e\n    ...\n    \u003cform action=\"/login\"\u003e\n      ...\n      {{ recaptcha('form') }}\n    \u003c/form\u003e\n  \u003c/section\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n[npm-image]: https://img.shields.io/npm/v/adonis-recaptcha2?logo=npm\u0026style=for-the-badge\n[npm-url]: https://www.npmjs.com/package/adonis-recaptcha2\n\n[license-image]: https://img.shields.io/npm/l/adonis-recaptcha2?style=for-the-badge\u0026color=blueviolet\n[license-url]: https://github.com/lookinlab/adonis-recaptcha2/blob/develop/LICENSE.md\n\n[typescript-image]: https://img.shields.io/npm/types/adonis-recaptcha2?color=294E80\u0026label=%20\u0026logo=typescript\u0026style=for-the-badge\n[typescript-url]: https://github.com/lookinlab\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flookinlab%2Fadonis-recaptcha2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flookinlab%2Fadonis-recaptcha2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flookinlab%2Fadonis-recaptcha2/lists"}