Introduction

Welcome to goilerplate documentation - your guide to building modern Go applications

What is goilerplate?

Production-ready Go boilerplate for building modern web applications. Built by templUI.

Features

Authentication (JWT, OAuth), subscriptions (Polar/Stripe), email system, file uploads, SEO, analytics (Umami, Plausible, GA4), legal pages, and more.

Tech stack: Go, templ, HTMX, TailwindCSS, SQLite (or Postgres)

What’s included

Everything you need to ship a SaaS:

  • Premium Block Library - 222+ copy-paste templ blocks across 33 categories (hero, pricing, auth, dashboards, ecommerce, AI chat, and more). Browse the live showcase to preview each block.
  • UI Components - The open-source templui components library (buttons, dialogs, forms, etc) that the blocks and the boilerplate UI are built on.
  • Authentication - JWT, magic links, password auth, OAuth (Google/GitHub)
  • Subscriptions & Billing - Polar (handles tax) or Stripe integration
  • Email System - Resend integration with transactional emails and newsletter
  • File Storage - S3-compatible uploads (Cloudflare R2, AWS S3, DigitalOcean Spaces)
  • Security - CSRF protection, CSP headers, rate limiting, password hashing
  • SEO & Sitemap - Meta tags, OpenGraph, Twitter cards, dynamic sitemap
  • Markdown Content - Built-in blog and documentation system
  • Analytics - Google Analytics 4 and Plausible support
  • Logging & Error Tracking - Structured logging with slog, optional Sentry integration
  • Legal Pages - Privacy policy, terms of service, cookie policy templates

Minimal dev setup: SQLite (default, zero config) + a free Cloudflare R2 bucket for uploads. task dev and you’re running.

Getting Started

git clone https://github.com/templui/goilerplate.git
cd goilerplate
cp .env.example .env
task dev

See Installation for details. Want to understand our tech choices? See Philosophy.

AI coding tools

Customers get a blocks/AGENTS.md index that Claude Code, Cursor, Aider, and Continue load automatically. Your AI agent knows every block, its category, and its purpose without having to scan the full library.

Support

GitHub Discussions and Issues available after purchase (private repo).