Skip to content

Must-be-Ash/basedlink-pay

Repository files navigation

🌍 StableLink - Payment Platform Template

Complete foundation for building payment-powered apps. No crypto knowledge required.

A full-featured product creation and payment platform built with CDP Embedded Wallets. Your users just enter their email and pay - they'll never know it's crypto. Fork this template to build your own Gumroad, Buy Me a Coffee, Patreon, or any payment-powered business.

Live Demo Fork Template Get CDP Keys

🎯 The CDP Advantage: Users authenticate with email, no seed phrases. Payments feel like PayPal/Venmo but work globally without restrictions.


πŸš€ Quick Start

1. Get CDP API Keys

πŸ‘‰ Generate API Keys

2. Fork & Clone

git clone https://github.com/Must-be-Ash/basedlink-pay
cd basedlink-pay
npm install

3. Configure Environment

cp .env.example .env.local
# Fill in your actual values in .env.local

Required Variables:

4. Configure Domains

5. Launch

npm run dev
# Visit http://localhost:3000 πŸŽ‰

πŸš€ What You Can Build

πŸ’° Creator Platforms

  • Digital art sales with instant settlement
  • Course platforms with global payment access
  • Creator tips for YouTube, blogs, podcasts
  • Music/beats marketplace with instant royalties

🌍 Service Businesses

  • Freelance payments without restrictions
  • Consultation booking (like Intro.co or Clarity.fm)
  • Coaching, tutoring, expert Q&A
  • Event ticketing with NFT proof-of-attendance

πŸ›οΈ E-commerce

  • Digital products: software, templates, design assets
  • Subscription services with recurring payments
  • Niche marketplaces for specific communities
  • Crowdfunding without geographic restrictions

πŸ”§ Developer Tools

  • Headless payment API for existing sites
  • Component libraries with instant delivery
  • SaaS billing for developer tools
  • Open source funding buttons

🎯 Key Features

"Invisible Web3" Experience

  • Email Authentication: No seed phrases or MetaMask
  • Familiar Flow: Identical to PayPal/Stripe checkout
  • Mobile-First: Works on all devices without extensions
  • Instant Onboarding: Landing page to first payment in under 2 minutes
// The magic: Web3 payments that feel like Web2
<PaymentButton 
  amount={29.99}
  description="Premium Course Access"
  onSuccess={() => grantAccess()}
/>
// User experience: Enter email β†’ Pay β†’ Done

Global by Design

  • No Restrictions: Works in 100+ countries
  • Instant Settlement: Payments confirmed in ~90 seconds
  • Low Fees: Blockchain transactions cost cents, not percentages
  • No Banking Required: Users don't need bank accounts or credit cards

Production-Ready

  • Complete Platform: User management, product creation, payments, dashboard
  • Enterprise Security: Built-in compliance, policies, fraud protection
  • Scalable Architecture: Next.js 14, TypeScript, MongoDB
  • Fork-Ready: Customize branding and features in minutes

πŸ› οΈ Tech Stack

Frontend: Next.js 14, TypeScript, Tailwind CSS, CDP React Hooks Backend: API Routes, Alchemy blockchain verification, authentication Database: MongoDB with optimized schemas and indexing Security: Authentication middleware, transaction verification, input sanitization


πŸ”§ Environment Configuration

# CDP Configuration
NEXT_PUBLIC_CDP_PROJECT_ID=your_cdp_project_id
CDP_API_KEY_NAME=your_cdp_api_key_name
CDP_PRIVATE_KEY=your_cdp_private_key

# Database & Storage
MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/database
BLOB_READ_WRITE_TOKEN=your_vercel_blob_token
ALCHEMY_API_KEY=your_alchemy_api_key

# Application
NEXT_PUBLIC_BASE_URL=http://localhost:3000
API_KEY=your_random_api_key

πŸ“Š What's Included

  • βœ… Email-based wallet creation (no seed phrases)
  • βœ… Product management system with image uploads
  • βœ… Blockchain-verified payments with real-time status
  • βœ… Business dashboard with analytics and reporting
  • βœ… Mobile PWA with QR code payments
  • βœ… Global payment processing in 100+ countries

πŸš€ Deploy

Deploy with Vercel


🀝 Support & Community

πŸ”— Quick Links CDP Portal β€’ Live Demo β€’ Fork Template β€’ CDP Docs


Made by [@must_be_ash] (https://x.com/Must_be_Ash)

This is made by me and not an official CDP app. It's not perfect and it's not meant to be the end product though it's fully functional and production ready. I made this as your starting point so you don't have to start from scratch. It's meant to get you started to build your next idea 🀍


πŸ“„ License

MIT License - feel free to use this template for your projects!

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published