Go services.
Declared once.
One endpoint declaration gives the HTTP route, typed clients and, with plugins, OpenAPI and gRPC. Data, events, auth and telemetry come with it. Built so a coding agent can write it, test it and run it.
Write the endpoint once. Every caller follows.
The declaration holds the method, the path, the inputs, the outputs, the errors and the dependencies. Everything on the right comes from it, the OpenAPI and Protobuf rows through their plugins. Change it, and every caller that no longer fits fails its build.
validate: tags on your Go typesAn agent writes it, tests it and runs it.
Each Go module says how to use it. The workspace says what a change touches and what is already decided. A typed contract turns a wrong guess into a build error.
At the root of every Go module: the methods, one example, the limits.
How to build, test and add code here. Skills install with the extensions.
Settled choices, one file each. An agent reads one before it changes it.
Tests build the service with the same function as main, so they cannot drift.
Less code to carry.
The table lists what a hand-written service keeps in sync by hand, and what Putnami derives instead.
| concern | by hand | with putnami |
|---|---|---|
| openapi document | written, kept in sync | derived |
| grpc service | a second definition | same declaration |
| typed clients | one per caller | generated, go and ts |
| input validation | an if per field | validate: tags |
| health probes | handlers per service | one plugin |
| service credentials | headers set by the caller | injected by the binding |
| test wiring | a second graph | fork, override one |
The first six lines run in go/samples/service-to-service.
Built in, one line each.
Secure
- An identity resolver, then roles and scopes per route.
MayThrowdeclares each error in the contract and its clients.- A rate limit middleware.
- Signing keys that rotate.
- A panic answers 500 and the service stays up.
Operable
/livez,/readyz,/versionfrom one plugin.- Structured logs with a request ID.
- OpenTelemetry metrics, traces and logs.
- A clean stop on
SIGTERM. - Context deadlines on every call.
Tested
- Fork the container, override one dependency.
putnami testgives each run a real Postgres.- Tests and main share one composition root.
- Plain
go testunderneath. - A changed contract fails its callers at build.
Talk to any service, in any language.
Your Go service publishes its contract as OpenAPI with the openapi plugin, and as Protobuf with the proto plugin. Go and TypeScript callers get a generated, typed client. Any other language reads the same contract.
Your own .proto services run on grpc-go, next to the declared ones.
Explicit wiring, nothing hidden.
Data
A Postgres pool, SQL migrations, a unit of work.
Events
Typed topics, broadcast or one consumer.
Storage and cache
Files and a cache behind one interface each.
Config
Typed structs from the environment, with defaults.
Bounded work
Parallel fan-out with a limit and a deadline.
One command, then your loop.
The workspace, a go-server project and its tests. Add a TypeScript app next to it when you need one.