{"id":16529314,"url":"https://github.com/cometkim/gatsby-plugin-turnstile","last_synced_at":"2026-01-23T09:36:27.216Z","repository":{"id":63455840,"uuid":"568021385","full_name":"cometkim/gatsby-plugin-turnstile","owner":"cometkim","description":"A Gatsby plugin to integrate Cloudflare turnstile client-side","archived":false,"fork":false,"pushed_at":"2026-01-19T16:47:50.000Z","size":2098,"stargazers_count":1,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-19T22:51:49.477Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/cometkim.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-11-19T07:37:47.000Z","updated_at":"2023-03-20T14:17:56.000Z","dependencies_parsed_at":"2023-12-16T01:25:30.352Z","dependency_job_id":"c181d5ac-2180-44e4-bdca-6ca031040576","html_url":"https://github.com/cometkim/gatsby-plugin-turnstile","commit_stats":{"total_commits":28,"total_committers":2,"mean_commits":14.0,"dds":0.4642857142857143,"last_synced_commit":"9e16f55dbdbaef58da00c4c2a7352b4a7e91df26"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/cometkim/gatsby-plugin-turnstile","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Fgatsby-plugin-turnstile","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Fgatsby-plugin-turnstile/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Fgatsby-plugin-turnstile/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Fgatsby-plugin-turnstile/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cometkim","download_url":"https://codeload.github.com/cometkim/gatsby-plugin-turnstile/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Fgatsby-plugin-turnstile/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28686655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-10-11T17:44:27.913Z","updated_at":"2026-01-23T09:36:27.178Z","avatar_url":"https://github.com/cometkim.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-plugin-turnstile\n\n[![NPM Package](https://img.shields.io/npm/v/gatsby-plugin-turnstile)](https://www.npmjs.com/package/gatsby-plugin-turnstile)\n[![License - MIT](https://img.shields.io/github/license/cometkim/gatsby-plugin-turnstile)](#LICENSE)\n\nA Gatsby plugin to easily integrate [Cloudflare Turnstile](https://developers.cloudflare.com/turnstile/) client-side.\n\n## Installation\n\n```bash\nyarn add gatsby-plugin-turnstile\n```\n\nand add it to your `gatsby-config.js` with your Turnstile site key.\n\n```js\n{\n  plugins: [\n    {\n      resolve: 'gatsby-plugin-turnstile',\n      options: {\n        siteKey: `${YOUR_SITE_KEY}`,\n      },\n    },\n  ]\n}\n```\n\n## Retrieve Site Key\n\nYou can use site key you set to gatsby-config. It's provided via static query under the hood.\n\n```js\nimport { useTurnstileSiteKey } from 'gatsby-plugin-turnstile/src';\n\nconst mySiteKey = useTurnstileSiteKey();\n```\n\nUse this key to protect your form.\n\n## Use Turnstile API\n\nThis plugin provide loader and type definitions for [`window.turnstile` API](https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#explicitly-render-the-turnstile-widget).\n\nYou can await to `window.turnstile` ready state. For example,\n\n```js\nawait Promise.race(\n  window.turnstileReady, // Promise object set by the plugin\n  new Promise(res =\u003e setTimeout(res, 1000)),\n);\n```\n\n## Use Component API\n\n### `\u003cTurnstileImplicitFormInput\u003e`\n\nTurnstile implicit form injection is not availiable for Gatsby project beacuse of SSR hydration mismatch.\n\nSo this plugin handle effect and client-side rendering for\n\n```js\nimport { TurnstileImplicitFormInput } from 'gatsby-plugin-turnstile/src';\n```\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometkim%2Fgatsby-plugin-turnstile","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcometkim%2Fgatsby-plugin-turnstile","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometkim%2Fgatsby-plugin-turnstile/lists"}