# Typegoose

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


Source: https://findsoftware.frbit.cloud/typegoose/
Last reviewed: 2026-11-16
Listed since: 2026-11-16

## Record

### Links

- home: https://typegoose.github.io/typegoose/
- repository: https://github.com/typegoose/typegoose
- docs: https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/
- discord: https://discord.gg/BpGjTTD
- forum: https://github.com/typegoose/typegoose/discussions

### Identity

- status: active
- maintainer: The Typegoose Team
- maintainerType: community
- parent: unknown
- firstRelease: 2017
- hqCountry: unknown

### Kind

- category: library
- hosting: node
- language: javascript
- runtime: node
- runtimeMin: node 20
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: mongodb
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: not applicable
- renderingModes: not applicable
- installMethod: npm

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 13
- latestReleaseDate: 2026-09-22

### Adoption

- githubStargazers: 2311
- packagistDownloads: not applicable
- npmWeeklyDownloads: 313784
- contributors: 101
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 2527
- dependentPackages: 223

### Sources

- urls: https://typegoose.github.io/typegoose/ (read 2026-11-16)
- urls: https://api.github.com/repos/typegoose/typegoose (read 2026-11-16)
- urls: https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/ (read 2026-11-16)
- maintainer: https://raw.githubusercontent.com/typegoose/typegoose/master/LICENSE (read 2026-11-16)
- language: https://api.github.com/repos/typegoose/typegoose (read 2026-11-16)
- category: https://raw.githubusercontent.com/typegoose/typegoose/master/README.md (read 2026-11-16)
- runtime: https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/ (read 2026-11-16)
- runtimeMin: https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/ (read 2026-11-16)
- installMethod: https://typegoose.github.io/typegoose/docs/guides/quick-start-guide/ (read 2026-11-16)
- databases: https://typegoose.github.io/typegoose/docs/api/decorators/searchIndexes (read 2026-11-16)
- license: https://api.github.com/repos/typegoose/typegoose (read 2026-11-16)
- licenseModel: https://raw.githubusercontent.com/typegoose/typegoose/master/LICENSE (read 2026-11-16)
- currentMajor: https://api.github.com/repos/typegoose/typegoose/releases (read 2026-11-16)
- firstRelease: https://api.github.com/repos/typegoose/typegoose/commits/v2.2.0 (read 2026-11-16)
- latestReleaseDate: https://api.github.com/repos/typegoose/typegoose/releases (read 2026-11-16)
- npmWeeklyDownloads: https://api.npmjs.org/downloads/range/2026-11-01:2026-11-07/@typegoose%2ftypegoose (read 2026-11-16)
- githubStargazers: https://api.github.com/repos/typegoose/typegoose (read 2026-11-16)
- contributors: https://api.github.com/repos/typegoose/typegoose/contributors (read 2026-11-16)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/%40typegoose%2Ftypegoose (read 2026-11-16)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/%40typegoose%2Ftypegoose (read 2026-11-16)

## Notes

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.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
