Skip to content

Overview

The streaming-first Go server for AI agents.

Getting started From go get to a tested streaming endpoint in about ten minutes
Examples Runnable programs: hello, streaming, an OpenAI proxy, an agent UI, a JSON API
API reference Every exported symbol, in one page
Guide Read it when
Streaming You stream anything: SSE, NDJSON, tokens, progress, feeds
AI backends You serve a model: OpenAI-compatible endpoints, proxies, agent events, MCP
Routing You need the pattern rules, groups, mounts, or why a route panicked
Middleware You write or port middleware: ordering, CORS, auth, logging, rate limits
Security You want to know what the defaults stop and what is still your job
Configuration You need to change a limit, or understand a derived one
Deployment You ship it: Docker, systemd, Kubernetes, nginx, TLS
Testing You test handlers and streams
Benchmarking You measure a streaming endpoint with photon bench

Migration overview — a concept map across frameworks, then a guide for each: net/http · chi · gin · echo · Fiber · FastAPI and Express

Changelog · Contributing · Security policy · Benchmarks · License: Apache-2.0