{"slug": "the-power-of-graphql-without-graphql", "title": "The Power of GraphQL, Without GraphQL", "summary": "A framework called COBALT has been introduced to let developers build GraphQL-style APIs directly from TypeScript, inferring the schema and generating a typed SDK without hand-written GraphQL schemas, resolvers, or client-side codegen steps. COBALT's pitch positions it between tRPC and GraphQL: it claims tRPC's iteration speed and GraphQL's flexibility while avoiding REST's endpoint sprawl and over-fetching, GraphQL's double declaration of TypeScript interface plus schema plus resolver, and tRPC's coupling that leaks backend logic into the client bundle. The framework also markets dense, collocated code as reducing context-window footprint for LLM-assisted development and lowering token costs.", "body_md": "# COBALT — GraphQL from TypeScript, without writing GraphQL\n\nThe Power of GraphQL, without ``GraphQL``.  \n\nThe last framework that actually makes sense, in the age of AI. \n\n## Why Cobalt?\n\nIt's simple and powerful.\n\nIt extends GraphQL but doesn't force you to use it manually.\n\nYou get the iteration speed of tRPC and the flexibility of GraphQL. This way you're not sacrificing your ability to craft complex & optimized GraphQL schemas for initial speed.\n\nYou can refine your API at every stage, without collecting dangerous tech debt.\n\n### Why not REST?\n\n#### Endpoint Fatigue & Over-fetching\n\nManaging hundreds of endpoints creates a maintenance nightmare. You fetch huge JSON blobs just to display a username.\n\n#### The Cobalt Solution\n\nOne smart endpoint. The client specifies exactly what data it needs. The GraphQL feature everyone loves.\n\n### Why not pure GraphQL?\n\n#### The Double Declaration Problem\n\nYou write a TypeScript interface. Then you write a GraphQL Schema. Then you write a Resolver. If they drift, your app crashes.\n\n#### The Cobalt Solution\n\nSingle source of truth. Your TypeScript code IS your schema. No client-side codegen steps or schema sync required.\n\n### Why not tRPC?\n\n#### Tight Coupling Trap\n\nGreat for monoliths, but your backend logic leaks into your client bundle. Scaling to microservices or exposing a public API later becomes a rewrite.\n\n#### The Cobalt Solution\n\nLoose coupling, magnetic types. The schema is the contract. You can move fast AND scale to complex backends.\n\n### The Cobalt Way\n\n#### Magnetic Type Safety\n\nDefine your logic once. The Schema is inferred. The SDK is generated. The types are magnetically bonded across the network boundary.\n\n#### The Cobalt Solution\n\nThe best of all worlds. The speed of tRPC, the flexibility of GraphQL, and the simplicity of REST.\n\n## Hate Typing?\n\nThirsty LLM?\n\nLess is more.\n\nA codebase that is fun to work with.\n\n### No Boilerplate\n\n#### Stop writing glue code\n\nTraditional frameworks require Controllers, manual serialization, and Service layers just to move data.\n\n#### The Cobalt Solution\n\nWrite your logic. Cobalt generates the transport layer. No routers, no adapters, no manual schemas.\n\n### LLM Friendly\n\n#### Context Rot\n\nLLMs struggle with large, scattered codebases. Providing context across 50 files degrades performance and increases cost.\n\n#### The Cobalt Solution\n\nDense, collocated code. Smaller context window footprint means smarter AI assistance and lower token costs.\n\n### Zero-Config SDK\n\n#### Typed SDKs for free\n\nWriting GraphQL queries manually is tedious and error-prone. Cobalt gives you a fully typed SDK out of the box.\n\n#### The Cobalt Solution\n\nsdk.query.user({ id })() - Autocomplete your entire backend, as if it was local code. No graphql tags, no codegen watchers.", "url": "https://wpnews.pro/news/the-power-of-graphql-without-graphql", "canonical_source": "https://cobalt27.dev/", "published_at": "2026-11-24 00:03:59+00:00", "updated_at": "2026-11-24 00:42:38.337678+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "artificial-intelligence"], "entities": ["COBALT", "GraphQL", "TypeScript", "tRPC", "REST"], "also_reported_by": [], "takeaway": "COBALT infers the GraphQL schema from TypeScript code and generates a fully typed SDK, eliminating separate schema files, resolvers, and client-side codegen watchers.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/the-power-of-graphql-without-graphql", "markdown": "https://wpnews.pro/news/the-power-of-graphql-without-graphql.md", "text": "https://wpnews.pro/news/the-power-of-graphql-without-graphql.txt", "jsonld": "https://wpnews.pro/news/the-power-of-graphql-without-graphql.jsonld"}}