Typegoose
Wrapper that defines Mongoose models from TypeScript classes decorated with property decorators.
typegoose.github.io/typegoose/repositorydocs
Typegoose defines Mongoose models from TypeScript classes. A class carries property decorators, and getModelForClass turns it into a regular Mongoose model whose documents have the class’s types, so the schema and the TypeScript type come from one definition.
Typegoose wraps Mongoose and does not change its functions. Mongoose is installed next to Typegoose as a peer dependency. Static methods, instance methods and hooks are written on the class.
Worth knowing
Each Typegoose release line works with a range of Mongoose versions, and the compatibility page lists them. Mongoose may change types even in patch versions, so an upgrade of one can need a matching upgrade of the other.
Identity
Rendering and deploy
- Install with
- npm3
Releases
Adoption
Sources
- 2026-11-16: links
typegoose.github.io/typegoose/ - 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/typegoose/typegoose - 2026-11-16: links, Runtime, Minimum runtime, Install with
typegoose.github.io/typegoose/docs/guides/quick-start-guide/ - 2026-11-16: Maintainer, License model
raw.githubusercontent.com/typegoose/typegoose/master/LICENSE - 2026-11-16: Categories
raw.githubusercontent.com/typegoose/typegoose/master/README.md - 2026-11-16: Databases
typegoose.github.io/typegoose/docs/api/decorators/searchIndexes - 2026-11-16: Current major version, Last release
api.github.com/repos/typegoose/typegoose/releases - 2026-11-16: First release
api.github.com/repos/typegoose/typegoose/commits/v2.2.0 - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@typegoose%2ftypegoose - 2026-11-16: Contributors
api.github.com/repos/typegoose/typegoose/contributors - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/%40typegoose%2Ftypegoose