FindSoftware

Typegoose

Wrapper that defines Mongoose models from TypeScript classes decorated with property decorators.

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

Status
Active
Maintainer
The Typegoose Team4
Maintained by
Community
First release
20178

Rendering and deploy

Install with
npm3

Releases

Current major version
137
Last release
2026-09-227

Adoption

GitHub stars
2,3112
npm downloads a week
313,7849
Contributors
10110
Dependent repositories
2,52711
Dependent packages
22311

Why these figures do not compare

Sources

  1. 2026-11-16: links
    typegoose.github.io/typegoose/
  2. 2026-11-16: links, Written in, License, GitHub stars
    api.github.com/repos/typegoose/typegoose
  3. 2026-11-16: links, Runtime, Minimum runtime, Install with
    typegoose.github.io/typegoose/docs/guides/quick-start-guide/
  4. 2026-11-16: Maintainer, License model
    raw.githubusercontent.com/typegoose/typegoose/master/LICENSE
  5. 2026-11-16: Categories
    raw.githubusercontent.com/typegoose/typegoose/master/README.md
  6. 2026-11-16: Databases
    typegoose.github.io/typegoose/docs/api/decorators/searchIndexes
  7. 2026-11-16: Current major version, Last release
    api.github.com/repos/typegoose/typegoose/releases
  8. 2026-11-16: First release
    api.github.com/repos/typegoose/typegoose/commits/v2.2.0
  9. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@typegoose%2ftypegoose
  10. 2026-11-16: Contributors
    api.github.com/repos/typegoose/typegoose/contributors
  11. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/%40typegoose%2Ftypegoose

Last reviewed · Listed since Edit on GitHubThis page as markdownas JSON