Getting Started
Install Traverse, start the server, and run your first query in under five minutes.
Install
Traverse is open source under MIT OR Apache-2.0, at your option. Releases are published on GitHub; the source is at github.com/truespar/traverse.
Latest version: 0.9.2
Open traverse.truespar.com: the engine runs inside the browser tab as WebAssembly, with no download, no server and no API key. The query engine and the graph algorithms are the same code as the server's.
What you get:
- openCypher, GQL (ISO/IEC 39075) and the graph algorithm library.
- Sample databases ready to load: Movies, the Pokec social network (small and medium), OurAirports and OpenFlights routes.
- Databases kept in the browser's private file system (OPFS), so they survive reloads.
- Studio: the query editor, graph view, schema browser and algorithm drawer.
What needs the server:
- More than one user: the browser tab is single-user.
- Bolt, gRPC and the HTTP API for other clients.
- Large datasets: the browser engine's memory is limited to 1 GB.
- The Graph Assistant and server-side persistence.
Download traverse-0.9.2-x86_64-linux.tar.gz
x86_64, glibc 2.34 or later (Debian 12, Ubuntu 22.04, RHEL 9 and newer).
# Download, verify and extract
curl -LO https://truespar.com/releases/traverse/latest/traverse-0.9.2-x86_64-linux.tar.gz
curl -LO https://github.com/truespar/traverse/releases/download/v0.9.2/traverse-0.9.2-x86_64-linux.tar.gz.sha256
sha256sum -c traverse-0.9.2-x86_64-linux.tar.gz.sha256
tar xzf traverse-0.9.2-x86_64-linux.tar.gz
# Move to PATH (optional)
cd traverse-0.9.2-x86_64-linux
sudo mv traverse-server traverse-cli traverse-admin traverse-bench /usr/local/bin/
# Start the server
traverse-serverThe tarball also has a detached GPG signature:
curl -LO https://github.com/truespar/traverse/releases/download/v0.9.2/traverse-0.9.2-x86_64-linux.tar.gz.asc
gpg --keyserver keyserver.ubuntu.com --recv-keys 5E124423325C3C6FFA3D730DB7372036EF6437DE
gpg --verify traverse-0.9.2-x86_64-linux.tar.gz.asc traverse-0.9.2-x86_64-linux.tar.gzDownload traverse-0.9.2-x86_64-windows.zip
x86_64. The executables are Authenticode-signed by The Intelligence Company AB (publ), and the ZIP has a .sha256 next to it on the release.
# Download and extract
Invoke-WebRequest -Uri https://truespar.com/releases/traverse/latest/traverse-0.9.2-x86_64-windows.zip -OutFile traverse.zip
Expand-Archive traverse.zip -DestinationPath .
# Start the server
.\traverse-0.9.2-x86_64-windows\traverse-server.exeTo run as a Windows service, see Server Configuration.
Download traverse-0.9.2-aarch64-macos.tar.gz
Apple Silicon. There is no x86_64 macOS build; on an Intel Mac, run the Docker image or build from source (Rust stable).
# Download, verify and extract
curl -LO https://truespar.com/releases/traverse/latest/traverse-0.9.2-aarch64-macos.tar.gz
curl -LO https://github.com/truespar/traverse/releases/download/v0.9.2/traverse-0.9.2-aarch64-macos.tar.gz.sha256
shasum -a 256 -c traverse-0.9.2-aarch64-macos.tar.gz.sha256
tar xzf traverse-0.9.2-aarch64-macos.tar.gz
# Move to PATH (optional)
cd traverse-0.9.2-aarch64-macos
sudo mv traverse-server traverse-cli traverse-admin traverse-bench /usr/local/bin/
# Start the server
traverse-serverThe binaries are Developer ID-signed and notarized, so Gatekeeper accepts them without a right-click. The archive carries a .sha256; there is no GPG signature, which the Linux tarball has instead.
docker run -p 7690:7690 -p 7691:7691 -v traverse-data:/data truespar/traverse:0.9.2
# the generated API key is in the container's log
docker logs <container>
# or choose a key that stays the same across restarts
docker run -p 7690:7690 -p 7691:7691 -v traverse-data:/data \
-e TRAVERSE_API_KEY=tvs_your_key truespar/traverse:0.9.2Databases are kept in the /data volume.
Each release includes four binaries: traverse-server, traverse-cli, traverse-admin and traverse-bench.
Start the Server
Without a data path the server runs an empty in-memory database and keeps nothing. Point --data at a directory to keep databases there; each one is a .tvdb file:
mkdir data
traverse-server --data ./dataThe server listens on two ports:
- Bolt on port
7690, for drivers and the CLI - HTTP API and Studio on port
7691, for the web UI and REST API
On startup the server prints an API key (prefixed tvs_). You need it to log in to Studio.
Tip: the key is generated anew on every start. Set TRAVERSE_API_KEY (it must start with tvs_) to keep the same one. See Server Configuration for every option.
Connect with Studio
Open http://localhost:7691 in your browser and enter the API key printed at startup. Studio has a query editor, graph explorer, schema browser and import tools.
Connect with the CLI
The CLI connects over Bolt:
traverse-cli
# or specify a host
traverse-cli --bolt bolt://localhost:7690Once connected you can run Cypher queries interactively:
traverse> CREATE (a:Person {name: "Alice"})-[:KNOWS]->(b:Person {name: "Bob"}) RETURN a, b;
traverse> MATCH (n:Person) RETURN n.name;See the CLI reference for meta-commands and output formats.
Connect with a Bolt Driver
Traverse implements Bolt 5.1 to 6.0, so any compatible driver works. Point it at bolt://localhost:7690:
from neo4j import GraphDatabase
driver = GraphDatabase.driver("bolt://localhost:7690")
with driver.session() as session:
result = session.run("MATCH (n) RETURN n LIMIT 5")
for record in result:
print(record)See the driver guides for your language:Python,JavaScript,Java,Go,Rust,.NET.
Import Data
Use Cypher CREATE statements for ad-hoc data. For bulk loads from CSV, use the admin tool:
# Import CSV files into a new .tvdb database
traverse-admin import \
--nodes Person=people.csv \
--edges KNOWS=friendships.csv \
--output ./data/social.tvdbOr import Cypher scripts:
traverse-admin cypher-import \
--input data.cypher \
--output ./data/mydb.tvdbRestart the server (or start it with the data directory) to load the new database, or upload the file to a running server and load it there. See Admin for the full import reference.
Or Build Databases in Code
The embedded SDKs run the engine in your own process, with no server: open or create a .tvdb file, load it with the bulk writer, and query it. A file built that way can be uploaded to a server and put behind an alias, so queries move to the new data in one step. See.NET,Java,Python,Node.js andGo.
Next Steps
- Server Configuration: environment variables, TOML config, authentication
- Cypher: supported query language syntax
- HTTP API: REST endpoints for programmatic access
- Bench: download datasets and benchmark performance