# sequelize/sequelize-typescript

Decorators and some other features for sequelize

Repository: https://github.com/sequelize/sequelize-typescript
Canonical: https://ross.abutalabs.com/products/sequelize-typescript
Language: TypeScript
License: MIT
License Family: permissive
Topics: sequelize, annotations, typescript, orm, decorators
Last push: 2024-04-20T03:54:41+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3871, "days_push": 865, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2839, forks 287 (observed 2026-08-28T04:07:24.684696+00:00)

## What it is
A TypeScript library providing decorators and type-safe features for Sequelize v6, enabling class-based model definitions with @Table, @Column, and association decorators. It adds repository mode, scopes, hooks, and validation on top of Sequelize's ORM capabilities.

## Use cases
- define sequelize models with typescript decorators
- type-safe orm for nodejs with typescript
- define one-to-many and many-to-many associations declaratively
- use repository pattern with sequelize
- add validation and hooks to database models
- migrate javascript sequelize models to typescript

## When to choose
- you use Sequelize v6 and want type-safe, decorator-based model definitions
- you prefer class-based models over Sequelize's attribute-object style
- you want declarative associations like @HasMany and @BelongsToMany with type inference

## When to avoid
- you use Sequelize v7 or a different ORM like TypeORM or Prisma
- your project is plain JavaScript without TypeScript
- you need the very latest Sequelize features not yet supported by this wrapper

## Facets
- artifact type: library
- maturity: active
- function: orm, database, type-system
- domain: databases, web-development, backend, developer-tools
- platform: cross-platform
- tags: sequelize, decorators, sql, typescript-orm, model-associations, nodejs, typescript

## Member repositories
- sequelize/sequelize-typescript (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:24.684696+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-30T07:37:20.953852+00:00, confidence not recorded.
  - readme: https://github.com/sequelize/sequelize-typescript (fetched 2026-08-28T04:07:24.684696+00:00, sha c14a13104fba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
