# szokodiakos/typegoose

Typegoose - Define Mongoose models using TypeScript classes.

Repository: https://github.com/szokodiakos/typegoose
Canonical: https://ross.abutalabs.com/products/szokodiakos-typegoose
Language: TypeScript
License: MIT
License Family: permissive
Topics: mongoose, typescript, ts, mongodb, odm
Archived: true
Last push: 2021-05-10T22:53:43+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3456, "days_push": 1941, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1209, forks 130 (observed 2026-08-28T04:03:59.818610+00:00)

## What it is
Typegoose is a TypeScript library that lets developers define Mongoose models using TypeScript classes with decorators, eliminating the need to maintain separate model and interface definitions. This original repository has been moved and is no longer maintained; development continues at hasezoey/typegoose.

## Use cases
- define mongoose models with typescript classes
- avoid duplicating mongoose schemas and typescript interfaces
- get typed mongoose models for mongodb
- use decorators to define document schemas
- type-safe mongodb odm for node.js

## When to choose
- you want type-safe Mongoose models defined from TypeScript classes
- you want to keep schema definitions and TypeScript types in sync automatically
- you are on the Mongoose 5 / Node 8+ stack and prefer decorator-based ODMs

## When to avoid
- you need an actively maintained library - use the hasezoey/typegoose fork instead
- you use Mongoose 6+ or newer TypeScript versions
- you prefer defining schemas directly in Mongoose without decorators

## Facets
- artifact type: library
- maturity: abandoned
- function: orm, database-driver, serialization
- domain: databases, backend, web-development, developer-tools
- platform: -
- tags: mongoose, mongodb, odm, decorators, type-safety, moved-to-fork, nodejs, typescript

## Member repositories
- szokodiakos/typegoose (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:59.818610+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:18:36.941796+00:00, confidence not recorded.
  - readme: https://github.com/szokodiakos/typegoose (fetched 2026-08-28T04:03:59.818610+00:00, sha cd3fa835365d)
  - registry_npm: https://registry.npmjs.org/typegoose (fetched 2026-08-29T12:26:33.697694+00:00, sha 2c88408a8266)
- Data as of 2026-08-30T08:39:29.467469+00:00.
