🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

lombok-typescript

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lombok-typescript

Lombok-like decorators and code generation for TypeScript - reduce boilerplate with powerful annotations and Gang-of-Four design patterns

latest
Source
npmnpm
Version
1.4.0
Version published
Weekly downloads
309
-72.06%
Maintainers
1
Weekly downloads
 
Created
Source

lombok-typescript

TypeScript decorators inspired by Project Lombok and common design patterns. Supports legacy experimentalDecorators and Stage 3 decorators via separate entry points.

version latest

TypeScript Node.js License

bundle size deps.dev Socket Snyk

Install

Install this release:

npm install lombok-typescript@1.4.0

Install the current latest release:

npm install lombok-typescript

Decorators in this release

Lombok-style

  • @NonNull
  • @ToString
  • @Builder
  • @Data
  • @Value
  • @With
  • @Equals
  • @Getter
  • @Setter
  • @Log
  • @Accessors
  • @UtilityClass
  • @FieldDefaults
  • @Delegate
  • @BuilderDefault
  • @Singular

Creational patterns

  • @Singleton
  • @Prototype
  • @Factory
  • @AbstractFactory
  • @Pool

Behavioral patterns

  • @Strategy
  • @State
  • @Command
  • @Memento
  • @Observable
  • @ChainOfResponsibility
  • @Iterable
  • @Visitor
  • @Visitable
  • @Hook

Structural patterns

  • @Flyweight
  • @Proxy
  • @Composite
  • @Wraps
  • @TemplateMethod

TypeScript utilities

  • @Memoize
  • @Retry
  • @Validate
  • @Debounce
  • @Throttle
  • @Trace
  • @Serializable
  • @DeepFreeze

Marker decorators

  • @Adapter
  • @Bridge
  • @Facade
  • @Mediator
  • @Interpreter

Quick start

npx lombok-ts init
npx lombok-ts generate
import { Data, Builder, NonNull } from 'lombok-typescript/legacy';

@Data
@Builder
class User {
  @NonNull name!: string;
}

For NestJS, plain TypeScript, and Stage 3 setup, see the documentation.

CLI

CommandDescription
lombok-ts generateGenerate companion TypeScript files for decorated classes
lombok-ts initAdd lombok configuration to your project
lombok-ts cleanRemove generated lombok output from your project
lombok-ts watchRegenerate when source files change

Documentation

https://a-dev-kit.github.io/lombok-typescript/

License

MIT

Keywords

lombok

FAQs

Package last updated on 15 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts