Awesome Go

aichteeteapee

CategoryWeb Frameworks
SubcategoryWeb Frameworks
Stars1

Batteries-included HTTP server library with a router, middleware stack, WebSocket hubs, file uploads, and OpenAPI validation

About aichteeteapee

aichteeteapee

Go Reference CI coverage version license imported by

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, the ErrorResponse envelope, sentinel errors, defaults, GetClientIP, GetRequestID, WriteJSON.
  • serbewr, pronounced "server". D'oooh you kno. net/http with Go 1.22+ ServeMux routing, 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 same ErrorResponse envelope 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.

PageWhat's in it
ServerRouters and groups, lifecycle, health, echo and upload handlers, static files, TLS, every env var
MiddlewareEvery middleware with its options and defaults
MCPStreamable HTTP, JWT bearer authentication, and WorkOS setup
serbewr/em-see-pee/authMCP OAuth discovery, audience checks and required scopes
WebSocketsEvents, hub, clients, connections, upgrade options, the Unix socket bridge
ProxyForwarding, caching rules, fingerprinting
ClientRequests, bodies, errors and status sentinels, cookies, redirects, options
ErrorsThe error envelope, every error code, the sentinels
Constants and helpersHeaders, content types, context keys, log fields, defaults
SecurityWhat's locked down, dev mode, what's on you
Loggingctxscope, request fields on every line
DevelopmentMake 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.

← Back to Web Frameworks