Built with Go

Barry is powered by Go - delivering speed, simplicity, and production-grade performance.

Introduction

Welcome to Barry, a high-performance web framework written in Go. Barry offers a fast, efficient, and transparent way to build web applications by combining server-side logic with static HTML output. It embraces Go’s philosophy of simplicity, composability, and clarity - giving you everything you need and nothing you don't.

Why Barry?

Barry is a web framework designed for developers who value performance, predictability, and developer experience. Unlike traditional JavaScript-heavy frameworks, Barry renders your content on the server using native Go logic and outputs efficient, production-ready static HTML.

Pages are generated dynamically using Go functions, then cached as flat HTML for lightning-fast delivery. There’s no client-side JavaScript unless you explicitly add it, giving you complete control over your app’s behavior and output.

Key Features

  • 🚀 Fast server-side HTML rendering
  • 🧠 Full Go logic per route (index.server.go)
  • 📦 Static caching with gzip compression
  • 🎨 HTML templating using Go's html/template
  • 🪄 Layout and component system
  • 🔌 CSS/JS asset minification with cache-busting hashes
  • 🔥 Dev server with live reload
  • 🛑 First-class error page handling with templating

Philosophy

Barry is about:

  • Clarity: No magic. Files = routes.
  • Control: Write Go logic, render HTML, done.
  • Performance: Native speed, zero JS by default.
  • Pragmatism: Avoid frameworks when simple functions will do.

What Barry Is Not

  • ❌ Not a JavaScript runtime
  • ❌ Not a static site generator
  • ❌ Not a DSL or compiled-to framework

It’s just Go + HTML. Transparent, fast, production-ready.