# Ecto vs TypeORM

**Leader by Vioscale score:** TypeORM

| Attribute | Ecto | TypeORM |
|---|---|---|
| **Vioscale score** | 51.2 (39% (low)) | 71.5 (71% (medium)) |
| activity.commits_last_30d | 12 | 10 |
| adoption.dependent_repos | 12,249 | 51,340 |
| adoption.github_stars | 6,487 | 36,632 |
| adoption.package_downloads_weekly | - | 4,983,124 |
| deployment.options | - | `{"cloud":true,"hybrid":true,"on_prem":true,"air_gapped":true,"self_hosted":true}` |
| description.long | A library that enables type-safe database queries and schema mapping for Elixir, supporting multiple database backends including PostgreSQL, MySQL, and SQLite with language-integrated querying. | TypeORM is an object-relational mapper that enables type-safe database interaction across multiple platforms and database systems. It offers both Data Mapper and Active Record patterns, with built-in support for TypeScript and comprehensive migration capabilities. |
| features.capabilities | `{"multi_db":true,"languages":"Elixir","relations":true,"schema_first":true,"type_safe_queries":true}` | `{"raw_sql":true,"multi_db":true,"languages":"TypeScript, JavaScript (ES2023)","relations":true,"migrations":true,"schema_first":true,"type_safe_queries":true,"connection_pooling":true}` |
| integrations.count | 6 | - |
| integrations.list | `[{"name":"PostgreSQL"},{"name":"MySQL"},{"name":"MSSQL"},{"name":"SQLite3"},{"name":"ClickHouse"},{"name":"ETS"}]` | - |
| language.primary | Elixir | TypeScript |
| license.spdx | Apache-2.0 | MIT |
| market.availability | - | `{"primaryMarkets":[],"availabilityScope":"global","availableCountries":[],"notAvailableCountries":[]}` |
| platform.support | - | `{"cli":true,"ios":true,"mac":true,"web":true,"linux":true,"android":true,"windows":true}` |
| pricing | `{"type":"open_source","sourceUrl":"https://hexdocs.pm/ecto","retrievedAt":"2026-08-14T08:32:02.160Z"}` | `{"type":"open_source","sourceUrl":"https://typeorm.io","retrievedAt":"2026-08-14T21:40:11.352Z"}` |
| pricing.free_tier | - | yes |
| pricing.model | open_source | open_source |
| pricing.price_level | free | free |
| pricing.transparent | - | yes |
| release.cadence_days | - | 31 |
| release.history | `[{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v3.4.5","date":"2020-07-28T19:18:20Z","type":"stable","version":"v3.4.5"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v2.2.0-rc.1","date":"2017-08-18T13:36:53Z","type":"prerelease","version":"v2.2.0-rc.1"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v2.0.1","date":"2016-06-21T13:18:18Z","type":"stable","version":"v2.0.1"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v2.0.0","date":"2016-06-21T13:18:36Z","type":"stable","version":"v2.0.0"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.1.8","date":"2016-06-21T13:19:18Z","type":"stable","version":"v1.1.8"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.1.7","date":"2016-06-21T13:19:35Z","type":"stable","version":"v1.1.7"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.1.6","date":"2016-06-21T13:19:58Z","type":"stable","version":"v1.1.6"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.1.5","date":"2016-04-19T10:08:50Z","type":"stable","version":"v1.1.5"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.1.4","date":"2016-04-19T10:08:36Z","type":"stable","version":"v1.1.4"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.1.3","date":"2016-02-22T10:46:14Z","type":"stable","version":"v1.1.3"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.1.2","date":"2016-02-22T10:46:01Z","type":"stable","version":"v1.1.2"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.1.1","date":"2015-12-23T15:32:10Z","type":"stable","version":"v1.1.1"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.1.0","date":"2015-12-23T15:31:55Z","type":"stable","version":"v1.1.0"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.0.7","date":"2015-12-23T15:34:06Z","type":"stable","version":"v1.0.7"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.0.6","date":"2015-12-23T15:33:53Z","type":"stable","version":"v1.0.6"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.0.5","date":"2015-12-23T15:33:36Z","type":"stable","version":"v1.0.5"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.0.4","date":"2015-12-23T15:33:16Z","type":"stable","version":"v1.0.4"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.0.3","date":"2015-12-23T15:32:50Z","type":"stable","version":"v1.0.3"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.0.2","date":"2015-09-07T13:16:29Z","type":"stable","version":"v1.0.2"},{"url":"https://github.com/elixir-ecto/ecto/releases/tag/v1.0.1","date":"2015-08-30T09:10:09Z","type":"stable","version":"v1.0.1"}]` | `[{"url":"https://github.com/typeorm/typeorm/releases/tag/1.1.0","date":"2026-07-13T19:07:27Z","type":"stable","version":"1.1.0"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.31","date":"2026-07-13T19:24:24Z","type":"stable","version":"0.3.31"},{"url":"https://github.com/typeorm/typeorm/releases/tag/1.0.0","date":"2026-05-19T11:14:09Z","type":"stable","version":"1.0.0"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.30","date":"2026-05-18T20:53:21Z","type":"stable","version":"0.3.30"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.29","date":"2026-05-08T13:12:25Z","type":"stable","version":"0.3.29"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.28","date":"2025-12-03T08:31:15Z","type":"stable","version":"0.3.28"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.27","date":"2025-09-19T09:47:59Z","type":"stable","version":"0.3.27"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.26","date":"2025-08-18T16:34:16Z","type":"stable","version":"0.3.26"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.25","date":"2025-06-19T16:09:18Z","type":"stable","version":"0.3.25"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.24","date":"2025-05-14T18:05:22Z","type":"stable","version":"0.3.24"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.23","date":"2025-05-07T10:04:52Z","type":"stable","version":"0.3.23"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.22","date":"2025-04-03T09:01:46Z","type":"stable","version":"0.3.22"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.21","date":"2025-03-03T08:10:24Z","type":"stable","version":"0.3.21"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.20","date":"2024-01-26T11:22:33Z","type":"stable","version":"0.3.20"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.19","date":"2024-01-03T14:44:45Z","type":"stable","version":"0.3.19"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.18","date":"2024-01-03T12:43:14Z","type":"stable","version":"0.3.18"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.17","date":"2023-06-20T19:48:38Z","type":"stable","version":"0.3.17"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.16","date":"2023-05-09T18:59:14Z","type":"stable","version":"0.3.16"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.15","date":"2023-04-15T13:30:15Z","type":"stable","version":"0.3.15"},{"url":"https://github.com/typeorm/typeorm/releases/tag/0.3.14","date":"2023-04-09T06:40:29Z","type":"stable","version":"0.3.14"}]` |
| reliability.status_page | yes | yes |
| security.scorecard | 5.7 | 7.2 |
| security.vulnerabilities | `{"count":2,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=hex&package_name=ecto&per_page=100","last_12m":0,"max_severity":"CRITICAL"}` | `{"count":6,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=typeorm&per_page=100","last_12m":3,"max_severity":"CRITICAL"}` |

## Capabilities (ORM & Database Tools)

| Capability | Ecto | TypeORM |
|---|:--:|:--:|
| **Core** |  |  |
| Type-safe queries | ✓ | ✓ |
| Schema migrations | - | ✓ |
| Relations / joins API | ✓ | ✓ |
| Languages | Elixir | TypeScript, JavaScript (ES2023) |
| **Modelling** |  |  |
| Schema-first modelling | ✓ | ✓ |
| **Flexibility** |  |  |
| Raw SQL escape hatch | - | ✓ |
| **Portability** |  |  |
| Multiple database backends | ✓ | ✓ |
| **Ops** |  |  |
| Connection pooling | - | ✓ |
| **DX** |  |  |
| Data browser / studio | - | - |

*Source: Vioscale. Generated 2026-09-01T20:19:33.173Z. "-" = undocumented, not absent.*
