Software Alternatives, Accelerators & Startups

Show HN: REST Alternative to GraphQL and tRPC

Fern ts-rest
  1. 1
    Describe your API endpoints, types, errors, and examples. Generate SDKs, documentation, and server boilerplate.
    Pricing:
    • Open Source

    #Utilities #Application Utilities #API Tools 6 social mentions

  2. Simplify E2E type-safety for your Typescript REST APIs
    Pricing:
    • Open Source
    Strong disagree. The barrier you presume is that OpenAPI specs are hard to write. Raw oAPI in yaml is indeed a pain, but there are good DSL's out there. I personally love Zod->OpenAPI, via https://ts-rest.com which uses https://www.npmjs.com/package/@anatine/zod-openapi. <a href="https://github.com/asteasolutions/zod-to-openapi">https://github.com/asteasolutions/zod-to-openapi</a> is another alternative for Zod. > The big bonus of the human documentation approaches today is that time is somewhat combined with building the client. This is wild to me; human documentation is absurdly error-prone and it's almost always and immediately out of date. (Zod or other DSL) -> OpenAPI -> generated docs (and types! And clients! And mocks!) are always going to be better; always accurate, and faster. The upfront cost is slightly higher, but the ROI is _significant_. OpenAPI specs lend themselves to excellent docs, ala Mintify or Docusaurus. Even interactive ones, like Swagger UI. The vast majority of API browsers & tooling understands OAPI, so why re-create (an often incomplete) version of the truth when using those tools? > Whatever is overall fastest and gets me on to the problems I'm really trying to solve. You may start (slightly) faster, but you'll incur significant cost when you move past the "trivial implementation" stage. For instance:.

    #API Tools #Utilities #Developer Tools 7 social mentions

Discuss: Show HN: REST Alternative to GraphQL and tRPC

Log in or Post with