Installation
Prerequisites
- Rust 1.75.0 or higher (only needed for building from source)
- LMDB system library (included with macOS/Linux)
Installation Options
Option 1: Build from Source (Recommended)
The SensibleDB CLI (called "nexus") can be built from source:
git clone https://github.com/Sensible-Analytics/SensibleDB.git
cd SensibleDB
cargo install --path sensibledb-cli
nexus --version
Option 2: Download Pre-built Binary (Coming Soon)
Pre-built binaries for macOS, Linux, and Windows will be available on the GitHub releases page.
Option 3: Homebrew (Coming Soon)
Note: The install script (install.sensibledb-db.com) is temporarily unavailable. Use the source build method above.
Quick Start
1. Initialize Project
2. Write Schema and Queries
schema.hx:
N::User {
INDEX name: String,
email: String,
created_at: Date DEFAULT NOW
}
E::Follows {
From: User,
To: User,
Properties: { since: Date }
}
queries.hx:
QUERY createUser(name: String, email: String) =>
user <- AddN<User>({name: name, email: email})
RETURN user
QUERY getUser(name: String) =>
user <- N<User>({name: name})
RETURN user
3. Check and Deploy
4. Test
curl -X POST http://localhost:6969/createUser \
-H "Content-Type: application/json" \
-d '{"name": "John", "email": "john@example.com"}'
For Non-Technical Users: Try the Explorer UI
If you want to try SensibleDB without using the CLI:
- Download SensibleDB Explorer for macOS
- Launch and add your documents folder
- Start searching!
Best Practices
- Always run
nexus checkbefore deploying - Use
build_mode = "release"for production - Never commit credentials to version control