LogoTemplate0
Logo of Onchain App Template on template0.com

Onchain App Template

Coinbase's MIT-licensed Next.js starter that wires OnchainKit and WalletConnect together for one-click deployment to Vercel.

Introduction

The Onchain App Template is a free, MIT-licensed Next.js starter published by Coinbase that wires OnchainKit, Coinbase Developer Platform keys, and WalletConnect into an app you can deploy to Vercel in one click.

What is the Onchain App Template?

The Onchain App Template is an open-source repository from Coinbase, hosted at github.com/coinbase/onchain-app-template, that packages OnchainKit into a Next.js project configured for deployment on Vercel. It takes two environment variables as input — a Coinbase Developer Platform API key and a WalletConnect project ID — and outputs a runnable onchain app you extend with your own components and flows. A live demo is published at onchain-app-template.vercel.app, and the project ships under the MIT License. The repository has collected 137 stars on GitHub.

What makes the Onchain App Template stand out?
  • OnchainKit foundation — the app is built on OnchainKit (onchainkit.xyz), Coinbase's library of React components and utilities for onchain interfaces, rather than a bare Next.js scaffold.
  • One-click Vercel deploy — a Deploy with Vercel button clones the repository and provisions the project; environment variables are configured afterwards in Vercel project settings.
  • Two documented env varsNEXT_PUBLIC_CDP_API_KEY from the Coinbase Developer Portal OnchainKit page and NEXT_PUBLIC_WC_PROJECT_ID from cloud.walletconnect.com, with a .env.local.example file as reference.
  • Bun toolchain — the quickstart installs Bun via its curl script, then runs bun i for dependencies and bun run dev to start the development server.
  • Wallet connectivity — WalletConnect is wired in through the Wallet Connector project ID obtained from cloud.walletconnect.com.
  • AI editor resources — the README links to OnchainKit Cursor Rules and an OnchainKit llms.txt file for editor-assisted development.
  • MIT License — the template can be reused, modified, and redistributed under permissive terms.
  • Community support channels — Discord, GitHub Issues, and the X accounts @onchainkit, @zizzamia, and @fkpxls are listed for assistance.
Who should use the Onchain App Template?
  • Developers starting an onchain project — fork the repository, add the two environment variables, and have a Next.js app with OnchainKit and wallet connection already in place instead of assembling the stack from scratch.
  • Hackathon and prototype builders — use the one-click Vercel deploy to get a hosted, shareable demo running before customizing components.
  • Teams standardizing on Coinbase tooling — adopt the template when you already plan to use the Coinbase Developer Platform and OnchainKit, so the API key setup and library versions are pre-wired.
  • AI-assisted coders — pull the linked OnchainKit Cursor Rules and llms.txt into an editor to give tooling accurate context about the library.
How do you get started?
  1. Either click the Deploy with Vercel button to clone the repository into a new Vercel project, or clone it manually.
  2. Create a .env file using .env.local.example as the reference, then fill in NEXT_PUBLIC_CDP_API_KEY from the Coinbase Developer Portal and NEXT_PUBLIC_WC_PROJECT_ID from Wallet Connect.
  3. Install Bun with its curl script, run bun i to install dependencies, and start the local server with bun run dev.
FAQ
Is the Onchain App Template free?

Yes. The project is released under the MIT License, so you can use, modify, and redistribute the code. You still need your own Coinbase Developer Platform API key and a WalletConnect project ID, both of which are obtained by creating accounts on those respective platforms.

What do I need before running it?

Two credentials are required: an OnchainKit API key from the Coinbase Developer Portal and a Wallet Connector project ID from Wallet Connect. If you do not have a Coinbase account, you must create one. The documented local workflow also depends on Bun being installed.

What framework does it use?

The template is a Next.js application built on OnchainKit, the onchain interface library Coinbase maintains at onchainkit.xyz. Deployment is targeted at Vercel, either through the one-click deploy button or a manual clone followed by environment variable configuration in the Vercel dashboard.

Can I deploy it without setting the environment variables first?

The Vercel deploy button clones and builds the project, but the README instructs you to configure the API key and WalletConnect project ID in the Vercel project settings after deployment, since those values are read from environment variables rather than committed to the repository.

screenshot of Onchain App Template on template0.com

Information

GitHub Info

  • Stars137
  • Last maintained2025/06/12
  • LicenseMIT
  • Primary languageTypeScript

Categories

Tags

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates