← All Open-Source Tools
Go Monolith MIT License
fondasi
Go edition — one binary, one SQLite file, 0.27s swap deploys
Go + chi + pure-Go SQLite (no CGO) + templ + sqlc + Argon2id. Designed for predictable operations on a single VPS with hash-verified uploads and instant rollbacks.
Overview
fondasi pairs fast Go compilation and iteration loops with the exact same security and single-file operational model as fondasi-rust. A $6 VPS runs it comfortably, and backups are copying one SQLite file.
Because SQLite uses pure-Go modernc.org/sqlite (no CGO), cross-compiling from macOS or Windows to a Linux VPS requires zero C toolchain setup.
Key Highlights
- Pure-Go SQLite (no CGO) with sqlc compile-checked SQL and goose migrations.
- Built-in async mail queue backed by SQLite jobs table — no Redis needed.
- Includes /healthz, SSE /events, opt-in JSON API, and make backup snapshots via VACUUM INTO.
Architecture & Stack
HTTP Router chi Stdlib-compatible routing with X-Request-ID echo and structured slog JSON logs.
Database modernc.org/sqlite + sqlc Pure Go SQLite with WAL mode, FTS5 search, and embedded goose migrations.
Templates templ + HTMX / Alpine Type-safe compiled Go HTML components with fragment responses.
Background Jobs SQLite jobs queue Async mail poller with poison-drop retry limits — zero external brokers.
Security & Operational Defaults
- Argon2id password hashing (x/crypto/argon2) with role guards and optional email verification.
- Automatic CSRF protection on all forms via nosurf in production + HTMX header support.
- HttpOnly, SameSite session cookies stored in SQLite with remember-me TTL.
- Strict CSP blocking inline script tags and onclick attributes, plus nosniff and framing headers.
Quick Start
go run github.com/maulanashalihin/fondasi/scripts/new@latest my-app
cd my-app && make dev # http://localhost:8080