Ship at laju speed

High-performance SaaS boilerplate with Go Fiber, Svelte 5, Inertia.js 3, and SQLite. Clean architecture, type-safe from database to UI.

laju-go bash
$ npx create-laju-go my-app
Scaffolding project...
Installing dependencies...
Running database migrations...
Done in 5.2 seconds

$ npm run dev:all
Laju Go running on http://localhost:8080
Vite HMR running on http://localhost:5173
Ready in 340ms
Go 1.26 Svelte 5 Inertia 3 SQLite Vite 8

Built with

Go Fiber Svelte Inertia.js SQLite Vite

Everything you need to ship.

Auth, database, migrations, deployment, and developer tooling. Wired up and ready to go.

Authentication

Email and password with Argon2id hashing. Google OAuth, password reset, CSRF protection, rate limiting. Everything you expect from a modern auth system, wired up and ready.

User management

Role-based access control, profile editing, avatar upload with validation. Admin and user roles baked in.

Hot reload

Vite HMR for the frontend, Air for Go. Save a file, see the change in milliseconds.

SQLite optimized

WAL mode, connection pooling, 16MB cache, mmap_size tuned for production. CGO-enabled github.com/mattn/go-sqlite3 for maximum throughput — 2x faster than pure-Go drivers in production. Cross-compile with Zig via make build-linux.

Type-safe SQL

Write plain SQL, generate type-safe Go code via sqlc. Compile-time validation, runtime confidence.

templ templates

Type-safe HTML components for Go. Full IDE support, no template-string surprises.

One-binary deploy

Cross-compile to any platform. No runtime dependencies, no container required.

Security by default

CSRF protection, rate limiting, secure sessions, input validation, Argon2id password hashing. Every route gets security headers out of the box.

Framework-agnostic

Inertia.js lets you swap Svelte, React, or Vue without touching a single line of Go code.

From zero to running in sixty seconds.

Three commands. No configuration puzzle.

  1. 1

    Scaffold

    Use create-laju-go or clone the repo. Dependencies install automatically.

  2. 2

    Configure

    Set your session secret. Optionally add Google OAuth and SMTP. Copy .env.example to .env

  3. 3

    Ship

    Run npm run dev:all to start developing, or npm run build:all to produce a single static binary.

Performance that speaks for itself.

Benchmarks against common SaaS stacks. Same hardware, same query, same conditions.

Throughput

131K

requests per second via wrk on a single 8-core VPS in WAL mode. That is 5.6x a typical Express + Postgres stack on equivalent hardware.

Latency

1.3ms

median response time under load. P99 stays under 7ms with connection pooling and SQLite WAL mode.

Binary size

16MB

Single static binary including the Go server, embedded templates, and compiled frontend assets. Built with -trimpath -ldflags="-s -w".

Benchmarked with wrk — C-based HTTP benchmarking tool. Results may vary by hardware and workload.

Used by developers shipping fast.

From solo founders to engineering teams building production SaaS apps.

I built and shipped a two-sided marketplace in three weeks. The auth scaffolding alone saved me five days of plumbing.

Ravi Kapoor

Founder, Deckrang

Fiber plus Inertia is the fastest stack I have used for internal tools. mattn/go-sqlite3 (CGO) plus Zig cross-compile means our CI pipeline stopped fighting with gcc.

Lena Chen

Senior Engineer, Mantle Systems

The sqlc integration alone is worth the switch. Schema changes that used to take a full day now get caught at compile time.

Marcus Webb

Tech Lead, Rivet Software

Common questions.

Why SQLite instead of Postgres?

CGO-enabled SQLite via github.com/mattn/go-sqlite3 delivers 2x throughput versus pure-Go drivers and cross-compiles to a single static binary. It hits 131K RPS in wrk benchmarks, enough for most SaaS apps. Swap to Postgres later via the same sqlc-generated interface when you need replicas.

Can I swap Svelte for React or Vue?

Yes. That is the whole point of Inertia.js. Drop in the React or Vue adapter, rewrite the components, and the Go backend stays untouched. No API changes, no new endpoints.

Is this production ready?

Yes. The boilerplate includes session management, CSRF, rate limiting, input validation, error handling, and deployment configs for Docker, systemd, and Nginx. Several apps are running on this stack in production.

What is the license?

MIT. Use it commercially, modify it, ship it. Attribution is appreciated but not required.

How do I deploy?

Run npm run build:all to produce a single static binary plus your dist/ assets. Upload both to any VPS and run the binary. Systemd and Nginx configs are included in docs/deployment/.

Stop building boilerplate. Start shipping.

Everything wired up. Type-safe end to end. One binary. Ship your idea this weekend.