Cobalt lets you build GraphQL APIs from plain TypeScript, no schema required
The Power of GraphQL, Without GraphQL

Cobalt is an open-source framework that infers a GraphQL schema directly from your TypeScript resolvers, so you write logic once and get a fully typed SDK without codegen or schema sync. It pitches itself as combining tRPC's iteration speed with GraphQL's flexibility, cutting boilerplate and shrinking the codebase footprint that LLMs struggle with. GraphQL selections remain optional; simple mode returns full objects by default.
Your TypeScript code IS your schema. No client-side codegen steps or schema sync required.
- cogman10
I used to think GraphQL was a pretty good idea. You can change the shape of your model, do complex queries, and ultimately switch out the backends. What's not to love?
But over time I've come to realize that those features aren't all that helpful. More fixed and static responses are much easier to manage. They force the caller to do things in a performance oriented way for the backend. And, importantly, all telemetry is based on CRUD/REST style endpoints. You lose a lot of that if you just have a GraphQL endpoint. It makes it supremely hard to see how you are being called or what you can drop.
It's flexible, but it adds too much undo complexity to a system that adopts it.
Well thought out REST endpoints organically grown as usage is required or observed trumps hyper flexible endpoints created because "Who knows what the user might need". And particularly in the age of LLMs and AI where adding and deploying new endpoints can take hours rather than days. Or making/updating a client for a service is extremely fast, there's just no reason not to go down that route.
- dofm
The "double declaration problem" aspect is IMO overcooked n any schema-first context. If your server side library/tooling isn't doing the job of automatically generating the majority of resolvers from the schema definition language, and handling the minority with annotations, that's a problem with the library.
If you're not schema-first, I can see the issue. But then why aren't you? Code-first is a lot of extra weight to carry unless you're getting into icky meta-programming territory.
(I guess on reflection what it comes down to is that I don't really see the point of GraphQL if you're not going schema-first. If you are, and you have a modestly complex API, I do.)
- jarek83
Solving own problems, that most other stacks don't have
- brazukadev
I have worked in tens of React projects and there is not one that GraphQL made better. It is agonizing to see it still "surviving".
- anentropic
Suggestions:
> The Power of GraphQL, without ``GraphQL``.
> The last framework that actually makes sense, in the age of AI.
This headline tells us nothing except it's something to do with GraphQL.
Then
> Why Cobalt?
> It's simple and powerful.
> Cobalt never gets in your way.
> It extends GraphQL but doesn't force you to use it manually.
> You get the iteration speed of tRPC and the flexibility of GraphQL.
Great, but you haven't told us what it actually is yet.