OSS TanbouSign in with GitHub

generate statically typed query APIs from Go schemas with an entity framework

About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
17,204
Primary language
Go
License
Apache-2.0
Repository last updated
Sep 30, 2026
On this page

Overview

Ent is an entity framework for Go. Database schemas are modeled as Go objects and code generation produces statically typed APIs. Graph traversal, queries and aggregations, multiple storage drivers, and template-based extension support large data models.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Generate statically typed CRUD and query APIs from schema-as-code definitions

Entities, fields, and edges are defined in Go schemas, then the generator produces typed clients, builders, and predicates so database access is easier to follow at compile time.

Sources: [2]

Represent relationships as graph edges across multiple storage drivers

Edges support relationship traversal, queries, and aggregations. The README lists MySQL, MariaDB, TiDB, PostgreSQL, CockroachDB, SQLite, and Gremlin among supported storage targets.

Sources: [2]

Best fit

Fits Go backends that want schema changes reviewed as code and strongly typed data access

Ent is useful for larger data models where teams prefer explicit schema definitions and generated APIs over reflection-heavy ORM behavior or extensive hand-written SQL.

Sources: [2]

Before adoption

v0.14.6 declares Go 1.24 and toolchain 1.24.0; keep generator and runtime versions aligned

The v0.14.6 go.mod declares Go 1.24 with toolchain go1.24.0. Because Ent is generation-centric, keep the entc generator compatible with the runtime package and review generated-code diffs in source control or CI.

Sources: [3][2]

Official sources

  1. [1]ent/ent — GitHub repository(2026-10-06)
  2. [2]Ent v0.14.6 — README(2026-10-06)
  3. [3]Ent v0.14.6 — go.mod(2026-10-06)
  4. [4]Ent v0.14.6 release(2026-10-06)
  5. [5]Ent Apache-2.0 license(2026-10-06)
Supplemental curator note

Ent generates typed APIs from schemas, making model changes and generated diffs explicit. Keep the ent code generator and runtime package on compatible versions and verify generated code in CI for reproducible builds.

Try it in 3 steps

  1. 1

    Get the source

    git clone --depth 1 https://github.com/ent/ent.git
  2. 2

    Enter the repository

    cd ent
  3. 3

    Check the official steps

    Continue with the commands in the README Installation, Quick Start, or Getting Started section.

    find . -maxdepth 1 -iname 'README*' -exec sed -n '1,220p' {} \; -quit
Check the official README

Growth

Growth trends · Last 30 days

17,204 Stars

Trend data is still being collected.

Development activity

Last 90 days · weekly

Commits (last 30 days)
1
Open PRs
127

Development activity is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • ent
  • orm
  • entity-framework
Stars
17,204
Forks
1,011
Watchers
150
Open issues
503
Contributors
234
Owner type
Organization
Primary language
Go
License
Apache-2.0
Repository last updated
Sep 30, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?