Types to JSON Schemas

This page summarizes the projects mentioned and recommended in the original post on /r/typescript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • zod

    TypeScript-first schema validation with static type inference

  • Zod lets you create types from parsers (which allows you to create JSON schema validators).

  • ts-json-schema-generator

    Generate JSON schema from your Typescript sources

  • There's ts-json-schema-generator that generates a json schema starting from a ts class/interface. There's also a vscode extension that uses that library if you need to quickly generate a schema: https://marketplace.visualstudio.com/items?itemName=marcoq.vscode-typescript-to-json-schema

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • typebox

    Json Schema Type Builder with Static Type Resolution for TypeScript

  • zod-to-json-schema

    Converts Zod schemas to Json schemas

  • https://github.com/StefanTerdell/zod-to-json-schema#readme

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts