Skip to content

CobaltGraphQL without the ``GraphQL``

tRPC's speed, GQL's flexibility. No headaches. No compromise.

Quick Start ​

bash
bunx @cobalt27/dev init

Simple Example ​

Define a query in server/operations/hello.ts:

typescript
export function Query(name: string) {
    return `Hello, ${name}!`;
}

Use it in your frontend:

typescript
import sdk from "sdk";

const greeting = await sdk.query.hello({ name: "Peter" });
// => "Hello, Peter!"

That's it! Cobalt handles the GraphQL schema generation, type inference, and SDK creation automatically.

Released under the SSPL License.