# Serverless TypeDB

> Run TypeDB 3.x in the cloud in seconds. Free tier, no card. TypeQL over gRPC, the typedb console, Python, Java, and Rust drivers, plus a web console.

Canonical: https://layerbase.com/db/typedb
Last updated: 2026-08-25

Strongly-typed knowledge graph with TypeQL. A real graph database without the operational weight, on cloud, desktop, or self-host.

## Key facts

| Fact | Value |
| --- | --- |
| Engine | TypeDB |
| Category | Graph & Knowledge |
| Upstream project | [TypeDB](https://typedb.com/) |
| Layerbase Cloud | Yes |
| Free tier | Yes |
| Pricing | Free plan ($0/mo, no credit card), then $5 or $15/mo flat, no meters |
| Default version | 3.14 |
| Versions for new databases | 3.12, 3.14 |
| Layerbase Desktop | Yes |
| SpinDB (local CLI) | Yes |
| Best for | Knowledge graphs, expressive entity-relationship modeling, reasoning over structured data, and apps that benefit from a strongly-typed schema. |

## Use cases

- Model a knowledge graph for a domain that defeats relational normalization
- Prototype reasoning use cases (drug interactions, supply chains, fraud rings)
- Hand a TypeDB endpoint to teammates who query it with the web console or a TypeDB driver
- Run TypeDB locally with Layerbase Desktop, deploy the same schema to cloud
- Self-host on your own hardware with the Layerbase CLI

## Cloud features

| Feature | Available |
| --- | --- |
| Always-on option | Yes |
| TLS encryption | Yes |
| HTTP access | No |
| IP allowlisting | Yes |
| Web query console | Yes |
| Sleeps when idle, wakes on connect | Yes |
| Automatic backups | Yes |
| Pooled connections | Yes |
| Direct connections | Yes |
| Serverless HTTP driver | No |

## Common TypeDB questions

### What is TypeDB?

TypeDB is a strongly-typed database for knowledge graphs: you declare a schema of entities, relations, and attributes, then query it with TypeQL. It earns its keep on domains that defeat relational normalization, such as supply chains, fraud rings, and drug interactions. Layerbase runs it as a managed database on the Free plan, with a gRPC TypeQL endpoint, the TypeDB drivers, and a web query console for ad-hoc TypeQL.

### Which TypeDB version runs here?

TypeDB 3.x (3.12 by default). TypeQL 3.x uses transactions (define for schema, insert for data, match with select or fetch for reads). The 2.x concepts of sessions and rule when/then are not part of 3.x.

### How do I connect to TypeDB on Layerbase?

Layerbase publishes a gRPC TypeQL endpoint. The typedb console and the TypeDB 3.x drivers for Python, Java, and Rust connect with the dashboard credentials, and the dashboard query console runs ad-hoc TypeQL in the browser.

### What about the Node.js driver and TypeDB Studio?

The npm typedb-driver package is still 2.x. The maintained 3.x JavaScript driver and TypeDB Studio both connect over the TypeDB HTTP endpoint, which Layerbase does not expose today, so use the console, a gRPC driver, or the web query console. TypeDB Cloud is the option when you need Studio and multi-node HA clusters.

### How do I define a TypeDB schema and load data?

The same TypeQL schema and ingestion patterns work locally and in cloud. The dashboard query console supports schema definition and ad-hoc TypeQL.

### Is there a free TypeDB tier on Layerbase?

Yes. TypeDB is a Standard engine on Layerbase Cloud, included on the Free plan. It sleeps when idle and wakes on connect.

### Can I run TypeDB locally?

Yes. The Layerbase CLI and Layerbase Desktop both run TypeDB with the same workflow.

## Links

- [TypeDB on Layerbase](https://layerbase.com/db/typedb)
- [Create a TypeDB database](https://layerbase.com/create/typedb)
- [Connecting to TypeDB](https://layerbase.com/docs/cloud/connecting/typedb)
- [Pricing](https://layerbase.com/pricing) (markdown: https://layerbase.com/pricing.md)
