The database with a rich type system
TypeDB models data as entities, relations and attributes, with inheritance and constraints enforced on writes. Community Edition offers the full schema expressivity and complete query language of TypeDB, free and open source under the Mozilla Public License 2.0.
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
define
entity user,
owns email @unique,
plays membership:member;
entity team,
owns name,
plays membership:team;
relation membership,
relates member,
relates team,
owns joined-date;
attribute email, value string;
attribute name, value string;
attribute joined-date, value datetime;
match
$u isa user, has email $e;
membership (member: $u, team: $t);
$t has name "Platform";
fetch {
"email": $e,
"team": $t.name
};Free and open source
TypeDB Community Edition is free and open source, licensed under MPL 2.0. It uses the same core database engine as all the other editions of TypeDB.
Fully featured
TypeDB Community Edition offers the full schema expressivity, constraint validation and query language features as every other edition of TypeDB.
Compare editions
Runs anywhere
TypeDB CE runs as a single binary or a Docker image on your CI runner or your own hardware. Install using your package manager or an easy one-liner install script.
Install TypeDB CE
Developer tools
Develop and build applications using TypeDB Studio, TypeDB Console, the HTTP API and driver SDKs.
Browse developer tools
Related articles
Model your domain as it actually is
Most databases make you flatten your domain before you can store it. Relational schemas push you into join tables, document stores drop constraints entirely, and graph databases let you connect anything to anything and hope the application keeps it honest.
TypeDB gives you a rich type system in the database:
- Entities, relations and attributes as first-class types
- Inheritance, so shared structure is declared once
- N-ary relations that do not need a join table
- Constraints enforced on write, not in your application code

From install to querying in minutes
Install the binary or pull the Docker image, start the server, and connect with Studio, Console or a driver SDK (Python, JavaScript or your preferred scripting language).
Get started with the hands-on TypeDB tutorials, or read about what TypeDB is and what you might want to use it for.

Where TypeDB Community Edition fits
TypeDB Community Edition is a highly portable edition of TypeDB that is deployed and runs on a single server. It is ideal for local development, prototypes, internal tools, research, and even production workloads that do not have specific scaling or operational requirements such as zero-downtime upgrades or uptime SLAs.
If you do need replication, automatic failover or a managed service, TypeDB Cloud and TypeDB Enterprise run the same engine - so you can always begin on the Community Edition and change your edition later while your schema, queries and application code remain unchanged.

