{"library":"grats","type":"library","category":null,"description":"Grats provides an implementation-first, code-first approach to building GraphQL servers in TypeScript, enabling developers to define their GraphQL schema directly from their existing TypeScript types and functions using JSDoc-style annotations. This library leverages static analysis of your TypeScript code to automatically generate an executable GraphQL schema, eliminating the need for schema duplication or synchronization between SDL and resolver implementations. The current stable version, 0.0.36, reflects its active development phase, with frequent iterative updates and potentially breaking changes in minor `0.0.x` increments. Key differentiators include zero runtime overhead as the schema is extracted at build time, and a developer experience focused on reducing mental overhead by making the TypeScript implementation the single source of truth for the GraphQL schema, similar to approaches seen in Python (Strawberry) or C# (Hot Chocolate) but adapted for TypeScript's static nature.","language":"javascript","status":"active","version":"0.0.36","tags":["javascript","graphql","typescript","resolvers","schema","code-first","implementation-first"],"last_verified":"Wed May 27","install":[{"cmd":"npm install grats","imports":["import { GqlInfo } from 'grats';","import { schema } from './schema.js';","/** @gqlType */\nclass User {}"]},{"cmd":"yarn add grats","imports":[]},{"cmd":"pnpm add grats","imports":[]}],"homepage":"https://grats.vercel.app","github":"https://github.com/captbaritone/grats","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/grats","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/grats/compatibility"}}