Andrew Souza

Software Engineer — Backend-oriented

Nest-Sync

Ferramenta Open Source — DX & Type-Safety

[ x ] close

Stack

Node.js · TypeScript · NestJS · Reflect-metadata · AST (Abstract Syntax Tree) · npm/npx

Problem

Keeping types synchronized between backend (NestJS) and frontend (React/Vue/etc) is a manual, error-prone process. Developers waste time rewriting interfaces and routes on the frontend whenever the API changes, leading to integration bugs and slower development.

Solution

nest-sync automates the generation of a complete TypeScript client from NestJS controllers. It reads framework metadata and generates a ready-to-use SDK, ensuring any backend changes are immediately reflected on the frontend with full IntelliSense support.

Core Features

  • Automatic SDK generation from NestJS decorators
  • Full type support (DTOs and Response types)
  • Zero-config integration for the end developer
  • Automatic detection of HTTP methods, paths and parameters
  • Fluent API interface for frontend calls
  • Extremely lightweight with no heavy runtime dependencies

Key Decisions

  • Reflect-metadata used to extract route definitions without executing business logic
  • Code-generation based architecture to avoid network overhead
  • Focus on 'Developer Experience' (DX) with simplified CLI setup
  • Pure TypeScript output for maximum compatibility with bundlers (Vite, Webpack)
← back to dashboard