Skip to content

lombok-typescriptLombok + GoF patterns for TypeScript

Reduce boilerplate with decorators and generated companions — legacy and Stage 3 backends, side by side.

What it is

lombok-typescript brings Project Lombok-style annotations and Gang-of-Four design patterns to TypeScript. You decorate classes and methods; the library applies runtime behavior or generates companion code so you write less boilerplate.

Phase 1 (v0.1) ships eight decorators: @NonNull, @ToString, @Builder, @Data, @Singleton, @Prototype, @Factory, and @Memoize.

Who it's for

  • TypeScript application developers tired of hand-written getters, builders, and toString
  • NestJS teams who want pattern decorators that work alongside @Injectable()
  • Developers coming from Java / Spring who miss @Data, @Builder, and similar ergonomics
  • Anyone learning GoF patterns through a single decorator plus a concrete example

What it isn't

lombok-typescript is not a dependency-injection container (use NestJS, Inversify, or tsyringe), an ORM, or a state-management library. It targets TypeScript 5+ and Node 22+ and does not polyfill older runtimes.

Status

Version 0.1.0 — code-complete on main, not published to npm yet. See the changelog on GitHub.

ResourceLink
Full documentationYou are here
Source & issuesgithub.com/A-Dev-Kit/lombok-typescript
Runnable examplesexamples/plain-ts, examples/nestjs

Released under the MIT License.