Install TypeDB Drivers
TypeDB drivers are client libraries that enable applications to communicate with TypeDB servers. They provide a programming language-specific interface for all server operations, from connection management to query execution.
Python
TypeScript (HTTP)
Install TypeDB HTTP TypeScript Driver from NPM
-
Install
@typedb/driver-httpusingnpm:npm install @typedb/driver-http -
In your Node.js or Web application, import from
@typedb/driver-http:import { TypeDBHttpDriver, isApiErrorResponse } from "@typedb/driver-http"; const driver = new TypeDBHttpDriver({ username: "...", password: "...", addresses: [ "..." ], });
Rust
Java
Install TypeDB Java Driver using Maven
-
Import
typedb-driverusing Maven:<repositories> <repository> <id>repo.typedb.com</id> <url>https://repo.typedb.com/public/public-release/maven/</url> </repository> </repositories> <dependencies> <dependency> <groupId>com.typedb</groupId> <artifactId>typedb-driver</artifactId> <version>{version}</version> </dependency> </dependencies> -
Use TypeDB Driver in your program:
import com.typedb.driver.TypeDB; import com.typedb.driver.api.Driver; import com.typedb.driver.api.Credentials; import com.typedb.driver.api.DriverOptions; try (Driver driver = TypeDB.driver(TypeDB.DEFAULT_ADDRESS, new Credentials("admin", "password"), new DriverOptions(false, null))) { ... }
Other languages
If TypeDB doesn’t yet have a driver for the language your application is using, get in touch with the team. Or for applications where performance isn’t critical, you can interface directly with TypeDB’s HTTP API.
-
TypeDB HTTP API - Read the TypeDB HTTP API reference
-
Discord chat server - Collaborate with the TypeDB community