{"id":39625911,"url":"https://github.com/kuestcom/auth","last_synced_at":"2026-01-18T08:35:23.997Z","repository":{"id":322635830,"uuid":"1088356162","full_name":"kuestcom/auth","owner":"kuestcom","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-05T11:59:24.000Z","size":2238,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-08T17:32:29.806Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://auth.forka.st","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kuestcom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2025-11-02T20:08:39.000Z","updated_at":"2026-01-05T11:59:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/kuestcom/auth","commit_stats":null,"previous_names":["forkast-prediction-market/forkast-auth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kuestcom/auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuestcom%2Fauth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuestcom%2Fauth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuestcom%2Fauth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuestcom%2Fauth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kuestcom","download_url":"https://codeload.github.com/kuestcom/auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kuestcom%2Fauth/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":[],"created_at":"2026-01-18T08:35:23.927Z","updated_at":"2026-01-18T08:35:23.983Z","avatar_url":"https://github.com/kuestcom.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Kuest Auth – Key Generator\n\nSingle-page app that lets a Kuest wallet owner mint API credentials (L1 signature) and manage keys (L2 HMAC) against `https://clob.kuest.com`. Built with Next.js 14 (App Router), TypeScript, Tailwind CSS, wagmi, and Supabase.\n\n### Stack\n\n- Next.js 14 App Router, React 19, Tailwind CSS\n- wagmi (EIP-712 signing) + MetaMask / injected wallets\n- Supabase JS SDK for optional email capture\n- Web Crypto HMAC for L2 auth\n\n### Required environment variables\n\nConfigure these before running locally or deploying to Vercel:\n\n| Variable | Description |\n| --- | --- |\n| `NEXT_PUBLIC_SUPABASE_URL` | Supabase project URL |\n| `NEXT_PUBLIC_SUPABASE_ANON_KEY` | Supabase anon service key |\n| `NEXT_PUBLIC_REOWN_APPKIT_PROJECT_ID` | Reown / WalletConnect v2 project id (enables QR wallets) |\n| `NEXT_PUBLIC_APP_URL` | Public base URL of this app (used for WalletConnect metadata) |\n| `NEXT_PUBLIC_APP_ICON` | Absolute URL to an app icon (WalletConnect metadata) |\n\nUse `.env.example` as a starting point and create a `.env.local` file (Next.js automatically loads it):\n\n```bash\nNEXT_PUBLIC_SUPABASE_URL=...\nNEXT_PUBLIC_SUPABASE_ANON_KEY=...\nNEXT_PUBLIC_REOWN_APPKIT_PROJECT_ID=...\nNEXT_PUBLIC_APP_URL=https://auth.kuest.com\nNEXT_PUBLIC_APP_ICON=https://auth.kuest.com/kuest-logo.svg\n```\n\n### Supabase schema\n\nApply the SQL migration in `supabase/migrations/0001_key_emails.sql` to create the anonymous insert-only table used to store `{ api_key, email }` pairs:\n\n```bash\nsupabase db push\n```\n\n(Alternatively, run the file contents in the Supabase SQL editor.)\n\n### Local development\n\n```bash\nnpm install\nnpm run dev\n```\n\nOpen `http://localhost:3000` and connect a Polygon (Mainnet 137 or Amoy 80002) wallet. The generate flow will:\n\n1. Step 1 (modal): collect an optional email + advanced nonce.\n2. Step 2 (modal): connect via injected wallets or Reown (WalletConnect v2), switch to Polygon 137/80002 if needed, and sign the EIP-712 `ClobAuthDomain` payload.\n3. `POST /auth/api-key` with the L1 signature headers, return the trio, and copy helpers for `.env`.\n4. If an email was provided, store `{ api_key, email }` in Supabase.\n5. Manage keys (list / revoke) via L2 HMAC signing (`timestamp + method + path(+query) + body`).\n\n### Deploying\n\nDeploy to Vercel as a standard Next.js project. Set the environment variables above in the Vercel dashboard and (optionally) run the Supabase migration via CI before first deployment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuestcom%2Fauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuestcom%2Fauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuestcom%2Fauth/lists"}