typegoose/typegoose
Typegoose - Define Mongoose models using TypeScript classes. observed · 2026-08-28
Health v2 · maintenance only
96/100
- Activity 97
- Release rhythm 91
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 18.0
- age_days: 2679
- days_rel: 61
- days_push: 21
- n_releases_24m: 29
Adoption not part of the score
2311 stars · 135 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Typegoose is a TypeScript library that lets you define Mongoose models using TypeScript classes with decorators, eliminating the need to maintain separate schema and interface definitions. It generates typed Mongoose models from class definitions using the reflect-metadata API.
Use cases
- define mongoose models with typescript classes
- avoid duplicating mongoose schemas and typescript interfaces
- get type-safe mongodb models in nodejs
- generate mongoose schemas from decorators
- keep typescript types in sync with database models
- use odm with mongodb in a typescript backend
When to choose
- you use Mongoose with TypeScript and want type-safe models from a single class definition
- you want to reduce boilerplate between schemas and interfaces
- you need compatibility with most Mongoose options while keeping types
When to avoid
- you use a database other than MongoDB
- your project is plain JavaScript without TypeScript
- you prefer writing Mongoose schemas directly without decorators
Facets
library · maturity active
orm database-driver type-system databases web-development backend developer-tools mongoose mongodb odm decorators data-modeling nodejs typescript javascript
2 sources
- readme: https://github.com/typegoose/typegoose · fetched 2026-08-28 · 9855ff4e136f
- homepage: https://typegoose.github.io/typegoose/ · fetched 2026-08-29 · f6b93e6d6e53
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| typegoose/typegoose | main | 96 |
For agents
markdown · JSON · MCP: product_card(name="typegoose/typegoose")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem