are there TS community conventions for api response structure?

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

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • json-api

    A specification for building JSON APIs

  • Not sure it's an answer for your question. For simple api, I tend to organize something slightly based on json-api. I just add a success field to ease and open the door for discriminated unions. An example of responses would be in the lines of:

  • http-exception

    MOVED to https://github.com/belgattitude/httpx/tree/main/packages/exception#readme

  • Talking about statuses, I recently spent some time doing this: https://belgattitude.github.io/http-exception | https://github.com/belgattitude/http-exception . Was quite fun and hope it can be useful in the wild.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS 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