Back to selected work

Backend engineering & framework design

Go API Kit

Less ceremony between an idea and an HTTP service.

Personal projectReusable toolkitMIT license
Go API Kit
HTTP request Router + middleware Handler / frontend
Architecture overview

The overview

A small Go HTTP toolkit built around standard net/http interfaces, with direct handler registration, middleware, JSON helpers, and optional frontend file serving.

The problem

Make a useful HTTP application straightforward to start, without forcing repository layers, service interfaces, or caching into every project.

How it fits together

The kit package owns routing, middleware, HTTP helpers, and safe file serving. The v8 package composes startup, health checks, and optional frontend files. A separate data package provides opt-in loading-function caching.

  1. HTTP request
  2. Router + middleware
  3. Handler / frontend

Implementation highlights

  • Standard http.Handler interoperability and direct endpoint registration.

  • Environment-driven deadlines, rate limiting, CORS, and optional authentication.

  • Run a built React or Vite frontend from a minimal standalone Go server; explicit API routes retain priority.

Engineering considerations

Configure routes and middleware before serving. Applications own storage writes and cache invalidation; zero cache TTL disables caching rather than making it permanent.

Go deeper

Next projectFrappe Docker