Getting Started

Anvil is a graph database written in Rust combining a property graph, native document store, and row-level security into a single binary.

Installation

# Download and install
curl -fsSL https://anvildb.com/install.sh | sh

# Or build from source
cargo build --release -p anvil

Quick Start

# Start the server (daemonizes by default)
anvil start

# Or run in foreground for development
anvil start --foreground

# Check status
anvil status

# Stop the server
anvil stop

# Open the Hammer UI
open http://localhost:5175

# Default login: admin / anvil

The server runs on port 7474 (HTTP API) and 7687 (Bolt protocol). The Hammer UI runs on port 5175.

Your First Query

-- Create nodes and a relationship
CREATE (alice:Person {name: "Alice", age: 32})
CREATE (bob:Person {name: "Bob", age: 28})
CREATE (alice)-[:KNOWS {since: 2020}]->(bob)

-- Query with pattern matching
MATCH (p:Person)-[r:KNOWS]->(friend:Person)
WHERE p.name = "Alice"
RETURN p.name, friend.name, r.since