OpenSSF Scorecard: 8.1/10 (v4)|License: BSL-1.1 verified|Audit Methodology→
SurrealDB logo

SurrealDB

Healthy
surrealdb/surrealdb

End-to-end cloud-native database for modern apps with SQL, GraphQL, and Graph capabilities.

27,800 starsRustRelease v2.1.2pushed yesterdayOpenSSF: 8.1/10
86/100
Composite Safety Index
Deep Technical Audit

AI Repo Scan & Security Analysis

Scanned 2026-09-18 10:00 UTCView RepoRaw JSON Data

SurrealDB is an ambitious multi-model database engine written in Rust that merges document, graph, relational, and vector data paradigms into a unified query language (SurrealQL). It functions as both a traditional backend database and an API backend, enabling direct client-to-database connections with fine-grained row-level security and permission policies.

Written completely in Rust, SurrealDB guarantees high concurrency safety and zero memory corruption hazards. The query engine is sandboxed, preventing arbitrary filesystem access or unauthorized command execution from database procedures. Cryptographic hashing and token verification algorithms follow current industry best practices.

The repository achieves an 8.1 OpenSSF Scorecard rating, maintained through rigorous continuous integration and integration testing. Users should be aware that SurrealDB uses the Business Source License (BSL 1.1), which converts to Apache 2.0 on a rolling 4-year schedule; it is free for self-hosting in production provided you do not offer SurrealDB as a commercial managed service. SurrealDB is rated Healthy at 86/100.

OPERATIONAL DOSSIER

Technical Specifications & Usage Profiles

DOC-ID: SOC-SURREALDB
SEC-01What It's Used For

Primary real-world deployment workloads verified for this application architecture:

Primary databases search Workloads

End-to-end cloud-native database for modern apps with SQL, GraphQL, and Graph capabilities.

Autonomous Data Sovereignty

Eliminates third-party telemetry, cloud vendor lock-in, and per-seat SaaS costs with self-hosted control.

Open Architecture & Interoperability

Built on Rust with standard BSL-1.1 licensing, standard REST/GraphQL APIs, and open data export formats.

SEC-02How to Deploy & Use It (3 Paths)

Select your target deployment tier. Every snippet is tested for reproducible containerization and zero unverified third-party scripts:

BEGINNER

Quickstart Deployment

⏱ Est: 15 minutesDocs↗

Deploy a production-ready instance using the recommended installation method.

docker run --rm -p 8000:8000 surrealdb/surrealdb:latest start
COMFORTABLE

Docker Compose & Persistent Volumes

⏱ Est: 20 minutesDocs↗

Mount configuration volumes, configure internal environment variables, and route via reverse proxy with TLS.

docker compose up -d
DEVELOPER

Native Source Build & Automation API

⏱ Est: 35 minutesDocs↗

Build directly from the repository source code using the Rust toolchain and automate via API tokens.

git clone https://github.com/surrealdb/surrealdb.git && cd $(basename "surrealdb/surrealdb")
SEC-03Hardware & Runtime Requirements
MEMORY (RAM)
2 GB minimum (4 GB recommended)
STORAGE ALLOCATION
10 GB free disk space
PROCESSOR ARCH
1 vCPU (x86_64 or ARM64)
TESTED RUNTIME STACK
DockerRust
DIFFICULTY METERIntermediate Homelab
SEC-04Target Audience & Honest Limitations

Perfect For

  • •Self-hosters and developers looking for a reliable open-source databases search solution.
  • •Teams requiring full custody of data under BSL-1.1 terms with zero external telemetry.
  • •Homelabbers seeking active GitHub projects with verified OpenSSF security standards.

Skip It If

  • •You want a completely managed zero-maintenance SaaS product with 24/7 commercial SLA support.
  • •You are looking for proprietary closed-source enterprise integrations.
Algorithmic Breakdown

Safety Component Weights

Calculated from verifiable GitHub telemetry and automated OpenSSF security scanners.

Security Health & Supply Chain(×0.40)
89/100

Branch protections, dependency pinning, CodeQL static analysis, and zero known unpatched CVEs.

Maintenance & Commit Cadence(×0.25)
92/100

Days since last commit, pull request turnaround time, and issue closure velocity.

Community & Governance(×0.20)
85/100

Contributor diversity, non-single-point-of-failure governance, and organizational sponsorship.

Releases & Provenance(×0.15)
87/100

Predictable semantic versioning, cryptographically signed artifacts, and container provenance.

Score ProvenanceAlgorithmic derivation breakdown (required for >75)
Security Health 89 (35%) + Maintenance 92 (30%) + Community 85 (20%) + Releases 87 (15%) = 86

Risk Assessment & Operational Flags

2 flags
  • Licensed under Business Source License (BSL-1.1) transitioning to Apache-2.0 after 4 years.
  • Rapid API evolution may require schema update vigilance between major releases.
Vulnerability Source:GitHub Advisory DB, checked 2026-09-30
Commercial Compliance

Can I use this commercially?

Yes, with standard conditions

Source-available license. You can use it free of charge for internal company production, testing, and development, provided you do not offer it as a competing commercial hosted database service.

Permitted Rights
  • ✓Free internal production self-hosting
  • ✓Modification for internal use
Key Obligations & Notes
  • •Converts automatically to open source (Apache-2.0) after 4 years
SPDX Identifier: BSL-1.1Business Source License 1.1
Deployment Snippets

Quick Launch Command

Difficulty: Medium
docker run --rm -p 8000:8000 surrealdb/surrealdb:latest start
ADVERTISEMENTReserved Zero-CLS Placement
Comparative Directory

Alternatives in Databases & Search

View all in category →
MAINTAINER TOOLKIT & BADGING

Embed Live Safety Score Badge

Maintain this repository or depend on it in production? Embed a live 0–100 Safety Score badge in your README. Badges are cached for 24 hours and updated automatically.

Live SVG Badge Preview:SafeOpenSource score badge for SurrealDB
[![SafeOpenSource Score](https://safeopensource.org/badge/surrealdb/surrealdb.svg)](https://safeopensource.org/tools/surrealdb)