TypeDB Studio
TypeDB Studio is an interactive visual environment for managing and querying TypeDB databases.
With Studio, developers can efficiently manage databases, execute queries, and explore query results, all within a unified environment.
This page provides a quick introduction to TypeDB Studio and an overview of its features. All features of TypeDB Studio are available on both web and desktop. Be aware that the web app may not be able to connect to non-HTTPS endpoints (e.g. localhost, 127.0.0.1) on certain browsers; at the time of writing, Chrome works, but Safari does not.
Quickstart
Connect to TypeDB
Select TypeDB edition below, and follow the instructions:
-
Cloud
-
Enterprise
-
Community Edition
-
In the TypeDB Cloud website, navigate to your cluster and click Connect. Then, click Connect with TypeDB Studio. This will launch TypeDB Studio.
-
Fill in your password and hit Connect. Your password can be found in your downloaded credentials file (if you have one).
-
Launch TypeDB Studio.
-
Enter the address of the HTTP endpoint of your cluster. By default, this is at port 8000.
-
Enter your username and password.
-
Click
Connect.
-
Launch TypeDB Studio.
-
Enter the address of the HTTP endpoint of your cluster. By default, this is at port 8000 and for local instances you can use
http://localhost:8000. -
Enter your username and password - defaults are
adminandpassword. -
Click
Connect.
|
You can also connect to a TypeDB server using a connection string. The connection string should be in the format For example, if you have a TypeDB server running on TypeDB Cloud credentials files include a prebuilt connection string. |
TypeDB Studio remembers the server addresses and usernames you have previously used and offers them as suggestions the next time you connect.
Saved connections are stored locally in your browser or desktop app. See Data storage for details.
Select a database
To select a database to work with, use the dropdown menu on the right of the database icon in the top toolbar. You can also create new databases here, optionally with sample data preloaded.
See Databases for the full set of database management features, and Sample datasets for more details about sample datasets.
Welcome page
The Welcome page is the home screen of TypeDB Studio. The actions it offers depend on whether you are connected to a server:
When not connected, it provides shortcuts to:
-
Connect to a TypeDB server.
-
Run TypeDB in the cloud.
-
Install TypeDB Community Edition locally.
When connected, it provides quick links to the main tools:
-
Query your database (the query tool).
-
Visualise your schema (the schema tool).
-
Build with the AI agent (Agent mode).
-
View your data (the data explorer).
-
Explore data as a graph (the graph explorer).
Query tool
You can run queries against the connected TypeDB server using TypeDB Studio’s query tool.
Query tabs
The query tool supports multiple query tabs, so you can keep several queries open at once. Tabs can be renamed, pinned, duplicated, and closed (including close others / close to the right). Open query tabs are remembered between sessions.
In addition to writing and running queries, the query tool gives you access to a schema pane, an inline history pane, transaction controls, result export, and the ability to save queries for later reuse.
Write a query
You can write TypeQL queries in the Query pane.
The Query pane contains a code editor that offers TypeQL highlighting and autocompletion.
Run a query
When your query is ready to run, hit "Run query" in the Query pane.
Results are printed to the Results pane.
Query results
The Results pane offers four different views of results - you can choose between Log, Table, Graph and Raw.
The Log contains textual output, similar to TypeDB Console, as well as input log, and error messages.
Table view is well suited for visualising the answers of match and fetch queries in a tabular format, where each row represents an answer, and each column represents a variable.
Graph (network) output is appropriate for visualising and understanding the connections in your dataset.
Raw output allows you to see the raw HTTP response from TypeDB and is useful for debugging.
Export query results
Query results can be exported directly from the Results pane:
-
Copy the output to the clipboard, as JSON or CSV.
-
Download the output as a JSON or CSV file.
-
The Log view can also be copied, or sent to Agent mode for further analysis.
-
The Graph view can be exported as a PNG image.
Raw output can likewise be copied or downloaded as JSON.
Schema pane
The Schema pane lists your schema objects and their capabilities - e.g. owned attributes and played roles.
It acts as a reference panel indicating what you can query.
You can configure its view mode (flat or hierarchical) by clicking the options button in its top bar. Flat layout is typically better for simple schemas, while the hierarchical view is better for more complex schemas with subtyping.
The options pane also allows you to filter what capabilities are displayed. For example, you can set it to only display owned attributes, or to only display roleplayers of relations.
You can also view the full schema text from this pane.
History pane
All queries and transaction operations are timestamped and logged to the History pane. You can copy and replay queries from this pane. Any errors that occur can be inspected from this pane.
This inline pane mirrors the dedicated Query history tool.
Transaction controls
By default, transactions are fully managed by TypeDB Studio. A transaction opens when you start running a query, and commits when a schema/write query is done or closes when a read query is done.
For more fine-grained control, you can use the top bar to change the transaction mode from auto to manual. This allows you to open transactions, and perform multiple queries within a transaction before closing or committing.
Only one transaction can be open concurrently within a single instance of TypeDB Studio.
In manual mode, you also choose the transaction type (read, write, or schema) before opening a transaction. Transaction options, such as the transaction timeout, can be adjusted from the same control.
Transaction inspector
The transaction inspector shows the details of the currently open (or most recently closed) transaction, including its status, type (read, write, or schema), and the times it was opened and closed, along with low-level metadata such as the transaction ID and timeout. When a transaction is open, you can close it directly from the inspector.
Connection management
To connect, disconnect, or change connection settings, use the connection button in the top bar. While connected to TypeDB, the button changes its label to the server’s address or the custom name provided when setting up the connection.
Error handling
Query-level errors are printed to Log Output. These are typically errors returned directly from TypeDB, and will contain detailed error codes and explanations of the problem (e.g: illegal TypeQL semantics)
Transaction-level errors will trigger an error popup notification.
Both types of errors can be viewed and copied to the clipboard by visiting the History pane on the Query page.
Agent mode
Agent mode is an AI-powered assistant that helps you build and run TypeQL queries using natural language.
Describe what you want in plain language, and the assistant reads your database schema and generates TypeQL for you. You can run generated queries directly from the chat, view their results in the same Log, Table, Graph, and Raw views as the query tool, and save useful queries for later.
Agent mode keeps a separate, automatically titled conversation history for each database, so you can return to previous chats. Conversations are stored locally (see Data storage).
AI consent
Agent mode is powered by OpenAI. Because using it shares your database schema and chat messages with OpenAI, AI features are off by default and require explicit, one-time opt-in the first time you use them. You can withdraw consent at any time, and optionally delete your local chat history when doing so.
Schema tool
TypeDB Studio’s Schema tool allows you to visualise your TypeDB schema.
It renders the entire schema as a graph visualisation, with nodes representing entities, relations, attributes, etc., and edges representing capabilities such as owned attributes and played roles.
Data explorer
You can explore your TypeDB data without writing queries in the Data explorer, an interactive visual environment for exploring data.
Select any type, and it will show you a table of instances and their most interesting connections - attributes, relations, roleplayers, etc.
Select any instance from that table, and you can see all its connections in greater detail, allowing you to see exactly what data you’re looking at.
You can then jump to connected instances using the "Explore" buttons on instance details, and as such you can traverse your dataset entirely using this visual UI without needing to write queries.
Table of instances
Once you’re in the data explorer, start exploring by selecting any type from the schema. This will bring up a table of instances of that type, as well as:
-
For entities and relations: the instance’s attributes;
-
For entities and relations: a summary of the instance’s relations;
-
For relations: a summary of the instance’s roleplayers;
-
For attributes: the attribute’s value and value type;
-
The instance’s type - as tables include subtypes of the selected type.
Selecting any instance from this table will take you to Instance Details.
Instance tables support standard table functionality (filtering, sorting, pagination, column picker …) Filtering, sorting and pagination are all handled server-side using TypeQL queries.
Instance details
Instance details show the same info as tables in much more detail. In particular, roleplayers, attribute owners and linked relations include their attributes so that data is clearly labelled.
You can jump to connected instances using the "Explore" buttons on instance details, allowing you to traverse your dataset. Explorations leave behind a breadcrumb that indicates the exploration chain you’ve taken to get to a specific instance. Thus, breadcrumbs form a chain of connected concepts.
Data Explorer tabs support standard tab functionality (close, close others, close all, pin …) and are restored (but perform fresh queries) when you reopen TypeDB Studio.
Graph explorer
The Graph explorer is a dedicated tool for browsing your data as an interactive graph. Select a type from the schema, and the explorer opens a tab showing instances of that type and their connections. (This is distinct from the Graph view of query results and from the Schema tool, which visualises types rather than data.)
Navigating the graph
-
Zoom, redraw (re-run the layout), focus on a selected node, and toggle fullscreen.
-
Search for nodes and focus on the matches.
-
Choose a layout density (spacious, default, or compact).
-
Drag nodes to rearrange them; other nodes move out of the way.
-
Export the current view, or the entire graph, as a PNG image.
Exploring connections
Click a node to inspect its attributes and connections in the side panel. Using the right-click context menu or the side panel’s "Explore" controls, you can load additional relations and attributes for an instance - or for every instance of a type - on demand, without re-running a query. The explorer works in both auto and manual transaction modes.
Customising the appearance
The side panel offers extensive styling controls:
-
Elements: highlight or filter nodes by kind (entity, relation, attribute, type, role, value), by type, or by edge label (
has,links,isa,sub,owns,relates,plays). -
Labels: toggle node and edge labels individually, size nodes by their number of connections, and switch between straight and curved edges.
-
Themes: choose from built-in presets, or save your own.
-
Customise: set per-kind and per-type colours, shapes, and sizes, and configure the background.
The side panel can be docked to the right or bottom of the view.
Saved queries
You can save TypeQL queries for reuse from the query tool, and manage them in the Saved queries tool.
-
Save: From a query tab, save the current query with a name (and optional description).
-
View: The Saved queries tool lists all saved queries with their timestamps, each shown in a syntax-highlighted editor.
-
Run: Run a saved query directly; results open in the query tool.
-
Open: Open a saved query into a new query tab to edit it before running.
-
Manage: Rename or delete saved queries.
Saved queries are stored locally (see Data storage).
Query history
The Query history tool shows a chronological log of all queries and transaction operations performed in the current session. For each entry it shows the status (success or error), duration, and, where applicable, error details.
You can copy and re-run any query from the history. The same information is available inline in the query tool’s History pane.
Sample datasets
When creating a database, you can optionally load a preloaded sample dataset to get started quickly with a ready-made schema and data.
The available sample datasets are maintained in the typedb-examples repository. Studio automatically selects the dataset version that matches your server.
Databases
You can manage your databases from the database menu in the top toolbar.
Create a database
Provide a database name (letters, digits, hyphens, and underscores only). Studio checks that the name is not already in use. You can optionally choose a sample dataset to load into the new database on creation.
User manager
You can manage database users in TypeDB Studio’s User Manager.
The User Manager allows you to view, create, update, and delete users. It lists all users in a table view.
Appearance
You can switch between light mode, dark mode, and syncing with your operating system’s preference using the Appearance control in the sidebar. Your choice is remembered between sessions.
App info
The App info dialog, opened from the sidebar, shows the current version of TypeDB Studio along with helpful links to get started.
Data storage
TypeDB Studio stores your settings and working state locally in your browser’s local storage (or, on desktop, the equivalent local store). This includes saved connections and recent server addresses, preferences (such as theme and transaction settings), open query tabs, saved queries, data explorer tabs, graph appearance preferences, Agent mode conversations, and your AI consent choice.
This data stays on your device and is not sent to TypeDB. Clearing your browser data (or the desktop app’s local store) will remove these settings.
Updating TypeDB Studio
The web version at studio.typedb.com always runs the latest release and updates automatically.
For the desktop app, download the latest version from the downloads page and run it. You may optionally uninstall the previous version.