Skip to content

Ship your SaaS sooner.Own every line of it.

A TanStack Start codebase with sign-in, payments, credits, AI and an admin console already connected. Pay once and clone the repository.

  • Private GitHub repository
  • Lifetime updates
  • Unlimited projects
Admin consoleReal captures, not live data

Users, orders and usage on one dashboard.

Overview
Captured from /admin

Built for AI coding tools

The repository tells an agent where code goes, which rules hold and how to prove a change is finished.

In the repository

  • CLAUDE.mdProject rules for Claude Code
  • AGENTS.mdThe same rules for Codex, Cursor and other agents
  • skills/<name>/SKILL.mdOne playbook per recurring task
  • openspec/changes/Proposal, design, spec and tasks for each change
  • scripts/validate/*.tsOne executable check per capability

Skills for the jobs you repeat

Each skill states its inputs, invariants, workflow and verification, and names only commands, paths and routes that exist.

A spec before the code

Every non-trivial change starts as an OpenSpec proposal with a design, testable requirements and a task list the agent ticks off.

Checks that say when it is done

Validators assert behaviour and wiring, not file existence. A change is finished when its own check and the full gate pass.

Skills in the box

  • quick-start
  • new-page
  • new-module
  • new-agent-plugin
  • configure-providers

59validators behind one command

pnpm validate:all
How agents work in this codebase

Deploy anywhere

The same code runs on Cloudflare Workers with D1, or as a Node server on Fly.io, Railway or any Docker host.

Cloudflare WorkersScripts from package.json
pnpm installpnpm install

Install the workspace dependencies.

SQLite, D1 and Postgres sit behind the same repository contracts, so business code never touches a SQL dialect.

Deployment overview

Deploy targets

  • Cloudflare Workers

    Database
    D1, with R2 for files and KV for cache
    Scheduled jobs
    Cron Trigger, once a minute
    Cloudflare guide
  • Fly.io

    Database
    Postgres, or SQLite on a volume
    Scheduled jobs
    In the web process
    Fly.io guide
  • Railway

    Database
    Postgres
    Scheduled jobs
    In the web process
    Railway guide
  • Docker

    Database
    Postgres through Compose
    Scheduled jobs
    In the web process
    Docker guide

What you skip building

The parts every SaaS needs and nobody wants to write twice, already connected to each other.

  • Sign-in and roles

    Email, Google and GitHub sign-in, with roles and permissions enforced on the server.

  • Payments

    Stripe, Creem, PayPal, DodoPayments and WeChat Pay checkout, settled only from signed webhooks.

  • Plans and subscriptions

    One-time and recurring plans, orders, refunds and a billing page for customers.

  • Credits

    A ledger that reserves, settles and releases credits for usage-based pricing.

  • Admin console

    Users, orders, content and support, plus a settings page for every provider.

  • AI channels

    Providers, models and scenes for chat, image, audio and video, priced in credits.

  • CMS and blog

    Pages, posts and a changelog edited in the console and rendered on the public site.

  • Newsletter and waitlist

    Signup forms, waitlist invites and subscriber lists managed in the console.

  • Affiliate programme

    Referral links, attributed orders and payout requests reviewed in the console.

  • Email

    Transactional templates in both languages and a delivery log.

  • File storage

    Uploads to R2 or any S3-compatible bucket, with access checked on download.

  • Two languages

    English and Chinese routes, with every string in a typed dictionary.

Counted from the repository this site runs on

  • 59validatorswired into pnpm validate:all
  • 71admin routesbehind one layout guard
  • 28workspace routesfor signed-in customers
  • 10provider settings pagesunder /admin/config
  • 10system state pagesfor errors and limits
  • 3database dialectsSQLite, D1 and Postgres
  • 7agent skillsunder skills/

What you get

Four things that are usually four separate projects.

Revenue stack

Checkout with five providers, subscriptions, one-time plans, refunds and a credit ledger. Orders are settled from a signed webhook, never from a return URL.

Orders list in the Kernlift admin console
Captured from /admin/orders

Deploy targets

Cloudflare Workers with D1, or a Node server on Fly.io, Railway and Docker. Migrations are maintained for both SQL dialects.

  • Cloudflare Workers
  • Fly.io
  • Railway
  • Docker
  • SQLite
  • D1
  • Postgres

AI product base

Route each scene to a provider and model, set its price in credits and read the cost of every call. An optional agent workbench runs on top.

AI provider channels in the Kernlift admin console
Captured from /admin/ai/providers

Production console

Roles and permissions, audit log, rate limits, support tickets and a configuration page for each provider, so credentials stay out of the environment.

Roles and permissions in the Kernlift admin console
Captured from /admin/roles

One payment. No renewal.

Premium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.

Kernlift Free

MIT-licensed SaaS starter you can run on your own infrastructure.

$0

  • Personal dashboard, account settings, and email, Google, and GitHub sign-in
  • Admin user directory, registration trends, and country statistics
  • Role management, permission directory, and audit export
  • Customer support tickets with a staff queue and private notes
  • Private file uploads and downloads with S3-compatible storage
  • English and Chinese pages, setup checks, and SMTP for account emails
Get the free repository
MembershipPREMIUM

Kernlift Premium

Includes the Premium base, Image Studio and Video Studio repositories, plus member pricing on Agent templates.

$299one-time payment

  • Private GitHub repository of the base template
  • Every later update, pulled with git
  • Unlimited projects, no runtime licence check
  • Image Studio and Video Studio included; member pricing on Agent templates
  • CMS, newsletter and affiliate programme included
  • SQLite, Cloudflare D1 and Postgres from one codebase

Hosting, payment processing, email and AI usage are billed by the providers you connect.

Pricing and delivery in full
What do I get with Kernlift Premium?

Premium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.

How do I get access to the repository?

After paying, open Purchased templates in your account, enter your GitHub username and choose Activate. GitHub sends an invitation to the private repository. Accept it and clone. An invitation that expires can be sent again from the same page.

How many projects can I build?

As many as you like. There is no fee per project, no seat count and no licence check at runtime.

How do updates work?

Updates are commits in the repository you were invited to. Keep it as an upstream remote and merge when you want them.

Can I get a refund?

Yes, until you activate. Activation gives you the full source code, so an order with an activated purchase cannot be refunded.

Are the business templates included in the membership?

Premium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.

What else will I pay for?

Hosting, payment processing, email and AI usage are billed by the providers you connect. You enter their credentials in the admin console.

How do I get support?

Send a message through the contact page. The documentation covers setup, each provider and every deploy target.

The stack

Current, typed and boring where it should be.

  • TanStack StartFull-stack React framework with typed server functions
  • React 19UI runtime
  • TypeScriptStrict types from schema to component
  • ViteDev server and build
  • Tailwind CSS 4Utilities on one token set
  • Base UIAccessible primitives under the component library
  • Drizzle ORMSchema and queries for SQLite, D1 and Postgres
  • Better AuthSessions, email and social sign-in
  • Cloudflare WorkersEdge runtime with D1, R2 and KV
  • AI SDKStreaming chat and tool calls
  • MotionInterface animation with reduced-motion fallbacks
  • BiomeFormatter and linter

A closer look

Captures from the admin console you receive.

Limits you set in the console

Each API has its own request limit and window, changed in the console and enforced on the server. A default rule covers the rest.

  • A default rule and per-API rules
  • Request limit and window for each rule
  • AI generation, task status and uploads covered
Rate limits
Rate limit settings in the Kernlift admin console
Captured from /admin/rate-limits
Content list in the Kernlift admin console
Captured from /admin/cms

Content without a second system

Marketing pages, blog posts and the changelog are edited in the console, in both languages, and rendered by the same app.

  • Pages, posts and changelog
  • Draft and published states
  • SEO fields per entry
CMS

Growth built in

An affiliate programme and a waitlist are part of the base template, with their own admin pages.

  • Referral links and attributed orders
  • Payout requests reviewed in the console
  • Waitlist invites and newsletter signups
Affiliate programme
Affiliate programme in the Kernlift admin console
Captured from /admin/affiliates
Waitlist in the Kernlift admin console
Captured from /admin/waitlist

Start with the product, not the plumbing

Premium includes the base repository, Image Studio and Video Studio. Image Agent and Video Agent are sold separately with member pricing.