Prerequisites
Minimum Redis version: FalkorDB requires Redis 8.0.0 or later. Earlier versions (including the Redis 7.x series) are not supported. If you are self-hosting, make sure to upgrade Redis before installing or upgrading FalkorDB.
-
FalkorDB Instance: Set up FalkorDB (on-prem or cloud).
Option A — Docker (quickest)
This starts FalkorDB with no authentication. Open the built-in browser at http://localhost:3000 to explore your graphs visually. See Docker & Docker Compose for additional options (persistence, auth, production images). Option B — FalkorDB Cloud Create a free FalkorDB Cloud Instance and skip local setup entirely.
- Install FalkorDB Client:
Step 1: Model a Social Network as a Graph
Let’s create a simple graph for a social network where:- Nodes represent
UserandPost. - Relationships connect
Users with aFRIENDS_WITHrelationship, andUsers are connected via aCREATEDrelationship toPosts
Graph Schema
Node Types:
Relationship Types:
Step 2: Load Data into FalkorDB
Here’s how you can model and load the data.Cypher Query to Create the Data
Step 3: Access Your Data
Connect to FalkorDB
The examples below connect to a local FalkorDB instance started with thedocker run command above, which requires no password.
Using authentication? Start FalkorDB with a password:Then pass your password in the client configuration, for examplepassword="yourpassword"in Python orpassword: 'yourpassword'in JavaScript, or use the equivalent credential option in your client library. See Docker & Docker Compose for details.
Execute Cypher Queries
Create the Graph
Query the Graph
Query Relationships
Step 4: Explore Further
Congratulations! 🎉 You have successfully modeled, loaded, and queried a social network graph with FalkorDB. Next, dive deeper into FalkorDB’s powerful features:- FalkorDB Browser — Explore your graph visually
- Advanced Cypher
- Data Types — Nodes, relationships, scalars, temporal types, and collections
- Database Operations
- GenAI Tools
- Agentic Memory
Frequently Asked Questions
What are the minimum requirements to run FalkorDB?
What are the minimum requirements to run FalkorDB?
FalkorDB requires Redis 8.0.0 or later. The quickest setup is via Docker:
docker run -p 6379:6379 -p 3000:3000 --rm falkordb/falkordb:latest. Alternatively, use FalkorDB Cloud to skip local setup entirely.Do I need to install Redis separately?
Do I need to install Redis separately?
No. The official FalkorDB Docker images include everything needed. If you are self-hosting without Docker, you must install Redis 8.0.0+ separately and load the FalkorDB module. Earlier Redis versions (including 7.x) are not supported.
Which client libraries can I use with FalkorDB?
Which client libraries can I use with FalkorDB?
FalkorDB has official clients for Python, Node.js, Java, Rust, Go, PHP, and C#. Install them via pip, npm, Maven, Cargo, or the respective package managers. See the Client Libraries page for full details.
What is the FalkorDB Browser at port 3000?
What is the FalkorDB Browser at port 3000?
The FalkorDB Browser is a built-in web UI for visually exploring your graphs. When running the
falkordb/falkordb:latest Docker image, open http://localhost:3000 to create, visualize, and query graphs interactively. For production, use falkordb/falkordb-server which excludes the browser.How do I model data in FalkorDB?
How do I model data in FalkorDB?
FalkorDB uses the Property Graph Model. Data is modeled as nodes (entities with labels and properties) connected by relationships (directed edges with a type and properties). Use the Cypher query language to create and query your graph structure.