Cette page est publiée en anglais. Les contrats et politiques sont rédigés en anglais pour tous les marchés.

Typed APIs with Zod, not hope

If the body is not a schema, it does not touch the database. That one rule removes a class of bugs we are tired of seeing in inherited repos.

Notes de stack

The handler

Parse, reject with a 400 that names the field, then write. Same schema shared with the client when it helps. No `as any` on the way in.

When we add a queue

If the work cannot finish in a request, it goes on a queue with the same schema. Webhooks get a signature check before the schema.

Questions

GraphQL?

Not by default. REST or tRPC-shaped routes until the product has a client zoo that needs a graph.

À partir de $390 USD · Quoted in 48 hours · env. 360 €

Comparer les offresLancer un projet