{"id":19825253,"url":"https://github.com/tes3awy/recaptcha-vanilla-js","last_synced_at":"2026-05-01T12:31:52.310Z","repository":{"id":99912541,"uuid":"412066693","full_name":"Tes3awy/recaptcha-vanilla-js","owner":"Tes3awy","description":"Google reCAPTCHA V2 Client-Side Validation Only with Vanilla JavaScript","archived":false,"fork":false,"pushed_at":"2021-09-30T13:35:05.000Z","size":2448,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T10:18:23.205Z","etag":null,"topics":["bootstrap5","bots","client-side","google-recaptcha-v2","javascript","tutorial"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/Tes3awy.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":"2021-09-30T13:02:32.000Z","updated_at":"2021-09-30T13:42:26.000Z","dependencies_parsed_at":"2023-05-11T01:00:14.578Z","dependency_job_id":null,"html_url":"https://github.com/Tes3awy/recaptcha-vanilla-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tes3awy/recaptcha-vanilla-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Frecaptcha-vanilla-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Frecaptcha-vanilla-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Frecaptcha-vanilla-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Frecaptcha-vanilla-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tes3awy","download_url":"https://codeload.github.com/Tes3awy/recaptcha-vanilla-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tes3awy%2Frecaptcha-vanilla-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32497810,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["bootstrap5","bots","client-side","google-recaptcha-v2","javascript","tutorial"],"created_at":"2024-11-12T11:07:06.869Z","updated_at":"2026-05-01T12:31:52.284Z","avatar_url":"https://github.com/Tes3awy.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![YouTube Views](https://img.shields.io/youtube/views/okaZ6OIqlzs?label=Views\u0026style=social)](https://youtu.be/okaZ6OIqlzs)\n![Forks](https://img.shields.io/github/forks/Tes3awy/recaptcha-vanilla-js?label=Total%20Forks\u0026style=flat-square)\n![Stars](https://img.shields.io/github/stars/Tes3awy/recaptcha-vanilla-js?label=Total%20Stars\u0026style=flat-square)\n![Issues](https://img.shields.io/github/issues/Tes3awy/recaptcha-vanilla-js?style=flat-square)\n[![License](https://img.shields.io/github/license/Tes3awy/recaptcha-vanilla-js?color=purple\u0026style=flat-square)](https://github.com/Tes3awy/recaptcha-vanilla-js/blob/main/LICENSE)\n\n# Google reCAPTCHA V2 Checkbox Client-Side Validation with Vanilla JavaScript\n\n\u003e **You can also check this [repo](https://github.com/Tes3awy/recaptcha-vanilla-php). It includes a complete sample code of how server-side \u0026amp; client-side Google reCATPCHA V2 validations work.**\n\n## Table of Contents\n\n1. [Installation](#installation)\n2. [Data Attributes](#data-attributes)\n3. [YouTube Tutorials](#youtube-tutorials)\n   1. [Client Side Validation](#client-side-validation)\n   2. [Server Side Validation](#server-side-validation)\n\n---\n\n### Installation\n\n```bash\n$ git clone https://github.com/Tes3awy/recaptcha-vanilla-js.git\n$ cd recaptcha-vanilla-js\n$ code . # Only if you are using VSCode\n```\n\nTo begin with, you **MUST** provide a sitekey in `data-sitekey` data attribute. This key is provided when you [create a reCAPTCHA V2 Checkbox](https://www.google.com/recaptcha/admin/create).\n\n### Data Attributes\n\n```js\ndata-sitekey=\"\u003cSITE_KEY\u003e\" (Required)\ndata-theme=\"\u003cTHEME\u003e\" (Optional. Allowed values: \"dark\" or \"light\". Default: light)\ndata-size=\"\u003cSIZE\u003e\" (Optional. Allowed values: \"normal\" or \"compact\". Default: normal)\ndata-callback=\"\u003cCALLBACK_FUNCTION\u003e\" (Optional)\ndata-expired-callback=\"\u003cEXPIRY_CALLBACK_FUNCTION\u003e\" (Optional)\n```\n\n\u003e I used [Bootstrap v5.1.1](https://getbootstrap.com/docs/5.1/getting-started/introduction/) as the front-end library. And the `bootstrap.min.css` was downloaded from [Bootswatch (Cosmos Theme)](https://bootswatch.com/cosmos/)\n\n---\n\n### YouTube Tutorials\n\n#### Client Side Validation\n\nYou can also watch the client-side validation tutorial on ![YouTube](assets/images/YouTube.png 'YouTube Logo')\n\n[![Client Side Validation](https://img.youtube.com/vi/okaZ6OIqlzs/0.jpg)](https://youtube.com/watch?v=okaZ6OIqlzs)\n\n---\n\n#### Server Side Validation\n\nI made a tutorial about the server-side validation on ![YouTube](assets/images/YouTube.png 'YouTube Logo'). Grab your cup of coffee and enjoy watching!\n\n[![Server Side Validation](https://img.youtube.com/vi/oJzGpDbeSuA/0.jpg)](https://youtube.com/watch?v=oJzGpDbeSuA)\n\n---\n\nFor reference, please visit [Google reCAPTCHA Developers Guide](https://developers.google.com/recaptcha/docs/verify).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Frecaptcha-vanilla-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftes3awy%2Frecaptcha-vanilla-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftes3awy%2Frecaptcha-vanilla-js/lists"}