{"id":16775051,"url":"https://github.com/masasron/adonis-recaptcha","last_synced_at":"2025-10-16T06:21:36.715Z","repository":{"id":80182779,"uuid":"82050371","full_name":"masasron/adonis-recaptcha","owner":"masasron","description":"Display and verify Google's Recaptcha on Adoins.","archived":false,"fork":false,"pushed_at":"2017-02-15T10:53:13.000Z","size":845,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T03:36:29.418Z","etag":null,"topics":["adonisjs","google","javascript","recaptcha","recaptcha-api"],"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/masasron.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}},"created_at":"2017-02-15T10:49:22.000Z","updated_at":"2022-02-26T22:22:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b0c4317-0525-4158-9993-5459bdd0d726","html_url":"https://github.com/masasron/adonis-recaptcha","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/masasron/adonis-recaptcha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masasron%2Fadonis-recaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masasron%2Fadonis-recaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masasron%2Fadonis-recaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masasron%2Fadonis-recaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/masasron","download_url":"https://codeload.github.com/masasron/adonis-recaptcha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/masasron%2Fadonis-recaptcha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279162127,"owners_count":26117116,"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","status":"online","status_checked_at":"2025-10-16T02:00:06.019Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["adonisjs","google","javascript","recaptcha","recaptcha-api"],"created_at":"2024-10-13T06:50:52.965Z","updated_at":"2025-10-16T06:21:36.701Z","avatar_url":"https://github.com/masasron.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Adonis Recaptcha\n\n### Installation\n\nTo get the latest version of Adonis Recaptcha, simply run\n\n```\nnpm install adonis-recaptcha --save\n```\n\nOnce Adonis Recaptcha is installed, you need to register the service provider.\nOpen up bootstrap/app.js and add the following to the providers key.\n\n```js\n// bootstrap/app.js\nconst providers = [\n  ...,\n  'adonis-recaptcha/providers/RecaptchaProvider',\n]\n```\n\nYou can register the Recaptcha facade in the aliases key of your bootstrap/app.js file if you like.\n\n```js\n// bootstrap/app.js\nconst aliases = {\n  ...,\n  Recaptcha: 'Adonis/Addons/Recaptcha'\n}\n```\n\nEnable the recaptcha middleware inside `app/Http/kernel.js` file.\n\n```js\n// app/Http/kernel.js\n\nconst namedMiddleware = {\n  ...,\n  recaptcha: 'Adonis/Middleware/Recaptcha'\n}\n```\n\nAdd your site key and secret to your .env file using the following keys:\n\n```\nRECAPTCHA_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\nRECAPTCHA_SITE_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n```\n\n(keys can be generated here https://www.google.com/recaptcha/admin)\n\n### Usage\n\n#### Middleware\n\nUse the recaptcha middleware to require catpcha solution for a given route.\n\n```js\nRoute.post('register','GuestController.register').middleware('recaptcha')\n```\n\n#### Display Recaptcha Widget\n\n```html\n{% set recaptcha = use('Recaptcha') %}\n\u003chtml\u003e\n\u003chead\u003e\n  \u003c!-- Generate script tag. --\u003e\n  {{ recaptcha.script | safe }}\n\u003c/head\u003e\n\u003cbody\u003e\n  \u003c!-- ... --\u003e\n  \u003cform\u003e\n    \u003c!-- Generate recaptcha field --\u003e\n    {{ recaptcha.field | safe }}\n    \u003cbutton\u003eSubmit\u003c/button\u003e\n  \u003c/form\u003e\n  \u003c!-- ... --\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasasron%2Fadonis-recaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmasasron%2Fadonis-recaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmasasron%2Fadonis-recaptcha/lists"}