typeorm-pg-adjacency-list-tree

JSON →
library 2.0.0 ·javascript
verified Jun 5, 2026

A TypeORM extension for managing adjacency list trees in PostgreSQL. Version 2.0.0 supports TypeORM >=0.3.0 and ships TypeScript definitions. Provides decorators (@Tree, @TreeParent, @TreeChildren) and tree repository methods (findTrees, findRoots, findDescendants, etc.) compatible with TypeORM's TreeRepository interface. Requires reflect-metadata as a peer dependency. Key differentiator: adjacency list approach (simple parent-child foreign key) rather than nested sets or materialized paths, and explicit ESM support with TypeORM 0.3+.