{"id":18290194,"url":"https://github.com/msyrus/no-captcha","last_synced_at":"2025-04-09T07:26:38.781Z","repository":{"id":24275731,"uuid":"27670190","full_name":"msyrus/No-Captcha","owner":"msyrus","description":null,"archived":false,"fork":false,"pushed_at":"2016-03-25T11:30:56.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T09:21:12.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/msyrus.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":"2014-12-07T12:57:11.000Z","updated_at":"2016-03-25T11:30:58.000Z","dependencies_parsed_at":"2022-07-24T01:02:30.202Z","dependency_job_id":null,"html_url":"https://github.com/msyrus/No-Captcha","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/msyrus%2FNo-Captcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msyrus%2FNo-Captcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msyrus%2FNo-Captcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msyrus%2FNo-Captcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msyrus","download_url":"https://codeload.github.com/msyrus/No-Captcha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247996775,"owners_count":21030521,"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-05T14:09:50.890Z","updated_at":"2025-04-09T07:26:38.746Z","avatar_url":"https://github.com/msyrus.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# No-Captcha\n\nNo-Captcha is a Node implementation for [Google No Captcha reCaptcha](https://developers.google.com/recaptcha/)\n\n## Installation\n\t$ npm install no-captcha\n\n## Usage\n\n```js\nvar NoCaptcha = require('no-captcha');\nnoCaptcha = new NoCaptcha(PUBLIC_KEY,PRIVATE_KEY);\n```\n\nYou can also pass a therd boolean parameter to specify the verifying url is secured or not. default if false\n\n### For No Captcha reCaptcha field in form\n```js\nnoCaptcha.toHTML()\n```\n\nYou can also pass an optional option object to toHTML() method\n+ **onload** method name to call after loading CAPTCHA\n+ **render** explicit | onload\n+ **hl** Language [code](https://developers.google.com/recaptcha/docs/language)\n+ **theme** dark | light default 'light'\n+ **type** text | audio default 'text'\n+ **size** normal | compact default 'normal'\n+ **tabindex** default 0\n+ **callback** callback method name that's executed when the user submits a successful CAPTCHA response.\n+ **expired-callback** callback method name that's executed when the recaptcha response expires and the user needs to solve a new CAPTCHA.\n\n### To verify\n\n```js\ndata = {\n\tresponse: req.body['g-recaptcha-response'],\n\tremoteip: req.connection.remoteAddress\t\t\t// Optional\n};\n\nnoCaptcha.verify(data, function(err, resp){\n\tif(err === null){\n\t\tres.send('Valid '+JSON.stringify(resp));\n\t}\n});\n```\n\n## Example\n\nHere is an Iced Coffee Script, Jade, Express [example](https://github.com/msyrus/No-Captcha/blob/master/examples/example.iced)\n\n## License\n\nNo-Captcha is available under the [BSD (2-Clause) License](http://opensource.org/licenses/BSD-2-Clause).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsyrus%2Fno-captcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsyrus%2Fno-captcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsyrus%2Fno-captcha/lists"}