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.
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
•It is not a no-code product — you'll need to be comfortable with TypeScript, Next.js and SQL.
•It does not include DegenJournal's product-specific UI (journal, AI sentiment scoring, scorecards) — those stay proprietary.
•Crypto checkout requires your own NowPayments account; card checkout requires your own Lemon Squeezy account. The kit wires the integration; you bring the merchant accounts.
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.