Skip to content
TypeWire
← all packages

@tahanabavi/typewire-nestjs

NestJS integration for the TypeWire ecosystem — serve one set of Zod contracts over every wire your client speaks: REST/HTTP, gRPC (Connect JSON), GraphQL and typesocket WebSocket gateways, with request/response validation on all of them.

v4.0.0
0 runtime depsHTTPGraphQLgRPCWebSocket
npm install @tahanabavi/typewire-nestjs @tahanabavi/typefetch zod

What it does

NestJS integration for the TypeWire ecosystem — bind handlers and validate request input and response output on the backend using the exact same Zod contracts your frontend consumes, over every wire the client speaks: REST/HTTP, gRPC (Connect JSON), GraphQL…

Details

npm version
4.0.0
in this repo
4.0.0
runtime deps
0
entry points
. ./grpc ./graphql ./socket

Peer dependencies

  • @nestjs/common
  • @nestjs/core
  • @nestjs/swagger
  • @nestjs/websockets
  • @tahanabavi/typefetch
  • @tahanabavi/typefetch-graphql
  • @tahanabavi/typefetch-grpc
  • @tahanabavi/typesocket
  • crypto-js
  • node-forge
  • reflect-metadata
  • rxjs
  • zod