{"id":39958664,"url":"https://github.com/circlefin/arc-commerce","last_synced_at":"2026-01-29T20:15:23.193Z","repository":{"id":332072104,"uuid":"1130099919","full_name":"circlefin/arc-commerce","owner":"circlefin","description":"This sample app demonstrates how to integrate USDC as a payment method for purchasing credits on Arc.","archived":false,"fork":false,"pushed_at":"2026-01-18T19:56:25.000Z","size":239,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-19T02:48:36.365Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/circlefin.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-08T03:08:29.000Z","updated_at":"2026-01-18T19:54:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/circlefin/arc-commerce","commit_stats":null,"previous_names":["circlefin/circle-gateway-wallet","circlefin/arc-commerce"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/circlefin/arc-commerce","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Farc-commerce","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Farc-commerce/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Farc-commerce/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Farc-commerce/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/circlefin","download_url":"https://codeload.github.com/circlefin/arc-commerce/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/circlefin%2Farc-commerce/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28884284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T19:55:09.949Z","status":"ssl_error","status_checked_at":"2026-01-29T19:55:08.490Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2026-01-18T21:04:05.583Z","updated_at":"2026-01-29T20:15:23.185Z","avatar_url":"https://github.com/circlefin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arc Commerce\n\nThis project demonstrates how to integrate USDC as a payment method for purchasing credits on Arc.\n\n## Table of Contents\n\n- [Clone and Run Locally](#clone-and-run-locally)\n- [Environment Variables](#environment-variables)\n\n## Clone and Run Locally\n\n1. **Clone and install dependencies:**\n\n   ```bash\n   git clone git@github.com:circlefin/arc-commerce.git\n   cd arc-commerce\n   npm install\n   ```\n\n2. **Set up environment variables:**\n\n   ```bash\n   cp .env.example .env.local\n   ```\n\n   Then edit `.env.local` and fill in all required values (see [Environment Variables](#environment-variables) section below).\n\n3. **Start Supabase locally** (requires Docker):\n\n   ```bash\n   npx supabase start\n   npx supabase migration up\n   ```\n\n4. **Start the development server:**\n\n   ```bash\n   npm run dev\n   ```\n\n   The app will be available at [http://localhost:3000](http://localhost:3000/). The admin wallet will be automatically created on first startup.\n\n5. **Set up Circle Webhooks:**\n\n   In a separate terminal, start ngrok to expose your local server:\n\n   ```bash\n   ngrok http 3000\n   ```\n\n   Copy the HTTPS URL from ngrok (e.g., `https://your-ngrok-url.ngrok.io`) and add it to your Circle Console webhooks section:\n   - Navigate to Circle Console → Webhooks\n   - Add a new webhook endpoint: `https://your-ngrok-url.ngrok.io/api/circle/webhook`\n   - Keep ngrok running while developing to receive webhook events\n\n## Environment Variables\n\nCopy `.env.example` to `.env.local` and fill in the required values:\n\n```bash\n# Supabase\nNEXT_PUBLIC_SUPABASE_URL=\nNEXT_PUBLIC_SUPABASE_PUBLISHABLE_OR_ANON_KEY=\nSUPABASE_SERVICE_ROLE_KEY=\n\n# Circle\nCIRCLE_API_KEY=\nCIRCLE_ENTITY_SECRET=\nCIRCLE_BLOCKCHAIN=ARC-TESTNET\nCIRCLE_USDC_TOKEN_ID=\n\n# Misc\nADMIN_EMAIL=admin@admin.com\n```\n\n| Variable                              | Scope       | Purpose                                                                  |\n| ------------------------------------- | ----------- | ------------------------------------------------------------------------ |\n| `NEXT_PUBLIC_SUPABASE_URL`            | Public      | Supabase project URL.                                                    |\n| `NEXT_PUBLIC_SUPABASE_PUBLISHABLE_OR_ANON_KEY` | Public | Supabase anonymous/public key.                                           |\n| `SUPABASE_SERVICE_ROLE_KEY`           | Server-side | Service role for privileged writes (e.g., transaction inserts).          |\n| `CIRCLE_API_KEY`                      | Server-side | Used to fetch Circle webhook public keys for signature verification.     |\n| `CIRCLE_ENTITY_SECRET`                | Server-side | Circle entity secret for wallet operations.                              |\n| `CIRCLE_BLOCKCHAIN`                   | Server-side | Blockchain network identifier (e.g., \"ARC-TESTNET\").                     |\n| `CIRCLE_USDC_TOKEN_ID`                | Server-side | USDC token ID for the specified blockchain.                              |\n| `ADMIN_EMAIL`                         | Server-side | Admin user email address.                                                |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirclefin%2Farc-commerce","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcirclefin%2Farc-commerce","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcirclefin%2Farc-commerce/lists"}