TRPC: End-to-end typesafe APIs made easy

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

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

    Compile JSONSchema to TypeScript type declarations

  • If you're using OpenAPI, you could use this to generate TypeScript interfaces:

    https://github.com/bcherny/json-schema-to-typescript

    It works really well

  • graphql-zeus

    GraphQL client and GraphQL code generator with GraphQL autocomplete library generation โšกโšกโšก for browser,nodejs and react native ( apollo compatible )

  • You can do this with GraphQL too:

    https://genql.vercel.app/

    https://github.com/graphql-editor/graphql-zeus

    I did a 5 min talk about these newer breeds of codegen tools (where it's a single client SDK that does automatic return type inference based on the input args), it's really neat:

    https://www.youtube.com/watch?v=7n3MeMFHiMk

  • 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
  • Encore

    Encore is the Backend Development Platform purpose-built to help you create event-driven and distributed systems.

  • If you want a similar experience to this but more optimized for backend development using Go, I've been building https://github.com/encoredev/encore for the past few years!

  • liveboard-rs

  • I like this idea very much. Shameless plug and I don't want to be the Rust fanboy, but I've played with something similar in Rust:

    https://github.com/julienr/liveboard-rs

    Basically it uses actix for the backend and yew (Vue-like rust frontend framework) for the frontend. This enables one to share types (and helper functions) between both, which is great:

    https://github.com/julienr/liveboard-rs/blob/master/shared/s...

    That being said, I think maturity-wise, Typescript is probably a better bet for this right now, so I'll definitely look at trpc for $dayjob.

  • trpc

    ๐Ÿง™โ€โ™€๏ธ Move Fast and Break Nothing. End-to-end typesafe APIs made easy.

  • Yup, with the optional `output`-property we actually have all the type information needed to generate an openapi-schema.

    See this for more info: https://github.com/trpc/trpc/issues/1724

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
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