Cobriq — SaaS Payment Application

Jorge Delgadillo

https://cobriq.com

Cobriq is a SaaS that lets freelancers and small businesses create paylinks and QR terminals to collect money fast via Stripe Checkout, with a modern stack (Next.js + Convex + Clerk).


TL;DR


Architecture (lean)

Frontend

Backend

Auth

Payments

Data / State

DNS


Key Surfaces


Runtime Flow

  1. User signs in with Clerk → redirected to /dashboard.
  2. Create Paylink: submit metadata + amount → Convex mutation persists paylinks row and returns short code + derived QR.
  3. Customer opens link or scans QRNext.js route requests a Checkout Session via Convex action (amount, description, success/cancel URLs).
  4. Customer pays in Stripe Checkout → Stripe fires webhook → Next.js /api/stripe/webhook verifies signature and updates Convex (checkouts.status = "succeeded"), emits event.
  5. Dashboard auto-refreshes via Convex queries; receipt becomes available and status badges update.

Tech Stack


Commands

# Install
pnpm install

# Dev (Next.js + Convex)
pnpm dev          # runs next dev & convex dev concurrently (via turbo or npm-run-all)

# Only Next.js app
pnpm dev:web

# Only Convex local dev server
pnpm dev:convex

# Build & start
pnpm build && pnpm start