# ent

> An entity framework for Go

Source: https://talira.ai/catalog/ent-dd76d5tj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / databases / orm](https://talira.ai/categories/libraries/databases/orm), [languages / go](https://talira.ai/categories/languages/go)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- Plugins: yes[^3]
- Creator: Facebook

ent is an entity framework (ORM) for Go that models the database schema as a graph and defines it in Go code: each entity's schema declares its fields, edges, indexes and mixins, and `ent` generates a 100% statically typed, explicit API for CRUD, queries, aggregations and graph traversals with eager loading. Hooks, interceptors and a privacy layer add behaviour around operations, and migrations run automatically or as versioned migrations through Atlas. It supports MySQL, MariaDB, TiDB, PostgreSQL, CockroachDB, SQLite and Gremlin, integrates with GraphQL, and can be extended with Go templates. Inspired by Ent, an entity framework used inside Meta, it was created at Facebook and is now maintained by the Atlas team. Apache-2.0 licensed.

## Links

- Website: https://entgo.io/
- GitHub: https://github.com/ent/ent
- Docs: https://entgo.io/docs/getting-started

## Problems it solves

- a type-safe ORM for Go that generates code instead of using reflection
- define my Go app's database schema in code and generate the data access layer
- query related records and traverse relationships in Go without hand-written joins
- run versioned database migrations for a Go project
- add authorization rules at the data layer of a Go app
- generate a GraphQL server from my Go database schema

## Features

- schema as Go code: fields, edges, indexes, mixins and annotations
- statically typed, explicit API generated from the schema
- CRUD, predicates, aggregations, paging and ordering
- graph traversal and eager loading
- hooks, interceptors and a privacy layer
- transactions
- automatic and versioned migrations (with Atlas)
- MySQL, MariaDB, TiDB, PostgreSQL, CockroachDB, SQLite and Gremlin
- GraphQL integration
- extension through Go templates

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.34 out of 1.
Signals: backing 0.20, extensibility 0.40.

- created by Facebook
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [sqlc](https://talira.ai/catalog/sqlc-7w8h0kzr.md): Compile SQL to type-safe code
- [Bun](https://talira.ai/catalog/bun-z64kv5wg.md): Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

## Sources

[^1]: https://github.com/ent/ent/blob/master/LICENSE (checked 24 Nov 2026)
[^2]: https://entgo.io/ (checked 24 Nov 2026)
[^3]: https://entgo.io/docs/getting-started (checked 24 Nov 2026)
