{"id":15440226,"url":"https://github.com/horiuchi/passkey-cloudflare","last_synced_at":"2025-07-14T05:34:55.678Z","repository":{"id":208927034,"uuid":"722811853","full_name":"horiuchi/passkey-cloudflare","owner":"horiuchi","description":"Example of running passkey on cloudflare","archived":false,"fork":false,"pushed_at":"2023-12-28T07:59:02.000Z","size":606,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T20:54:28.826Z","etag":null,"topics":["cloudflare-pages","passkey","remix"],"latest_commit_sha":null,"homepage":"https://passkey-cloudflare.pages.dev/","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/horiuchi.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}},"created_at":"2023-11-24T02:30:52.000Z","updated_at":"2025-03-13T04:22:00.000Z","dependencies_parsed_at":"2023-11-30T09:29:54.602Z","dependency_job_id":"a7ff4bc9-8c16-4043-b93e-7c352a0d8a5f","html_url":"https://github.com/horiuchi/passkey-cloudflare","commit_stats":null,"previous_names":["horiuchi/passkey-cloudflare"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/horiuchi/passkey-cloudflare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horiuchi%2Fpasskey-cloudflare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horiuchi%2Fpasskey-cloudflare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horiuchi%2Fpasskey-cloudflare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horiuchi%2Fpasskey-cloudflare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/horiuchi","download_url":"https://codeload.github.com/horiuchi/passkey-cloudflare/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horiuchi%2Fpasskey-cloudflare/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265245987,"owners_count":23734109,"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":["cloudflare-pages","passkey","remix"],"created_at":"2024-10-01T19:11:31.331Z","updated_at":"2025-07-14T05:34:55.654Z","avatar_url":"https://github.com/horiuchi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example for Passkey authentication with Cloudflare Pages\n\n- [Demo](https://passkey-cloudflare.pages.dev/)\n\nTo log in with Passkey, you need to create an account once you login with your Github account.\nAfter logging in, you will be able to log in by adding Passkey.\n\n## Stack\n\n- TypeScript\n- Remix\n- cloudflare pages\n- cloudflare KV workers\n- cloudflare D1\n- drizzle-orm\n- simplewebauthn\n\n## Setup\n\n### Create a Cloudflare account\n\nGo to [Cloudflare](https://dash.cloudflare.com/sign-up) and create an account.\n\n### Create a Cloudflare Pages application\n\nGo to [Cloudflare Pages](https://dash.cloudflare.com/?to=/:account/workers-and-pages) and create a application.\n\n```bash\n# setup wrangler command\nnpx wrangler login\n```\n\n### Create a Cloudflare KV namespace\n\nCreate a KV namespace for session storage.\n\n```bash\nnpx wrangler kv:namespace create session\nnpx wrangler kv:namespace create session --preview\n```\n\nAnd add the following to `wrangler.toml`.\n\n```toml\nname = \"\u003cyour application name\u003e\"\n\n...\n\n[[kv_namespaces]]\nbinding = \"KV\"\nid = \"\u003cyour kv namespace id\u003e\"\npreview_id = \"\u003cyour kv namespace preview_id\u003e\"\n```\n\n### Create a Cloudflare D1 database\n\nCreate a D1 database.\n\n```bash\nnpx wrangler d1 create \u003cyour database name\u003e\n```\n\nAnd add the following to `wrangler.toml`.\n\n```toml\n...\n\n[[d1_databases]]\nbinding = \"DB\"\ndatabase_name = \"\u003cyour database name\u003e\"\ndatabase_id = \"\u003cyour database id\u003e\"\n```\n\n### Initialize migration files\n\n```bash\nrm -rf migrations/*\nnpm run migrate:create\nnpm run migrate:apply # apply to local sqlite database\n```\n\n### Start development server\n\n```bash\nnpm run dev\nopen http://localhost:8788/\n```\n\n## Development\n\nDeploy to Cloudflare Pages.\n\n```bash\nnpm run migrate:apply-prod\nnpm run deploy-prod\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoriuchi%2Fpasskey-cloudflare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoriuchi%2Fpasskey-cloudflare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoriuchi%2Fpasskey-cloudflare/lists"}