{"id":18542729,"url":"https://github.com/coinbase/onchain-commerce-template","last_synced_at":"2025-04-07T16:17:52.230Z","repository":{"id":259111889,"uuid":"870788457","full_name":"coinbase/onchain-commerce-template","owner":"coinbase","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-14T00:02:40.000Z","size":6911,"stargazers_count":37,"open_issues_count":5,"forks_count":71,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-31T15:19:07.072Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://onchain-commerce-template.vercel.app","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/coinbase.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}},"created_at":"2024-10-10T17:06:23.000Z","updated_at":"2025-03-30T00:53:12.000Z","dependencies_parsed_at":"2025-02-13T23:25:28.471Z","dependency_job_id":"82429cbd-f6ab-4cc9-9501-b9d1528ba6fa","html_url":"https://github.com/coinbase/onchain-commerce-template","commit_stats":null,"previous_names":["coinbase/onchain-commerce-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fonchain-commerce-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fonchain-commerce-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fonchain-commerce-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coinbase%2Fonchain-commerce-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coinbase","download_url":"https://codeload.github.com/coinbase/onchain-commerce-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247685628,"owners_count":20979085,"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":[],"created_at":"2024-11-06T20:10:05.198Z","updated_at":"2025-04-07T16:17:52.207Z","avatar_url":"https://github.com/coinbase.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Onchain Commerce Template\n\n\u003cimg width=\"1200\" alt=\"Thumbnail (1)\" src=\"https://github.com/user-attachments/assets/e1f513ea-d1ac-4baf-908e-35b0456d5565\"\u003e\n\nAn Onchain Commerce Template built with [OnchainKit](https://onchainkit.xyz), and ready to be deployed to Vercel.\n\nPlay with it live on https://onchain-commerce-template.vercel.app/\n\nHave fun! ⛵️\n\n\u003cbr /\u003e\n\n## Setup\n\nTo ensure all components work seamlessly, set the following environment variables in your `.env` file using `.local.env.example` as a reference.\n\nYou can find the API key on the [Coinbase Developer Portal's OnchainKit page](https://portal.cdp.coinbase.com/products/onchainkit). If you don't have an account, you will need to create one. \n\nYou can find your Coinbase Commerce API key on [Coinbase Commerce](https://beta.commerce.coinbase.com/). If you don't have an account, you will need to create one. \n\n```sh\n# See https://portal.cdp.coinbase.com/products/onchainkit\nNEXT_PUBLIC_ONCHAINKIT_API_KEY=\"GET_FROM_COINBASE_DEVELOPER_PLATFORM\"\n\n# See https://beta.commerce.coinbase.com/\nCOINBASE_COMMERCE_API_KEY=\"GET_FROM_COINBASE_COMMERCE\"\n```\n\u003cbr /\u003e\n\n## Enabling checkout\n\nBy default, the checkout functionality is disabled to prevent transactions in non-production environments. To enable the checkout flow for local development, you need to uncomment the code found in the `OnchainStoreCart.tsx` component, along with the imports at the top of the file.\n\nYou can also remove the `OnchainStoreModal` component and logic as well as the `MockCheckoutButton` as these were created for demo purposes only. \n\nNext, you'll want to replace `products` in the `OnchainStoreProvider` with your own product items. \n\n\n\u003eThis template showcases a multi-product checkout implementation of our `Checkout` component using the `chargeHandler` approach. You can read more about this implementation in the Advanced Usage section of our `Checkout` component docs here: https://onchainkit.xyz/checkout/checkout\n\n\n\u003cbr /\u003e\n\n## Running locally\n\n\n\n```sh\n# Install bun in case you don't have it\nbun curl -fsSL \u003chttps://bun.sh/install\u003e | bash\n\n# Install packages\nbun i\n\n# Run Next app\nbun run dev\n```\n\u003cbr /\u003e\n\n## Resources\n\n- [OnchainKit documentation](https://onchainkit.xyz)\n\n\u003cbr /\u003e\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinbase%2Fonchain-commerce-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoinbase%2Fonchain-commerce-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoinbase%2Fonchain-commerce-template/lists"}