aichteeteapee
Batteries-included HTTP server library with a router, middleware stack, WebSocket hubs, file uploads, and OpenAPI validation
About aichteeteapee
aichteeteapee
Pronounced "HTTP". The name is the whole joke. Moving on.
A Go HTTP library that does everything you need and nothing you don't. Spin up a server with middleware, WebSocket hubs, file uploads, static serving, and request proxying with caching. Secure defaults, without the boilerplate.
go get github.com/psyb0t/aichteeteapee
The quick start has a complete main.go and the curl command to hit your first route.
What's in the box
Every package name is how you'd say it out loud.
aichteeteapee, the root package. Everything you need to stop hardcoding strings in your HTTP code: header names, content types, error codes, theErrorResponseenvelope, sentinel errors, defaults,GetClientIP,GetRequestID,WriteJSON.serbewr, pronounced "server". D'oooh you kno.net/httpwith Go 1.22+ServeMuxrouting, grouped routes with per-group middleware, health, echo and upload handlers, static files with directory indexing, TLS, config from env vars or code.serbewr/middleware: Request IDs, logging, recovery, Basic and bearer auth, JWT/JWKS, CORS, security headers, timeouts and content-type checks.serbewr/em-see-pee: Mount a stateless Go MCP server over Streamable HTTP.serbewr/prawxxey, pronounced "proxy", because of course it is. Forward requests upstream with optional response caching, hop-by-hop header stripping, response size limits and request fingerprinting.serbewr/dabluvee-es, pronounced "WS", because why stop at one wordplay. Hub -> Client -> Connection, typed JSON events, handler registration, broadcast, and a Unix socket bridge for when you need to plug in external tools.klhayyent, pronounced "client". Apparently that one needed saying too. JSON, raw, text and form bodies, bounded responses, request ID propagation, same-origin redirects, a real cookie jar, and the sameErrorResponseenvelope as the server.
Security
Secure defaults include loopback listeners, same-host WebSocket origin checks, bounded uploads and responses, and filtered echo headers. The CORS middleware grants browser response access only to configured origins.
To relax CORS and the default WebSocket origin check during local development, call this before building the router.
aichteeteapee.FuckSecurity()
New CORS middleware allows all origins, and the default WebSocket check accepts any origin. Call aichteeteapee.UnfuckSecurity() and rebuild the CORS middleware to restore the defaults. See the security guide.
Documentation
The full docs live at psyb0t.github.io/aichteeteapee.
| Page | What's in it |
|---|---|
| Server | Routers and groups, lifecycle, health, echo and upload handlers, static files, TLS, every env var |
| Middleware | Every middleware with its options and defaults |
| MCP | Streamable HTTP, JWT bearer authentication, and WorkOS setup |
serbewr/em-see-pee/auth | MCP OAuth discovery, audience checks and required scopes |
| WebSockets | Events, hub, clients, connections, upgrade options, the Unix socket bridge |
| Proxy | Forwarding, caching rules, fingerprinting |
| Client | Requests, bodies, errors and status sentinels, cookies, redirects, options |
| Errors | The error envelope, every error code, the sentinels |
| Constants and helpers | Headers, content types, context keys, log fields, defaults |
| Security | What's locked down, dev mode, what's on you |
| Logging | ctxscope, request fields on every line |
| Development | Make targets, dev image, CI, releases |
The Go API reference is on pkg.go.dev, and the changes per release are in CHANGELOG.md.
Development
Go checks run in the pinned Go 1.26.11 dev image. The docs build uses a separate pinned Node image. Docker and Make are enough to run both.
make lint # shellcheck, shfmt, go fix, golangci-lint (strict)
make test # go test -race ./...
make test-coverage # coverage with 90% minimum
make sec # gitleaks + govulncheck + semgrep; gates on findings
make docs # build the docs site into website/build
The rest is on the development page.
Sponsor
License
MIT. See LICENSE.
Frequently Asked Questions
What is aichteeteapee?
aichteeteapee is a Web Frameworks library for the Go programming language. Batteries-included HTTP server library with a router, middleware stack, WebSocket hubs, file uploads, and OpenAPI validation
How do I install aichteeteapee?
Install aichteeteapee with the Go module system using `go get psyb0t/aichteeteapee`. Check the repository for the current installation instructions.
What category does aichteeteapee belong to?
aichteeteapee is listed under Web Frameworks, specifically Web Frameworks.