{"id":21373181,"url":"https://github.com/nasriyasoftware/recaptcha","last_synced_at":"2026-01-06T14:05:29.523Z","repository":{"id":251572238,"uuid":"837820432","full_name":"nasriyasoftware/reCAPTCHA","owner":"nasriyasoftware","description":"A backend package for integrating Google reCAPTCHA to protect against bots and automated abuse.","archived":false,"fork":false,"pushed_at":"2024-08-04T06:16:46.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T05:20:12.925Z","etag":null,"topics":["anti-spam","backend","bot-protection","captcha","google","security","user-verif","verification"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@nasriya/recaptcha","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nasriyasoftware.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-04T06:12:17.000Z","updated_at":"2024-09-12T19:48:48.000Z","dependencies_parsed_at":"2024-08-04T06:30:45.069Z","dependency_job_id":null,"html_url":"https://github.com/nasriyasoftware/reCAPTCHA","commit_stats":null,"previous_names":["nasriyasoftware/recaptcha"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasriyasoftware%2FreCAPTCHA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasriyasoftware%2FreCAPTCHA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasriyasoftware%2FreCAPTCHA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nasriyasoftware%2FreCAPTCHA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nasriyasoftware","download_url":"https://codeload.github.com/nasriyasoftware/reCAPTCHA/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245563040,"owners_count":20635907,"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":["anti-spam","backend","bot-protection","captcha","google","security","user-verif","verification"],"created_at":"2024-11-22T08:26:06.719Z","updated_at":"2026-01-06T14:05:29.480Z","avatar_url":"https://github.com/nasriyasoftware.png","language":"TypeScript","readme":"\u003ca href=\"https://package.nasriya.net/recaptcha\"\u003e\u003cimg src=\"https://upload.wikimedia.org/wikipedia/commons/a/ad/RecaptchaLogo.svg\" height=\"100px\" alt=\"Google reCAPTCHA Logo\"\u003e\u003c/a\u003e\n\n# reCAPTCHA\n\n[![Static Badge](https://img.shields.io/badge/license-personal_use-blue?labelColor=%23585858\u0026color=%234ec920)](https://github.com/nasriyasoftware/reCAPTCHA?tab=License-1-ov-file) ![Repository Size](https://img.shields.io/github/repo-size/nasriyasoftware/reCAPTCHA.svg) ![Last Commit](https://img.shields.io/github/last-commit/nasriyasoftware/reCAPTCHA.svg) [![Status](https://img.shields.io/badge/Status-Stable-green.svg)](link-to-your-status-page)\n\n##### Visit us at [www.nasriya.net](https://nasriya.net).\n\nNasriya reCAPTCHA is a backend package for integrating Google reCAPTCHA to protect against bots and automated abuse.\n\nMade with ❤️ in **Palestine** 🇵🇸\n___\n## Overview\nSecure your applications with our comprehensive Google reCAPTCHA backend package. Designed for seamless integration, this package enables robust protection against bots and automated abuse by verifying user interactions with Google's reCAPTCHA service. Effortlessly manage account creations, logins, and other critical operations with enhanced security, ensuring a safer user experience.\n\n___\n## Quick Start Guide\nQuickly run a integrate Google reCAPTCHA with your server\n\n#### 1. Installation\n```shell\nnpm install @nasriya/reCAPTCHA\n```\n\n#### 2. Importing\nImporting in **ESM** modules\n```js\nimport reCAPTCHA from '@nasriya/reCAPTCHA';\n```\n\nImporting in **CommonJS** modules\n```js\nconst reCAPTCHA = require('@nasriya/reCAPTCHA').default;\n```\n___\n## Configurations\nTo configure the package, you must add two environment variables to your `.env` file:\n\n```env\nCAPTCHA_SITE_KEY=\u003csiteKey\u003e\nCAPTCHA_SECRET_KEY=\u003csiteSecret\u003e\n```\n___\n## Usage\nTo use the package, simply call the `authorize` method with the token.\n\n```ts\nconst isAuthorized: boolean = await reCAPTCHA.authorize(token);\n```\n\nHere's an example:\n```js\nimport hypercloud from '@nasriya/hypercloud';\nimport reCAPTCHA from '@nasriya/reCAPTCHA';\n\nconst server = hypercloud.server({ secure: true });\nconst router = server.Router();\n\nrouter.post('/api/v1/auth', async (req, res, next) =\u003e {\n    const body = req.body;\n\n    try {\n        const isAuthorized = await reCAPTCHA.authorize(body.token);\n\n        if (isAuthorized !== true) {\n            return res.pages.unauthorized();\n        }\n\n        // Continue processing the request\n    } catch {\n        res.pages.serverError();\n    }\n})\n```\n___\n## License\nPlease read the license from [here](https://github.com/nasriyasoftware/reCAPTCHA?tab=License-1-ov-file).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasriyasoftware%2Frecaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnasriyasoftware%2Frecaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnasriyasoftware%2Frecaptcha/lists"}