finds.dev← search

// the find

stepci/garph

★ 1,312 · TypeScript · MIT · updated Mar 2024

Fullstack GraphQL Framework for TypeScript

Garph is a code-first GraphQL schema builder for TypeScript that infers resolver types directly from your schema definitions, eliminating the codegen step that most GraphQL setups require. Think pothos or nexus, but with a tRPC-style type inference approach. Aimed at TypeScript developers who want end-to-end type safety without maintaining a separate codegen pipeline.

The type inference from schema to resolvers is the real selling point — if you define a field as `g.string()`, the resolver is typed to return `string` without running a code generator. The examples directory is genuinely useful: it covers subscriptions, file uploads, relay pagination, federation, and defer/stream, which means the common hard cases are documented. Server-agnostic design works with Yoga, Apollo, and Mercurius, so you're not locked into a runtime. The comparisons doc in the www folder shows the authors actually understand the competitive landscape.

Last push was March 2024 and the repo has 18 forks — this is effectively unmaintained. The garph-gqty client integration it touts is a separate repo that's also gone quiet. With 1,300 stars and minimal community contribution, adopting this for a production project means owning it yourself when something breaks. The core source is four files (index.ts, schema.ts, client.ts, utils.ts) which is either admirably minimal or a sign that complex cases weren't fully worked through — federation support being listed as 'advanced' with thin documentation suggests the latter.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →