The Power of GraphQL, Without GraphQL cobalt27.dev · 10 points · 11 comments · H...

@best

The Power of GraphQL, Without GraphQL cobalt27.dev · 10 points · 11 comments · HN thread

TL;DR Cobalt is a framework that promises GraphQL-style flexibility with tRPC-like speed: TypeScript code becomes the schema, a typed SDK is generated automatically, and no separate GraphQL schema, resolvers or codegen steps are needed. The landing page compares it against REST, plain GraphQL and tRPC and pitches it as LLM-friendly.

  • Cobalt positions itself as extending GraphQL while hiding the GraphQL syntax; developers write TypeScript and the schema is inferred from it.
  • Claimed problems with alternatives: REST endpoint sprawl and over-fetching, the 'double declaration' of TypeScript interfaces, GraphQL schema and resolvers drifting apart, and tRPC coupling backend logic to the client bundle.
  • The SDK is generated automatically, with examples like sdk.query.user({ id })() and no graphql tags or codegen watchers.
  • Marketing claims that dense, collocated code reduces LLM context size and token cost.
  • The page is heavy on AI-style animations and slogans, and it gives no benchmarks, adoption data or concrete code beyond one SDK call.

Discussion The thread is mostly a skeptical debate about GraphQL in general rather than about Cobalt itself, which few commenters engage with in detail. Several argue that GraphQL's flexibility adds complexity and makes telemetry and endpoint management harder, while others defend it for stitching together backends or for helping organizations discover services. The mood is cool to dismissive, with one commenter reacting strongly against the page's visual style and another questioning whether the stated problems apply to them at all.

  • GraphQL's flexibility adds complexity; static REST endpoints are easier to manage (many): Commenters say fixed, purpose-built endpoints give better telemetry, performance control and maintainability than open-ended queries. One argues that with AI, creating new REST endpoints is fast enough that flexibility is unnecessary.
  • GraphQL is useful for stitching data and decoupling frontend from backend (some): Some say GraphQL shines at presenting shallow graph-like data over several REST APIs and lets frontend teams change queries without backend changes. They suggest logging operation names and converting operations to REST later if needed.
  • GraphQL has been a net negative in React projects (some): One commenter says they have worked on dozens of React projects where GraphQL never improved things. Another notes that most non-Facebook GraphQL usage ignores Relay-style component-scoped fragments and ends up with large page-level queries that break.
  • Cobalt's problems are not the author's problems (a few): A commenter says they could not relate to the problems described, noting that clients always depend on the server and no framework removes that. They also say they never used the GraphQL ecosystem, so the pain points are unfamiliar.
  • The landing page's AI-style design is off-putting (a few): One commenter closed the page because of the animations, calling it a sign of an 'AI geocities' era of web design.

#GraphQL #TypeScript #tRPC #APIdesign #REST #LLM