DEV Community

Martin Schenk
Martin Schenk

Posted on

How I Built a Production-Ready SaaS in a Weekend (and Open-Sourced It)

Every time I started a new SaaS project, I found myself rebuilding the same infrastructure:

  • Payment integration
  • Invoice generation
  • Multi-language support
  • Analytics
  • Admin dashboard

After the third time, I decided to extract this foundation into a reusable starter. Today, I'm open-sourcing it.

GitHub: martinschenk/saas-starter-stack
Live Demo: allgood.click


## What's Included

### 1. Stripe Payments

Complete Stripe Checkout integration with:

  • One-time payments and subscriptions
  • Mobile-optimized checkout (auto-detects device)
  • EU tax handling
  • Webhook processing with signature verification

### 2. Automatic Invoicing

Zoho Invoice API integration that:

  • Creates professional PDF invoices on payment
  • Sends them automatically to customers
  • Supports B2B with company name and VAT ID

### 3. Multi-Language Support (5 Languages)

  • English, German, Spanish, French, Portuguese
  • SEO-friendly URLs (/de/, /es/, /fr/, /pt/)
  • Browser language auto-detection

### 4. GDPR-Compliant Analytics (No Cookies!)

  • No cookie consent banners needed
  • IP anonymization (last octet removed)
  • Admin dashboard with charts
  • Auto-deletes after 90 days

## Tech Stack

  • Express.js - Simple, no magic
  • SQLite - Zero config, file-based backup
  • Vanilla JS - No build step, ~50KB frontend

## Getting Started

git clone https://github.com/martinschenk/saas-starter-stack.git
cd saas-starter-stack
npm install
cp .env.example .env
npm start

Visit http://localhost:3000 and you have a working SaaS.


## Links

If this helps you ship faster, that's a win. Star the repo if you find it useful!


Have questions? Drop them in the comments!

Top comments (0)