{"id":16039553,"url":"https://github.com/pittica/gatsby-plugin-recaptcha","last_synced_at":"2025-10-08T04:12:09.982Z","repository":{"id":47644947,"uuid":"266591676","full_name":"pittica/gatsby-plugin-recaptcha","owner":"pittica","description":"ReCaptcha component for GatsbyJS.","archived":false,"fork":false,"pushed_at":"2021-11-06T18:45:15.000Z","size":687,"stargazers_count":8,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T01:02:03.072Z","etag":null,"topics":["gatsby","gatsby-plugin","gatsbyjs","pittica","recaptcha","recaptcha-v3","recaptcha-verification","security"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@pittica/gatsby-plugin-recaptcha","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/pittica.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}},"created_at":"2020-05-24T17:33:00.000Z","updated_at":"2022-10-18T15:05:05.000Z","dependencies_parsed_at":"2022-09-04T08:01:39.189Z","dependency_job_id":null,"html_url":"https://github.com/pittica/gatsby-plugin-recaptcha","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittica%2Fgatsby-plugin-recaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittica%2Fgatsby-plugin-recaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittica%2Fgatsby-plugin-recaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pittica%2Fgatsby-plugin-recaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pittica","download_url":"https://codeload.github.com/pittica/gatsby-plugin-recaptcha/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243902293,"owners_count":20366259,"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":["gatsby","gatsby-plugin","gatsbyjs","pittica","recaptcha","recaptcha-v3","recaptcha-verification","security"],"created_at":"2024-10-08T23:05:24.517Z","updated_at":"2025-10-08T04:12:04.944Z","avatar_url":"https://github.com/pittica.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pittica/gatsby-plugin-recaptcha\n\n![License](https://img.shields.io/github/license/pittica/gatsby-plugin-recaptcha)\n![Version](https://img.shields.io/github/package-json/v/pittica/gatsby-plugin-recaptcha)\n![Release](https://img.shields.io/github/v/release/pittica/gatsby-plugin-recaptcha)\n![React version](https://img.shields.io/github/package-json/dependency-version/pittica/gatsby-plugin-recaptcha/react)\n\n## Description\n\n[ReCaptcha](https://www.google.com/recaptcha/) component for [GatsbyJS](https://www.gatsbyjs.org/).\n\nThis plugin has been developed using [GatsbyJS](https://www.gatsbyjs.org/) tutorials.\n\n## Install\n\n[![npm](https://img.shields.io/npm/v/@pittica/gatsby-plugin-recaptcha)](https://www.npmjs.com/package/@pittica/gatsby-plugin-recaptcha)\n[![npm](https://img.shields.io/npm/dm/@pittica/gatsby-plugin-recaptcha)](https://www.npmjs.com/package/@pittica/gatsby-plugin-recaptcha)\n\n```shell\nnpm install @pittica/gatsby-plugin-recaptcha\n```\n\n## Usage\n\nImport the component classes.\n\n```javascript\nimport ReCaptcha from \"@pittica/gatsby-plugin-recaptcha\"\n```\n\nUse the component in React functions.\n\n```javascript\nimport React, { useState } from \"react\"\n\nexport default function ContactPage() {\n  const [submitted, setSubmitted] = useState(false)\n\n  const submit = (token) =\u003e {}\n\n  return (\n    \u003cdiv\u003e\n      \u003cReCaptcha\n        action=\"homepage\"\n        siteKey=\"RECAPTCHA_PUBLIC_KEY\"\n        onVerify={(token) =\u003e submit(token)}\n        submitted={submitted}\n      /\u003e\n      \u003cbutton onClick={() =\u003e setSubmitted(true)}\u003eSubmit\u003c/button\u003e\n    \u003c/div\u003e\n  )\n}\n```\n### Attributes\n\nThe components has some attributes.\n\n#### siteKey\n\n* Type: **string**\n* Required: **yes**\n\nReCaptcha public key.\n\n#### action\n\n* Type: **string**\n* Required: **yes**\n* Default value: **homepage**\n\nReCaptcha action. Common values are _homepage_ or _login_.\n\n#### id\n\n* Type: **string**\n* Required: **no**\n\nHTML ID for multiple ReCaptcha elements.\n\n#### badge\n\n* Type: **string**\n* Required: **no**\n* Values: **bottomright**, **bottomleft**, **inline**\n* Default value: **inline**\n\nBadge position and aspect.\n\n#### size\n\n* Type: **string**\n* Required: **no**\n* Values: **compact**, **normal**, **invisible**\n* Default value: **invisible**\n\nBadge size.\n\n#### callback\n\n* Type: **function**\n* Required: **no**\n\nValidation callback.\n\n#### theme\n\n* Type: **string**\n* Required: **no**\n* Values: **light**, **dark**\n* Default value: **light**\n\n## Copyright\n\n(c) 2020-2021, [Pittica S.r.l.](https://pittica.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpittica%2Fgatsby-plugin-recaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpittica%2Fgatsby-plugin-recaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpittica%2Fgatsby-plugin-recaptcha/lists"}