SchemaGen auto-generates TypeScript interfaces from REST APIs, GraphQL schemas, and OpenAPI specs. Accurate, up-to-date types — always.
Give SchemaGen a REST endpoint, a GraphQL schema URL, or an OpenAPI spec path. Supports remote URLs and local files.
--input https://api.co/openapi.jsonSchemaGen introspects the schema, infers union types, optional fields, and enums, then produces clean TypeScript with JSDoc comments.
npx schema-gen generateRun in watch mode or hook into CI. Types regenerate automatically when your schema changes. Diff shows exactly what updated.
schema-gen watch --ciFull spec support including $ref resolution, discriminators, allOf/oneOf/anyOf, and recursive schemas.
StableIntrospection query or .graphql SDL files. Generates interfaces for queries, mutations, subscriptions, and fragments.
GQLHit a live endpoint, SchemaGen samples the response and infers types. Use sample files for multiple response shapes.
StableExtract Zod schemas from tRPC routers and generate matching TypeScript interfaces with full runtime validation.
NewDraft 7 and 2020-12 compliant. Handles nested objects, arrays, enums, and conditional schemas.
StablePoint at a Firestore collection and generate typed document interfaces. Rules validation included.
BetaReads your Prisma schema.prisma and generates full TypeScript interfaces including relations and enums.
TypeScriptProto3 messages and service definitions — generates TypeScript with matching gRPC-web client types.
Newschema-gen is free and open source. Subscribe to get release notes, migration guides, and early access to new features delivered straight to your inbox.