home/store/Crypto SaaS Starter Kit

Crypto SaaS Starter Kit

The exact Next.js + Supabase + crypto-payments stack behind degenjournal.xyz — extracted, cleaned, MIT-licensed.

I built degenjournal.xyz — a crypto trading journal with magic-link auth, crypto checkout, and read-only on-chain wallet imports — and kept hitting the same wall every crypto SaaS hits: the boring plumbing that every project needs and no boilerplate does well for crypto specifically.

So I extracted it. This is the real auth, payment, and wallet-reading code that runs in production at degenjournal.xyz — genericised, documented, and MIT-licensed. Not a toy. Not AI-generated filler. The actual stack, proven by a live app you can go use right now.

And the payment paths have been through an adversarial code audit — the kind of review that catches the money bugs you only find in production. Two real ones got fixed and baked into the kit: ledger-based webhook idempotency (a duplicate payment notification can't double-grant) and a lifetime-plan guard (a one-time customer can't be silently downgraded). You get the hardened version, with the reasoning written up in the guide.

$29$49launch price · until Dec 31

One payment in crypto. MIT public repo + private Pro repo access (auto-invite to your GitHub) + the ~50-page guide (delivered in the private repo).

Accepted:SOLUSDCUSDTETHBTC

Pay with crypto today via NowPayments. Your private-repo invite lands on your GitHub automatically within ~a minute of the payment confirming.

⚡ Test-drive live dashboard in demo mode→Zero risk · Real running code

Living proof: degenjournal.xyz is built on this exact stack.

The stack

Next.js 16React 19TypeScriptSupabase (Postgres + RLS)NowPayments (crypto)Lemon Squeezy (card)Helius (Solana)Hyperliquid APITailwind CSS v4Vercel (deploy + cron)

See it running

This is the real DegenJournal scorecard — see it live at degenjournal.xyz, running on exactly this stack.

DegenJournal scorecard — built on the Crypto SaaS Starter Kit

Architecture & Code Explorer

Inspect the real boilerplate structure and security-hardened patterns before buying.

Directory TreeProduction Clean

Battle-tested Next.js 16 App Router structure with clean separation of auth, crypto billing, and web3 reads.

crypto-saas-starter/
├── app/
│   ├── (auth)/
│   │   ├── login/page.tsx
│   │   └── auth/callback/route.ts       # Supabase magic-link PKCE exchange
│   ├── api/
│   │   ├── store/checkout/route.ts      # NowPayments invoice generator
│   │   ├── store/nowpayments-webhook/   # Hardened HMAC IPN listener
│   │   └── cron/expire-passes/route.ts  # Daily pass expiration check
│   ├── dashboard/page.tsx               # Plan-gated crypto dashboard
│   ├── pricing/page.tsx                 # Tier cards & checkout modals
│   └── layout.tsx
├── lib/
│   ├── auth/entitlements.ts             # requirePro() & requireLifetime() guards
│   ├── payments/hmac.ts                 # Constant-time signature validator
│   ├── supabase/server.ts               # SSR-safe Supabase cookie client
│   └── wallets/helius.ts                # Read-only Solana transaction parser
├── supabase/
│   └── migrations/                      # Hardened RLS tables & payment ledger
└── README.md                            # Complete setup walkthrough
✦ Engineering ROI

Build vs. Buy: The Math

Why rebuild standard crypto plumbing when you can start from audited, production-proven code?

Engineering saved
~81 hrs ($4,050 value)
Supabase SSR Auth & Session Refresh~12 hrs

Passwordless magic-link authentication with server and client separation.

✓ @supabase/ssr cookie exchange✓ Middleware session refresh✓ /auth/callback PKCE exchange
$600 est.
NowPayments Webhook & Idempotent Ledger~18 hrs

Battle-tested crypto billing that survives network retries and duplicate webhooks.

✓ Constant-time HMAC SHA-512 check✓ Append-only payment ledger table✓ Lifetime plan downgrade guard
$900 est.
Solana & Hyperliquid Read-Only Importers~22 hrs

Live on-chain transaction ingestion without private keys or custody risk.

✓ Helius Solana swap parser✓ Hyperliquid public fills paginator✓ Zero-custody read-only architecture
$1,100 est.
Anti-Tamper Supabase RLS Policies~11 hrs

Security architecture making client-side plan tampering impossible.

✓ Strict Row Level Security✓ service_role-only plan elevation✓ Atomic SQL migration scripts
$550 est.
Entitlements, Expiration Cron & Setup Guide~18 hrs

Full licensing logic and step-by-step developer deployment guide.

✓ <ProGate> client components✓ requirePro() server route guards✓ Daily pass expiration cron
$900 est.
🚀 Ship this weekend for $29 instead of burning weeks on plumbing.

MIT public repo + private Pro repo access + 50-page implementation guide. Instant GitHub invite.

Get instant access · $29 →

What's included — public MIT repo

Free and open. The $29 adds the Pro repo + guide below.

✓ Supabase magic-link auth
Passwordless email auth via @supabase/ssr — server client, browser client, middleware session refresh, and the /auth/callback exchange. Sign-in/out wired end to end.
✓ Plan-gated routes pattern
A clean free/pro/lifetime entitlements model: a single source-of-truth entitlements map, a server-side requirePro() guard, a <ProGate> client component, and a /api/account/plan endpoint.
✓ NowPayments crypto checkout
Hosted crypto checkout (USDC/SOL/ETH/BTC) — invoice creation lib, a per-plan checkout route, and an IPN webhook that verifies the HMAC signature before granting access. Hardened: a payment-ledger makes the webhook idempotent (no double-grant on retries) and a guard prevents downgrading a lifetime customer.
✓ Helius Solana wallet read
Read-only Solana wallet reader — paste any address, pull its swap history from Helius. No wallet connection, no private keys, never touches funds.
✓ Hyperliquid wallet read
Read-only Hyperliquid perp reader against the public info endpoint — paged userFills with a polite rate cap. No API key, no signing.
✓ users table + RLS migrations
SQL migrations for a users table and row-level-security policies where the client can read its own row but only the service role can grant plan upgrades — the pattern that makes self-upgrade impossible.
✓ Pricing / signup / dashboard scaffolds
Working /pricing, /signup, and /dashboard pages wired to the auth + plan + checkout flow above, in a dark Tailwind theme you can restyle.
✓ .env.example + README
Every required key documented (Supabase, Helius, NowPayments) and a step-by-step setup README that gets you running locally and deployed to Vercel.

Private Pro repo — unlocked with purchase

Collaborator access auto-granted to your GitHub after checkout.

★ Lemon Squeezy card-payment webhook
The full signature-verified, idempotent LS webhook that's the only thing that can upgrade a user — subscription + lifetime handling, all events.
★ Plan-expiration daily cron
A Vercel cron route that expires lapsed passes so access actually ends when it should.
★ Webhook signature verification + idempotency
The constant-time HMAC verification helper and the append-only payment-ledger pattern that makes re-delivered webhooks safe — the exact fix from the audit, with the single-column footgun it replaces explained.
★ Trade-import pipeline patterns
The reusable importer pattern: fetch → normalise → dedupe by tx → upsert under the user's id (RLS-scoped), shared across the Solana and Hyperliquid importers.

Be clear-eyed — what this is not

Who this is for

✓Indie hackers shipping a crypto or web3 SaaS who don't want to rebuild auth, payments, and on-chain reads from scratch.
✓Developers who want crypto checkout that actually works — signature-verified, idempotent webhooks — instead of gluing it together from docs at 2am.
✓Anyone who'd rather start from production-proven code (live at degenjournal.xyz) than from an untested boilerplate.

vs. other starter kits

Most Next.js starter kits (ShipFast, Makerkit, and friends) are built Stripe-first — great for cards, but none ship a verified, idempotent crypto-payment webhook out of the box. This kit is crypto-native: NowPayments checkout, HMAC-verified IPN, a payment-ledger that survives duplicate notifications, plus read-only Solana/Hyperliquid wallet imports. It's the part those kits leave you to figure out alone — and it's already running in production.

FAQ

Real code. Every module is extracted from degenjournal.xyz, which is live and built on exactly this stack. The auth, crypto checkout, and wallet-reading code is the same code running in production.
The public repo is MIT and free to anyone. The $29 gets you collaborator access to the private Pro addon repo (card-payment webhook, expiration cron, import pipeline patterns) plus the ~50-page implementation guide PDF. $29 is the launch price through December 31 — then it's $49.
Ship your crypto SaaS this weekend, not next month.
Get the kit · $29 →

Pay with crypto today. $29 launch price — until Dec 31, then $49.