# GORM vs Knex.js

**Leader by Vioscale score:** Knex.js

| Attribute | GORM | Knex.js |
|---|---|---|
| **Vioscale score** | 50.7 (49% (low)) | 66.2 (71% (medium)) |
| activity.commits_last_30d | 0 | 0 |
| adoption.dependent_repos | 22,361 | 94,868 |
| adoption.github_stars | 39,928 | 20,342 |
| adoption.package_downloads_weekly | - | 5,289,407 |
| deployment.options | `{"self_hosted":true}` | - |
| description.long | GORM is a free ORM library for Go that simplifies database operations through an intuitive API, supporting multiple database systems, advanced querying, schema migrations, and relationship management. | An open-source Node.js package supporting nine SQL databases including PostgreSQL, MySQL, SQLite, and Oracle. Provides type-safe query building with TypeScript support, schema migrations, transaction handling with savepoints, connection pooling, and both promise and callback-based interfaces. |
| features.capabilities | `{"raw_sql":true,"multi_db":true,"languages":"Go","relations":true,"migrations":true,"studio_gui":false,"schema_first":false,"type_safe_queries":true,"connection_pooling":true}` | `{"raw_sql":true,"multi_db":true,"languages":"JavaScript, TypeScript","relations":true,"migrations":true,"studio_gui":false,"schema_first":true,"type_safe_queries":true,"connection_pooling":true}` |
| integrations.count | 4 | - |
| integrations.list | `[{"name":"SQLite"},{"name":"PostgreSQL"},{"name":"MySQL"},{"name":"GaussDB"}]` | - |
| language.primary | Go | JavaScript |
| license.spdx | MIT | MIT |
| pricing | `{"type":"open_source","freeTier":true,"sourceUrl":"https://gorm.io","retrievedAt":"2026-08-14T08:30:27.529Z"}` | `{"type":"open_source","sourceUrl":"https://knexjs.org","retrievedAt":"2026-08-14T08:34:17.530Z"}` |
| pricing.free_tier | yes | - |
| pricing.model | open_source | open_source |
| pricing.price_level | free | free |
| release.cadence_days | 18 | 28 |
| release.history | `[{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.31.2","date":"2026-06-25T07:21:23Z","type":"stable","version":"v1.31.2"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.31.1","date":"2025-11-02T14:12:23Z","type":"stable","version":"v1.31.1"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.31.0","date":"2025-09-12T06:51:58Z","type":"stable","version":"v1.31.0"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.5","date":"2025-09-08T11:22:17Z","type":"stable","version":"v1.30.5"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.4","date":"2025-09-08T09:22:31Z","type":"stable","version":"v1.30.4"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.3","date":"2025-09-04T13:16:17Z","type":"stable","version":"v1.30.3"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.2","date":"2025-08-28T06:10:24Z","type":"stable","version":"v1.30.2"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.1","date":"2025-07-24T02:38:58Z","type":"stable","version":"v1.30.1"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.30.0","date":"2025-05-25T07:43:14Z","type":"stable","version":"v1.30.0"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.26.1","date":"2025-05-07T06:59:25Z","type":"stable","version":"v1.26.1"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.26.0","date":"2025-04-25T08:23:45Z","type":"stable","version":"v1.26.0"},{"url":"https://github.com/go-gorm/gorm/releases/tag/v1.21.0","date":"2021-03-04T11:37:30Z","type":"stable","version":"v1.21.0"}]` | `[{"url":"https://github.com/knex/knex/releases/tag/3.3.0","date":"2026-06-26T14:55:58Z","type":"stable","version":"3.3.0"},{"url":"https://github.com/knex/knex/releases/tag/3.2.10","date":"2026-05-02T12:14:38Z","type":"stable","version":"3.2.10"},{"url":"https://github.com/knex/knex/releases/tag/3.2.9","date":"2026-04-03T20:25:30Z","type":"stable","version":"3.2.9"},{"url":"https://github.com/knex/knex/releases/tag/3.2.8","date":"2026-03-30T18:29:09Z","type":"stable","version":"3.2.8"},{"url":"https://github.com/knex/knex/releases/tag/3.2.7","date":"2026-03-30T18:28:52Z","type":"stable","version":"3.2.7"},{"url":"https://github.com/knex/knex/releases/tag/3.2.6","date":"2026-03-25T02:06:50Z","type":"stable","version":"3.2.6"},{"url":"https://github.com/knex/knex/releases/tag/3.2.3","date":"2026-03-22T22:38:07Z","type":"stable","version":"3.2.3"},{"url":"https://github.com/knex/knex/releases/tag/3.2.1","date":"2026-03-22T21:08:27Z","type":"stable","version":"3.2.1"},{"url":"https://github.com/knex/knex/releases/tag/3.2.0","date":"2026-03-22T17:37:15Z","type":"stable","version":"3.2.0"},{"url":"https://github.com/knex/knex/releases/tag/3.1.0","date":"2023-12-07T23:17:57Z","type":"stable","version":"3.1.0"},{"url":"https://github.com/knex/knex/releases/tag/3.0.1","date":"2023-10-06T12:23:40Z","type":"stable","version":"3.0.1"},{"url":"https://github.com/knex/knex/releases/tag/3.0.0","date":"2023-10-06T06:56:38Z","type":"stable","version":"3.0.0"},{"url":"https://github.com/knex/knex/releases/tag/2.5.1","date":"2023-07-12T21:26:26Z","type":"stable","version":"2.5.1"},{"url":"https://github.com/knex/knex/releases/tag/2.5.0","date":"2023-07-08T21:04:46Z","type":"stable","version":"2.5.0"},{"url":"https://github.com/knex/knex/releases/tag/2.4.2","date":"2023-03-29T11:15:20Z","type":"stable","version":"2.4.2"},{"url":"https://github.com/knex/knex/releases/tag/2.4.1","date":"2023-03-29T11:11:39Z","type":"stable","version":"2.4.1"},{"url":"https://github.com/knex/knex/releases/tag/2.4.0","date":"2023-01-06T15:45:16Z","type":"stable","version":"2.4.0"},{"url":"https://github.com/knex/knex/releases/tag/2.3.0","date":"2022-09-01T21:17:24Z","type":"stable","version":"2.3.0"},{"url":"https://github.com/knex/knex/releases/tag/2.2.0","date":"2022-07-18T21:26:26Z","type":"stable","version":"2.2.0"},{"url":"https://github.com/knex/knex/releases/tag/2.1.0","date":"2022-05-26T09:04:03Z","type":"stable","version":"2.1.0"}]` |
| security.scorecard | 4.3 | 5.7 |
| security.vulnerabilities | `{"count":0,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=go&package_name=gorm.io%2Fgorm&per_page=100","last_12m":0,"max_severity":null}` | `{"count":2,"source":"https://advisories.ecosyste.ms/api/v1/advisories?ecosystem=npm&package_name=knex&per_page=100","last_12m":0,"max_severity":"CRITICAL"}` |

## Capabilities (ORM & Database Tools)

| Capability | GORM | Knex.js |
|---|:--:|:--:|
| **Core** |  |  |
| Type-safe queries | ✓ | ✓ |
| Schema migrations | ✓ | ✓ |
| Relations / joins API | ✓ | ✓ |
| Languages | Go | JavaScript, TypeScript |
| **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-01T17:10:15.150Z. "-" = undocumented, not absent.*
