Skip to content

polar-commerce

TypeScript

E-commerce platform with Polar payments.

Experimental e-commerce built with Next.js 16, Convex, Better Auth, and Polar. Polar has no cart system so I built custom cart bundling - multiple items bundle into a single ephemeral product at checkout, then reconstruct server-side after payment via webhook.

nextjs convex e-commerce polar

[features]

Cart Bundling

Multi-item checkout via ephemeral Polar products

Real-time Sync

Convex subscriptions sync cart across devices

Guest Migration

Anonymous cart merges on login

Product Seeding

JSON to Polar to Convex in one command

[install]

git clone https://github.com/ramonclaudio/polar-commerce.git
cd polar-commerce
npm install
cp .env.example .env.local

[usage]

npm run polar:seed   # Seed products to Polar + Convex
npm run dev          # Start development server

[requirements]

[license]

This project is licensed under the MIT license.

[links]