Every side project hits the same wall — auth, billing, usage tracking. The stuff that isn't your actual product but eats weeks of your life.
So I built an API that handles all of it. One publishable key. $19/month flat. No platform fees on your revenue.
The SDK
Published on npm. Safe for frontend. Four calls and you're done.
npm install @dream-api/sdk
import { DreamAPI } from '@dream-api/sdk';
const api = new DreamAPI({
publishableKey: 'pk_live_xxx'
});
await api.products.list() // Tiers you set in the dashboard
await api.usage.track() // Enforced limits and gating
await api.billing.checkout() // Stripe checkout — your account, your money
await api.auth.getSignUpUrl() // Hosted auth — no password logic needed
That's your whole frontend integration. No backend routes. No webhook handlers. No Stripe SDK wrangling.
What You Need
- A Stripe account (Dream API uses Stripe Connect so payments go directly to you)
- A free Dream API account to get your publishable key
- That's it
The 4 Minute Demo
Here's the real workflow. I open a terminal, fire up Claude Code, and four minutes later I have a working SaaS with real Stripe billing, tier management, and user auth. Not a mockup. Real test keys processing real transactions.
What It Handles
Dream API covers the three things that kill side project momentum:
Auth — hosted sign-up and login through Clerk. No password logic, no session management, no OAuth wiring. One call.
Billing — Stripe Connect subscriptions, one-time payments, and store checkout. You configure your tiers and pricing in the Dream API dashboard and the SDK handles the rest. Your Stripe account, your revenue, zero platform fees.
Usage tracking — set limits per tier, track consumption in real time, and gate features automatically when users hit their cap. Real-time changes from the dashboard reflect instantly.
It works for SaaS, stores, and membership sites. I'm currently running four separate sites off the same API with full tenant isolation — different users, different billing, completely separate, one publishable key.
Who This Is For
I built this for devs who use AI coding tools in the terminal — Claude Code, Gemini CLI, Cursor, Aider. If you're building with AI and you need the money part handled, this is it.
You configure your tiers and products in the dashboard. The SDK does the rest on the frontend. Your users sign up, pick a plan, and start paying you.
The Templates
Don't want to start from scratch? Six free starter templates ready to go:
- React and Next.js SaaS templates
- React and Next.js store templates
- React and Next.js membership templates
Each one comes pre-wired with the SDK, auth flows, billing pages, and a user dashboard. Clone it, plug in your key, and customize with Claude Code or whatever you build with.
Check out the template docs to see them in action.
See It In Action
Try It
- Site: dream.panacea-tech.net
- Docs: dream.panacea-tech.net/docs
- npm: @dream-api/sdk
- 14-day free trial, no credit card required
Happy to answer any questions. Roast it, break it, tell me what's missing — I want the honest feedback.
Top comments (1)
I made this and it works so well that honestly i can't believe i made it lol.. but i wanted to try and get the word out and that has been the only snag in this process.. it works great and is just what we need right now.. if you disagree please let me know and reach out.