qmetrics.net

Typegoose

TypeScript class decorators for Mongoose MongoDB models

Typegoose screenshot

Defines Mongoose schemas and models from TypeScript classes using decorators, keeping types and database shape in one place.

Overview

Typegoose is a library for defining Mongoose models with TypeScript classes instead of parallel interface and schema files. Decorators such as prop mark fields on a class; reflection reads property types so Mongoose mappings stay aligned when the model evolves.

The typical pattern replaces hand-written schema boilerplate with a single decorated class. Typegoose aims to reduce duplication when Mongoose models and TypeScript types would otherwise diverge. Documentation states it works with standard Mongoose options and focuses on letting developers concentrate on data shape.

It is published for Node.js projects using Mongoose and MongoDB. Migration guides document upgrades between major versions. Community support includes a Discord server, FAQ, and known-issues list. Quick-start and full docs live on the project site.

Teams already on Mongoose who want stronger TypeScript ergonomics import Typegoose as a dependency and build models from classes rather than maintaining separate schema definitions.

Key features

  • Mongoose models from TS classes
  • @prop and related decorators
  • Reflect-metadata type inference
  • Single source for schema and types
  • Mongoose option compatibility
  • Migration guides between majors
  • npm package for Node projects
  • Discord community support

Use cases

  • Typed MongoDB models in Node
  • Reducing schema and interface drift
  • Mongoose apps in TypeScript
  • ODM layer for REST APIs

Tags

Similar software

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

★ 115.6k⟳ todayApache-2.0
Open Source Alternative to:FirebaseFirebase Realtime Database

GORM

Feature-rich ORM library for Go applications

GORM maps Go structs to SQL databases with migrations, associations, hooks, and a fluent query API. It targets developer-friendly access patterns for common CRUD and relationship modeling.

★ 40k⟳ 1 month agoMIT
Frameworks & PlatformsDesktop/CLI app

TypeORM

TypeScript and JavaScript ORM for many SQL and NoSQL databases

TypeORM maps objects to relational and document databases from Node.js, browsers, and mobile shells. It supports TypeScript and JavaScript with both Data Mapper and Active Record styles.

★ 36.7k⟳ 3 days agoMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis 3

Java SQL mapper with XML or annotation config

MyBatis links Java objects to SQL and stored procedures via XML or annotations. It trims repetitive JDBC parameter and result handling.

★ 20.4k⟳ yesterdayApache-2.0

Node Redis

High-performance Redis client for Node.js

node-redis connects Node.js applications to Redis with typed commands, clustering, pub/sub, transactions, and optional client-side caching.

★ 17.6k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app

MyBatis-Plus

Enhanced MyBatis toolkit for Java database access

MyBatis-Plus extends MyBatis with code generation, conditional query builders, and pagination helpers. It stays compatible with MyBatis while adding convenience APIs for common CRUD work.

★ 17.5k⟳ todayApache-2.0
Frameworks & PlatformsDesktop/CLI app