Open source

Meet OpenShipKitThe self-hosted Next.js SaaS starter: your server, your database, no hosted services.

Free, MIT-licensed Next.js 16 SaaS starter that runs on your own server: Postgres, Better Auth, an admin, a blog and an MCP server, no hosted services.

OpenShipKit: Free self-hosted Next.js SaaS starter, picture 1 of 1

What is OpenShipKit?

OpenShipKit is a free, open-source starter for building a SaaS product that runs entirely on your own server. One Next.js 16 app and one Postgres database do everything: sign-in, an admin panel, a blog, payments and an MCP server for AI agents. Nothing in it depends on a hosted service you can't replace.

It is MIT licensed. The code is on GitHub at DrisH31/OpenShipKit.

What is in it

  • Auth inside the app: Better Auth, with its tables in your own Postgres. Email and password, verification, two-factor and roles, with no per-user bill.
  • Postgres with Drizzle: typed queries and committed migrations. In development an embedded database starts on its own, so there is nothing to install.
  • An admin panel: edit the landing page's copy, write posts, read feedback, manage users and see an audit log of every change.
  • A blog, changelog and docs: pages rendered on the server with SEO, sitemaps, feeds and JSON-LD in the first byte.
  • Payments and email when you want them: Polar subscriptions and Resend email, both off until you set their keys.
  • An MCP server: an AI agent can edit the site's content through scoped keys, and everything it does is audited.

What it doesn't do (yet)

It is English only, accounts are single people (no teams or seats), Polar is the only payment provider, and production sign-up needs Resend for verification email. The server is yours to look after too: updates, backups and restores.

Questions

Is OpenShipKit free?

Yes. It is open source under the MIT licence: use it for personal or commercial work, change it, and sell what you build. Keep the copyright notice in the code.

What do I need to run it?

Node.js 24 for development. In production, any Linux server with Docker and a domain pointing at it.

Does it need any paid services?

No. Polar (payments) and Resend (email) are optional, though production sign-up needs Resend to send verification email.

Should I use OpenShipKit or GetShipKit?

OpenShipKit if you want to run everything on your own server. GetShipKit if you would rather use Clerk, Supabase and Polar and not run a server at all.

Who it is for

  • Developers who would rather own one server

    Than pay and depend on several hosted services.

  • Anyone who wants to read their whole stack:

    Auth, billing and data in one codebase, with tests and CI.

  • People building with AI agents

    , who want the agent to edit the site through a proper, audited door rather than the database.

Background

How it works

Clone it, install and run the dev server: it opens on your machine with no .env, no Docker and no accounts. A setup script writes your settings, and the same project deploys to any Linux server with one docker compose command, which brings up Postgres, the migrations, the app and automatic HTTPS. Dokploy, Coolify and plain Node are documented too.

Backups take both the database and the uploaded files, and the docs walk through rehearsing a restore, because a backup nobody has restored is only a hope.

The problem

Most SaaS starters rent you their stack. Sign-in comes from a hosted provider that bills per user, the database from another, and each one can change its price or its terms whenever it likes. Leaving later means rewriting sign-in and moving your data, which is exactly when you have the least time.

Running it all yourself avoids that, but then you are the one wiring auth, migrations, an admin, backups and a deploy from scratch.

Why I built it

OpenShipKit packages the stack DrisH prefers to run: one app, one database, one server, with the parts that need care (auth, billing webhooks, backups) done once and tested. It is the sibling of GetShipKit. GetShipKit is for people who would rather pay hosted services than run a server. OpenShipKit is for people who would rather own the box.

More apps

OpenShipKit icon

Get OpenShipKit

Open source

Not today? Hear when it gets better.