# Repository Briefing: vesoft-inc/nebula
> Source: https://repoforai.com/repo/vesoft-inc/nebula (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/vesoft-inc/nebula
- **Official Docs / Website**: https://nebula-graph.io
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: C++
- **License**: Apache-2.0
- **Engineering Health**: B+ (72/100 · Maintenance 20/35 · Adoption 21/25 · Releases 11/20 · License 20/20)
- **Latest Release**: v3.8.0 (2024-05-17) — https://github.com/vesoft-inc/nebula/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Docker, Self-Hosted
- **Momentum**: 12,486 ★ total (+0 24h / +10 7d) · 1,344 forks
- **Topics**: `big-data`, `cpp`, `database`, `distributed`, `distributed-systems`, `graph`, `graph-database`, `graphdb`, `graphrag`, `hacktoberfest`, `knowledge-base`, `knowledge-graph`
- **When to Use**: Best for: Teams that need multi-hop relationship retrieval over a growing knowledge graph, can operate replicated services, and want a graph data layer for GraphRAG, recommendations, or relationship analysis. Skip if: The workload is primarily text similarity search, fits comfortably on one host, or calls for a turnkey GraphRAG pipeline with ingestion, retrieval, and generation bundled together.

## Overview
```text
### Architecture & Core Mechanics
NebulaGraph is a distributed graph database written in C++. It separates query compute from storage, with distinct query, metadata, and storage roles. A client submits an nGQL query to the query layer, which coordinates work against the storage layer using graph metadata. Raft coordinates storage replicas and underpins strong data consistency; horizontal scale comes from distributing data and work across nodes.

The root CMakeLists.txt and cmake/ establish the build system, while conf/, docker/, and package/ cover configuration and delivery. The udf/ directory is visible, but it does not establish a supported plugin API or ABI. For application integration, nGQL is the concrete interface to evaluate first.

### Key Capabilities & Differentiators
nGQL is OpenCypher-compatible and is the primary interface for querying relationships. Role-based access control governs access at the database layer, and graph analytics are part of the ecosystem to evaluate alongside transactional queries. OpenCypher compatibility is not a guarantee that an existing Cypher workload will run unchanged: test the operators, functions, and result semantics the application relies on.

For GraphRAG, NebulaGraph fits as the store for entities and relationships and as the query layer for retrieving connected context. Do not count on the database to provide document ingestion and chunking, embedding generation, vector retrieval, reranking, or LLM orchestration. Evaluate those components separately and define how the application combines their results with graph traversals.

### Trade-offs & Limitations
Compared with keeping a graph on one server, NebulaGraph gives teams a way to distribute storage and query work and maintain replicated data. In return, operators must manage multiple services and diagnose performance across a network. Raft adds coordination to replicated writes, and traversals that span partitions can incur extra network work. Benchmark representative graph shapes, especially high-degree vertices and multi-hop queries, alongside write traffic and node-failure tests.

If the workload is mostly fixed joins over data already in a relational database, test that database first. If retrieval is mostly semantic similarity over text, a vector-first stack may be simpler. NebulaGraph is a stronger candidate when graph traversal is central and a single host is an operational limit. Apache-2.0 permits commercial self-hosting, but does not remove the cost of running a distributed system.

### Hardware & Deployment Guide
Use the versioned 3.8.0 quick start for a Docker evaluation or follow the source-build workflow. The repository includes docker/, conf/, and package/, plus C++ build scaffolding under CMakeLists.txt and cmake/. A source build requires a suitable C++ toolchain and CMake; use the versioned install instructions for exact prerequisites. A cloud path on AWS is also available.

For self-hosting, plan persistent storage, inter-node networking, replica placement, monitoring, and recovery exercises. Size CPU and memory for query concurrency and traversal fan-out, and disk and network for graph data and replication. The supplied release sequence runs from v3.5.0 (May 2023) through v3.6.0 (August 2023) to v3.8.0 (May 2024), but does not establish feature changes or a safe upgrade path. Review version-specific notes and rehearse upgrades before production.
```

## Key Capabilities
```text
- Service architecture: Query, metadata, and storage roles are separated in the distributed C++ core.
- Consistency: Raft coordinates replicas and underpins strong data consistency.
- Query interface: nGQL provides an OpenCypher-compatible surface; validate dialect and semantics when migrating.
- Access control: Role-based authorization provides a database-level control for graph access.
- GraphRAG integration: Retrieves relationship context without taking ownership of embeddings or generation.
- Deployment: Docker and source builds support self-hosting; the repository includes docker/, conf/, and a root CMakeLists.txt.
```

## Quick Start / Clone
```bash
git clone --depth 1 https://github.com/vesoft-inc/nebula.git
cd nebula
```
