[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2010":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":22,"topics":24,"createdAt":9,"pushedAt":9,"updatedAt":42,"readmeContent":43,"aiSummary":44,"trendingCount":15,"starSnapshotCount":15,"syncStatus":45,"lastSyncTime":46,"discoverSource":47},2010,"surrealdb","surrealdb\u002Fsurrealdb","A scalable, distributed, collaborative, document-graph database, for the realtime web","https:\u002F\u002Fsurrealdb.com",null,"Rust",32364,1266,158,594,0,14,43,286,51,44.31,"Other",false,"main",[25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,5,41],"backend-as-a-service","cloud-database","database","database-as-a-service","developer-tools","devtools","distributed","distributed-database","document-database","graph-database","iot-database","nosql","realtime-database","serverless","sql","surreal","web","2026-06-12 02:00:35","\u003Ca href=\"https:\u002F\u002Fsurrealdb.com#gh-dark-mode-only\" target=\"_blank\">\n    \u003Cimg width=\"100%\" src=\"\u002Fimg\u002Fwhite\u002Fhero.png\" alt=\"SurrealDB Hero\">\n\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fsurrealdb.com#gh-light-mode-only\" target=\"_blank\">\n    \u003Cimg width=\"100%\" src=\"\u002Fimg\u002Fblack\u002Fhero.png\" alt=\"SurrealDB Hero\">\n\u003C\u002Fa>\n\n\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Fsurrealdb\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fsurrealdb\u002Fsurrealdb?color=ff00a0&include_prereleases&label=version&sort=semver&style=flat-square\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Fsurrealdb\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fbuilt_with-Rust-dca282.svg?style=flat-square\">\u003C\u002Fa>\n    &nbsp;\n\t\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Fsurrealdb\u002Factions\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Factions\u002Fworkflow\u002Fstatus\u002Fsurrealdb\u002Fsurrealdb\u002Fci.yml?style=flat-square&branch=main\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Flicense\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-BSL_1.1-00bfff.svg?style=flat-square\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n    \u003Ca href=\"https:\u002F\u002Fhub.docker.com\u002Frepository\u002Fdocker\u002Fsurrealdb\u002Fsurrealdb\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fdocker\u002Fpulls\u002Fsurrealdb\u002Fsurrealdb?label=docker%20pulls&style=flat-square\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fcrates.io\u002Fcrates\u002Fsurrealdb\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fcrates\u002Fd\u002Fsurrealdb?color=dca282&label=rust&style=flat-square\">\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fsurrealdb.js\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdt\u002Fsurrealdb.js?color=f7df1e&label=javascript&style=flat-square\">\u003C\u002Fa>\n    &nbsp;\n\t\u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fsurrealdb\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpepy\u002Fdt\u002Fsurrealdb?color=426c99&label=python&style=flat-square\">\u003C\u002Fa>\n\t&nbsp;\n\t\u003Ca href=\"https:\u002F\u002Fwww.nuget.org\u002Fpackages\u002FSurrealDb.Net\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnuget\u002Fdt\u002Fsurrealdb.net?color=4c2dcc&label=.NET&style=flat-square\">\u003C\u002Fa>\n\t&nbsp;\n\t\u003Ca href=\"https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fsurrealdb\u002Fsurrealdb.php\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdt\u002Fsurrealdb\u002Fsurrealdb.php?color=4d588b&label=php&style=flat-square\">\u003C\u002Fa>\n    &nbsp;\n\t\u003Ca href=\"https:\u002F\u002Fhub.docker.com\u002Frepository\u002Fdocker\u002Fsurrealdb\u002Fsurrealdb\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fdownloads\u002Fsurrealdb\u002Fsurrealdb\u002Ftotal?color=8259dd&label=github%20downloads&style=flat-square\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n\t\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdiscord\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F902568124350599239?label=discord&style=flat-square&color=5a66f6\" alt=\"Discord\">\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fx.com\u002Fsurrealdb\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fx-follow_us-222222.svg?style=flat-square\" alt=\"X\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fdev.to\u002Fsurrealdb\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fdev-join_us-86f7b7.svg?style=flat-square\" alt=\"Dev\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Fsurrealdb\u002F\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flinkedin-connect_with_us-0a66c2.svg?style=flat-square\" alt=\"LinkedIn\">\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002F@surrealdb\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fyoutube-subscribe-fc1c1c.svg?style=flat-square\" alt=\"YouTube\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n\t\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fblog\">\u003Cimg height=\"25\" src=\".\u002Fimg\u002Fsocial\u002Fblog.svg\" alt=\"Blog\">\u003C\u002Fa>\n\t&nbsp;\n\t\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Fsurrealdb\">\u003Cimg height=\"25\" src=\".\u002Fimg\u002Fsocial\u002Fgithub.svg\" alt=\"Github\">\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Fsurrealdb\u002F\">\u003Cimg height=\"25\" src=\".\u002Fimg\u002Fsocial\u002Flinkedin.svg\" alt=\"LinkedIn\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fx.com\u002Fsurrealdb\">\u003Cimg height=\"25\" src=\".\u002Fimg\u002Fsocial\u002Fx.svg\" alt=\"X\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fwww.youtube.com\u002F@surrealdb\">\u003Cimg height=\"25\" src=\".\u002Fimg\u002Fsocial\u002Fyoutube.svg\" alt=\"YouTube\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fdev.to\u002Fsurrealdb\">\u003Cimg height=\"25\" src=\".\u002Fimg\u002Fsocial\u002Fdev.svg\" alt=\"Dev\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdiscord\">\u003Cimg height=\"25\" src=\".\u002Fimg\u002Fsocial\u002Fdiscord.svg\" alt=\"Discord\">\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002Ftagged\u002Fsurrealdb\">\u003Cimg height=\"25\" src=\".\u002Fimg\u002Fsocial\u002Fstack-overflow.svg\" alt=\"Stack Overflow\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cbr>\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Fwhatissurreal.svg\">&nbsp;&nbsp;What is SurrealDB?\u003C\u002Fh2>\n\nSurrealDB is a multi-model database built in Rust designed to unify multiple data models into a single engine. SurrealDB combines document, graph, relational, time-series, geospatial and key-value data types with powerful search and retrieval functionalities (full-text, vector, hybrid) and real-time and event-driven capabilities, enabling developers to build powerful applications faster and more efficiently. SurrealDB can also be used as a backend-as-a-service given its support for end user authentication. Given that it’s a single Rust binary, SurrealDB can run embedded (in‐app), in the browser (via WebAssembly), in the edge, self-hosted as single backend node, or in a distributed cluster in the cloud.\n\nSurrealDB is used for data-intensive systems such as applications requiring multiple data types, data layer for AI agents, knowledge graphs, real-time apps (e.g. recommendation engines, fraud detection systems) and embedded\u002Fedge systems. With SurrealDB, you can simplify your database and API infrastructure, reduce development time, and build secure, performant apps quickly and cost-effectively.\n\n**Key features of SurrealDB include:**\n\n- **Reduces development time**: SurrealDB simplifies your database and API stack by removing the need for most server-side components, allowing you to build secure, performant apps faster and cheaper.\n- **Multi-model**: native multi-model support for document, graph, relational (enforcing schema and schemaless), time-series, geospatial and retrieval (full-text, vector, hybrid). This is offered natively through SurrealQL, SurrealDB's SQL-like intuitive query language.\n- **Real-time collaborative API backend service:** SurrealDB functions as both a database and an API backend service, enabling real-time collaboration.\n- **Support for multiple querying languages:** SurrealDB supports SQL querying from client devices, GraphQL, ACID transactions, WebSocket connections, structured and unstructured data, graph querying, full-text and vector indexing, and geospatial querying.\n- **Granular access control**: SurrealDB provides row-level permissions-based access control, giving you the ability to manage data access with precision.\n\nView the [features](https:\u002F\u002Fsurrealdb.com\u002Ffeatures), the latest [releases](https:\u002F\u002Fsurrealdb.com\u002Freleases), and [documentation](https:\u002F\u002Fsurrealdb.com\u002Fdocs).\n\n\u003Cimg width=\"100%\" src=\".\u002Fimg\u002Finterface.png\" alt=\"Surrealist\">\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Fcontents.svg\">&nbsp;&nbsp;Contents\u003C\u002Fh2>\n\n- [Features](#features)\n- [Documentation](#documentation)\n- [Getting started](#getting-started)\n\t- [Server side code](#server-side-code)\n\t- [Client side apps](#client-side-apps)\n- [SurrealDB Cloud](#surrealdb-cloud)\n- [Installation](#installation)\n\t- [Install on macOS](#install-on-macos)\n\t- [Install on Linux](#install-on-linux)\n\t- [Install on Windows](#install-on-windows)\n\t- [Run using Docker](#run-using-docker)\n- [Quick look](#quick-look)\n- [Why SurrealDB](#why-surrealdb)\n\t- [Database, API, and permissions](#database-api-and-permissions)\n\t- [Tables, documents, and graph](#tables-documents-and-graph)\n\t- [Advanced inter-document relations](#advanced-inter-document-relations-and-analysis-no-joins-no-pain)\n\t- [Simple schema definition](#simple-schema-definition-for-frontend-and-backend-development)\n\t- [Connect directly from web-browsers](#connect-and-query-directly-from-web-browsers-and-client-devices)\n\t- [Multiple different query methods](#query-the-database-with-the-tools-you-want)\n\t- [Realtime live queries and data changes](#realtime-live-queries-and-data-changes-direct-to-application)\n\t- [Scale effortlessly for high-availability](#scale-effortlessly-to-hundreds-of-nodes-for-high-availability-and-scalability)\n\t- [Extend your database with JavaScript](#extend-your-database-with-javascript-functions)\n\t- [Designed to be embedded or in the cloud](#designed-to-be-embedded-or-to-run-distributed-in-the-cloud)\n- [Community](#community)\n- [Contributing](#contributing)\n- [Security](#security)\n- [License](#license)\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Ffeatures.svg\">&nbsp;&nbsp;Features\u003C\u002Fh2>\n\n- [x] Database server, or embedded library\n- [x] Multi-row, multi-table ACID transactions\n- [x] Single-node, or highly-scalable distributed mode\n- [x] Record links and directed typed graph connections\n- [x] Store structured and unstructured data\n- [x] Incrementally computed views for pre-computed advanced analytics\n- [x] Realtime-API layer, and security permissions built in\n- [x] Store and model data in any way with tables, documents, and graph\n- [x] Simple schema definition for frontend and backend development\n- [x] Connect and query directly from web-browsers and client devices\n- [x] Use embedded JavaScript functions for custom advanced functionality\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Fdocumentation.svg\">&nbsp;&nbsp;Documentation\u003C\u002Fh2>\n\nFor guidance on installation, development, deployment, and administration, take a look at the following resources:\n\n- Documentation: https:\u002F\u002Fsurrealdb.com\u002Fdocs\n- SurrealDB University: https:\u002F\u002Fsurrealdb.com\u002Flearn\n- Aeon's Surreal Renaissance (interactive book): https:\u002F\u002Fsurrealdb.com\u002Flearn\u002Fbook\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Fgettingstarted.svg\">&nbsp;&nbsp;Getting started\u003C\u002Fh2>\n\nGetting started with SurrealDB is as easy as starting up the SurrealDB database server, choosing your platform, and integrating its SDK into your code. You can easily get started with your platform of choice by reading one of our tutorials.\n\n**Server side code**\n\n\u003Cp>\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Frust\">\u003Cimg width=60 title=\"Rust\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Frust.svg\" \u002F>\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fjavascript\">\u003Cimg width=60 title=\"JavaScript\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fjavascript.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fsdk\u002Fjavascript\u002Fengines\u002Fwasm\">\u003Cimg width=60 title=\"WebAssembly\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fwebassembly.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fsdk\u002Fjavascript\u002Fengines\u002Fnode\">\u003Cimg width=60 title=\"Node.js\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fnodejs.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fjavascript\">\u003Cimg width=60 title=\"Deno\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fdeno.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n\t\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fpython\">\u003Cimg width=60 title=\"Python\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fpython.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fgolang\">\u003Cimg width=60 title=\"Golang\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fgolang.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fdotnet\">\u003Cimg width=60 title=\".NET\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fdotnet.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fphp\">\u003Cimg width=60 title=\"PHP\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fphp.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fjava\">\u003Cimg width=60 title=\"Java\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fjava.svg\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n**Client side apps**\n\n\u003Cp>\n\t\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fjavascript\">\u003Cimg width=60 title=\"JavaScript\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fjavascript.svg\" \u002F>\u003C\u002Fa>\n    &nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fsdk\u002Fjavascript\u002Fengines\u002Fwasm\">\u003Cimg width=60 title=\"WebAssembly\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fwebassembly.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fjavascript\">\u003Cimg width=60 title=\"React\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Freactjs.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fjavascript\">\u003Cimg width=60 title=\"Next.js\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Fnextjs.svg\" \u002F>\u003C\u002Fa>\n\t&nbsp;\n    \u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fdocs\u002Fintegration\u002Fsdks\u002Fember\">\u003Cimg width=60 title=\"Ember.js\" src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsurrealdb\u002Ficons\u002Fmain\u002Femberjs.svg\" \u002F>\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Ch2>\u003Cimg height=\"20\" src=\"\u002Fimg\u002Fcloud.svg?raw=true\">&nbsp;&nbsp;SurrealDB Cloud\u003C\u002Fh2>\n\n\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fcloud#gh-dark-mode-only\" target=\"_blank\">\n    \u003Cimg width=\"100%\" src=\"\u002Fimg\u002Fwhite\u002Fcloud.png\" alt=\"SurrealDB Cloud\">\n\u003C\u002Fa>\n\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Fcloud#gh-light-mode-only\" target=\"_blank\">\n    \u003Cimg width=\"100%\" src=\"\u002Fimg\u002Fblack\u002Fcloud.png\" alt=\"SurrealDB Cloud\">\n\u003C\u002Fa>\n\nSurrealDB is available as a [managed cloud service](https:\u002F\u002Fapp.surrealdb.com\u002Foverview). Forget about infrastructure operations, monitoring, backups or capacity planning. [SurrealDB Cloud](https:\u002F\u002Fsurrealdb.com\u002Fcloud) allows you to focus on building great products using the power and flexibility of SurrealDB in just a few clicks. Grow from prototype to enterprise-scale. The SurrealDB Cloud scalable architecture allows your database to evolve as your application grows, ensuring you are always ahead of demand. However if you want to deploy SurrealDB yourself, keep reading below.\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Finstallation.svg\">&nbsp;&nbsp;Installation\u003C\u002Fh2>\n\nSurrealDB is designed to be simple to install and simple to run - using just one command from your terminal. In addition to traditional installation, SurrealDB can be installed and run with HomeBrew, Docker, or using any other container orchestration tool such as Docker Compose, Docker Swarm, Rancher, or in Kubernetes.\n\n\u003Ch4>\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Finstall\">\u003Cimg width=\"20\" src=\".\u002Fimg\u002Fapple.svg\">\u003C\u002Fa>&nbsp;Install on macOS\u003C\u002Fh4>\n\nThe quickest way to get going with SurrealDB on macOS is to use Homebrew. This will install both the command-line tools, and the SurrealDB server as a single executable. If you don't use Homebrew, follow the instructions for Linux below to install SurrealDB.\n\n```bash\nbrew install surrealdb\u002Ftap\u002Fsurreal\n```\n\nIf you want to test a version with the latest features, published every night, install the `nightly` version:\n\n```bash\nbrew install surrealdb\u002Ftap\u002Fsurreal-nightly\n```\n\n\u003Ch4>\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Finstall\">\u003Cimg width=\"20\" src=\".\u002Fimg\u002Flinux.svg\">\u003C\u002Fa>&nbsp;Install on Linux\u003C\u002Fh4>\n\nThe easiest and preferred way to get going with SurrealDB on Unix operating systems is to install and use the SurrealDB command-line tool. Run the following command in your terminal and follow the on-screen instructions.\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https:\u002F\u002Finstall.surrealdb.com | sh\n```\n\nIf you want to run a beta release, before the next version is released, the `beta` version:\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https:\u002F\u002Finstall.surrealdb.com | sh -s -- --beta\n```\n\nIf you want to test a version with the latest features, published every night, install the `nightly` version:\n\n```bash\ncurl --proto '=https' --tlsv1.2 -sSf https:\u002F\u002Finstall.surrealdb.com | sh -s -- --nightly\n```\n\n\u003Ch4>\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Finstall\">\u003Cimg width=\"20\" src=\".\u002Fimg\u002Fwindows.svg\">\u003C\u002Fa>&nbsp;Install on Windows\u003C\u002Fh4>\n\nThe easiest and preferred way to get going with SurrealDB on Windows is to install and use the SurrealDB command-line tool. Run the following command in your terminal and follow the on-screen instructions.\n\n```ps1\niwr https:\u002F\u002Fwindows.surrealdb.com -useb | iex\n```\n\nIf you want to test a version with the latest features, published every night, install the `nightly` version:\n\n```ps1\niex \"& { $(irm https:\u002F\u002Fwindows.surrealdb.com) } -Nightly\"\n```\n\n\u003Ch4>\u003Ca href=\"https:\u002F\u002Fsurrealdb.com\u002Finstall\">\u003Cimg width=\"20\" src=\".\u002Fimg\u002Fdocker.svg\">\u003C\u002Fa>&nbsp;Run using Docker\u003C\u002Fh4>\n\nDocker can be used to manage and run SurrealDB database instances without the need to install any command-line tools. The SurrealDB docker container contains the full command-line tools for importing and exporting data from a running server, or for running a server itself.\n\n```bash\ndocker run --rm --pull always --name surrealdb -p 8000:8000 surrealdb\u002Fsurrealdb:latest start\n```\n\nFor just getting started with a development server running in memory, you can pass the container a basic initialization to set the user and password as root and enable logging.\n\n```bash\ndocker run --rm --pull always --name surrealdb -p 8000:8000 surrealdb\u002Fsurrealdb:latest start --log info --user root --pass root memory\n``` \n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Ffeatures.svg\">&nbsp;&nbsp;Quick look\u003C\u002Fh2>\n\nWith strongly-typed data types, data can be fully modelled right in the database.\n\n```surrealql\nUPDATE person SET\n    waist = \u003Cint> \"34\",\n    height = \u003Cfloat> 201,\n    score = \u003Cdecimal> 0.3 + 0.3 + 0.3 + 0.1\n;\n```\n\nStore dynamically computed fields which are calculated when retrieved.\n\n```surrealql\nDEFINE FIELD can_drive ON TABLE person COMPUTED time::now() > birthday + 18y;\nCREATE person SET birthday = d\"2007-06-22\";\n;\n```\n\nEasily work with unstructured or structured data, in schema-less or schema-full mode.\n\n```surrealql\n-- Create a schemafull table\nDEFINE TABLE user SCHEMAFULL;\n\n-- Specify fields on the user table\nDEFINE FIELD name ON TABLE user TYPE object;\nDEFINE FIELD name.first ON TABLE user TYPE string;\nDEFINE FIELD name.last ON TABLE user TYPE string;\nDEFINE FIELD email ON TABLE user TYPE string ASSERT string::is_email($value);\n\n-- Add a unique index on the email field preventing duplicate values\nDEFINE INDEX email ON TABLE user COLUMNS email UNIQUE;\n\n-- Create a new event whenever a user changes their email address\nDEFINE EVENT email ON TABLE user WHEN $before.email != $after.email THEN (\n    CREATE event SET user = $value, time = time::now(), value = $after.email, action = 'email_changed'\n);\n```\n\nConnect records together with fully directed graph edge connections.\n\n```surrealql\n-- Add a graph edge between user:tobie and article:surreal\nRELATE user:tobie->write->article:surreal\n    SET time.written = time::now()\n;\n\n-- Add a graph edge between specific users and developers\nLET $from = (SELECT users FROM company:surrealdb);\nLET $devs = (SELECT * FROM user WHERE tags CONTAINS 'developer');\nRELATE $from->like->$devs UNIQUE\n    SET time.connected = time::now()\n;\n```\n\nQuery data flexibly with advanced expressions and graph queries.\n\n```surrealql\n-- Select a nested array, and filter based on an attribute\nSELECT emails[WHERE active = true] FROM person;\n\n-- Select all 1st, 2nd, and 3rd level people who this specific person record knows, or likes, as separate outputs\nSELECT ->knows->(? AS f1)->knows->(? AS f2)->(knows, likes AS e3 WHERE influencer = true)->(? AS f3) FROM person:tobie;\n\n-- Select all person records (and their recipients), who have sent more than 5 emails\nSELECT *, ->sent->email->to->person FROM person WHERE count(->sent->email) > 5;\n\n-- Select other products purchased by people who purchased this laptop\nSELECT \u003C-purchased\u003C-person->purchased->product FROM product:laptop;\n\n-- Select products purchased by people in the last 3 weeks who have purchased the same products that we purchased\nSELECT ->purchased->product\u003C-purchased\u003C-person->(purchased WHERE created_at > time::now() - 3w)->product FROM person:tobie;\n```\n\nStore GeoJSON geographical data types, including points, lines and polygons.\n\n```surrealql\nUPDATE city:london SET\n    centre = (-0.118092, 51.509865),\n    boundary = {\n        type: \"Polygon\",\n        coordinates: [[\n            [-0.38314819, 51.37692386], [0.1785278, 51.37692386],\n            [0.1785278, 51.61460570], [-0.38314819, 51.61460570],\n            [-0.38314819, 51.37692386]\n        ]]\n    }\n;\n```\n\nWrite custom embedded logic using JavaScript functions.\n\n```surrealql\nCREATE film SET\n    ratings = [\n        { rating: 6, user: user:bt8e39uh1ouhfm8ko8s0 },\n        { rating: 8, user: user:bsilfhu88j04rgs0ga70 },\n    ],\n    featured = function() {\n        return this.ratings.filter(r => {\n            return r.rating >= 7;\n        }).map(r => {\n            return { ...r, rating: r.rating * 10 };\n        });\n    }\n;\n```\n\nSpecify granular access permissions for client and application access.\n\n```surrealql\n-- Specify access permissions for the 'post' table\nDEFINE TABLE post SCHEMALESS\n    PERMISSIONS\n        FOR select\n            -- Published posts can be selected\n            WHERE published = true\n            -- A user can select all their own posts\n            OR user = $auth.id\n        FOR create, update\n            -- A user can create or update their own posts\n            WHERE user = $auth.id\n        FOR delete\n            -- A user can delete their own posts\n            WHERE user = $auth.id\n            -- Or an admin can delete any posts\n            OR $auth.admin = true\n;\n```\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Ffeatures.svg\">&nbsp;&nbsp;Why SurrealDB?\u003C\u002Fh2>\n\n\u003Cp>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Fdatabase-api-security.jpg\" \u002F>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Fmultimodel-database.jpg\" \u002F>\n\u003C\u002Fp>\n\n### Database, API, and permissions\n\nSurrealDB combines the database layer, the querying layer, and the API and authentication layer into one platform. Advanced table-based and row-based customisable access permissions allow for granular data access patterns for different types of users. There's no need for custom backend code and security rules with complicated database development.\n\n### Tables, documents, and graph\n\nAs a multi-model database, SurrealDB enables developers to use multiple techniques to store and model data, without having to choose a method in advance. With the use of tables, SurrealDB has similarities with relational databases, but with the added functionality and flexibility of advanced nested fields and arrays. Inter-document record links allow for simple to understand and highly-performant related queries without the use of JOINs, eliminating the N+1 query problem.\n\n\u003Cp>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Fgraph-database.jpg\" \u002F>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Fschema-direct-to-client.jpg\" \u002F>\n\u003C\u002Fp>\n\n### Advanced inter-document relations and analysis. No JOINs. No pain.\n\nWith full graph database functionality SurrealDB enables more advanced querying and analysis. Records (or vertices) can be connected to one another with edges, each with its own record properties and metadata. Simple extensions to traditional SQL queries allow for multi-table, multi-depth document retrieval, efficiently in the database, without the use of complicated JOINs and without bringing the data down to the client.\n\n### Simple schema definition for frontend and backend development\n\nWith SurrealDB, specify your database and API schema in one place, and define column rules and constraints just once. Once a schema is defined, database access is automatically granted to the relevant users. No more custom API code, and no more GraphQL integration. Simple, flexible, and ready for production in minutes not months.\n\n\u003Cp>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Fbrowser-sync.jpg\" \u002F>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Fmultiple-integrations.jpg\" \u002F>\n\u003C\u002Fp>\n\n### Connect and query directly from web-browsers and client devices\n\nConnect directly to SurrealDB from any end-user client device. Run SurrealQL queries directly within web-browsers, ensuring that users can only view or modify the data that they are allowed to access. Highly-performant WebSocket connections allow for efficient bi-directional queries, responses and notifications.\n\n### Query the database with the tools you want\n\nYour data, your choice. SurrealDB is designed to be flexible to use, with support for SurrealQL, GraphQL (coming soon), CRUD support over REST, and JSON-RPC querying and modification over WebSockets. With direct-to-client connection with in-built permissions, SurrealDB speeds up the development process, and fits in seamlessly into any tech stack.\n\n\u003Cp>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Frealtime-live-queries.jpg\" \u002F>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Fscale-up.jpg\" \u002F>\n\u003C\u002Fp>\n\n### Realtime live queries and data changes direct to application\n\nSurrealDB keeps every client device in-sync with data modifications pushed in realtime to the clients, applications, end-user devices, and server-side libraries. Live SQL queries allow for advanced filtering of the changes to which a client subscribes, and efficient data formats, including DIFFing and PATCHing enable highly-performant web-based data syncing.\n\n### Scale effortlessly to hundreds of nodes for high-availability and scalability\n\nSurrealDB can be run as a single in-memory node, or as part of a distributed cluster - offering highly-available and highly-scalable system characteristics. Designed from the ground up to run in a distributed environment, SurrealDB makes use of special techniques when handling multi-table transactions, and document record IDs - with no use of table or row locks.\n\n\u003Cp>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Fdatabase-plugins.jpg\" \u002F>\n\t\u003Cimg width=\"49%\" src=\".\u002Fimg\u002Fillustrations\u002Fcloud-or-embedded.jpg\" \u002F>\n\u003C\u002Fp>\n\n### Extend your database with JavaScript functions\n\nEmbedded JavaScript functions allow for advanced, custom functionality, with computation logic being moved to the data layer. This improves upon the traditional approach of moving data to the client devices before applying any computation logic, ensuring that only the necessary data is transferred remotely. These advanced JavaScript functions, with support for the ES2020 standard, allow any developer to analyse the data in ever more simple-yet-advanced ways.\n\n### Designed to be embedded or to run distributed in the cloud\n\nBuilt entirely in Rust as a single library, SurrealDB is designed to be used as both an embedded database library with advanced querying functionality, and as a database server which can operate in a distributed cluster. With low memory usage and cpu requirements, the system requirements have been specifically thought through for running in all types of environment.\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Fcommunity.svg\">&nbsp;&nbsp;Community\u003C\u002Fh2>\n\nJoin our growing community around the world, for help, ideas, and discussions regarding SurrealDB.\n\n- View our official [Blog](https:\u002F\u002Fsurrealdb.com\u002Fblog)\n- Chat live with us on [Discord](https:\u002F\u002Fsurrealdb.com\u002Fdiscord)\n- Follow us on [X](https:\u002F\u002Fx.com\u002Fsurrealdb)\n- Connect with us on [LinkedIn](https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Fsurrealdb\u002F)\n- Join the discussion on [Reddit](https:\u002F\u002Fwww.reddit.com\u002Fr\u002Fsurrealdb\u002F)\n- Visit us on [YouTube](https:\u002F\u002Fwww.youtube.com\u002F@surrealdb)\n- Join our [Dev community](https:\u002F\u002Fdev.to\u002Fsurrealdb)\n- Questions tagged #surrealdb on [Stack Overflow](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002Ftagged\u002Fsurrealdb)\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Fcontributing.svg\">&nbsp;&nbsp;Contributing\u003C\u002Fh2>\n\nWe would &nbsp;\u003Cimg width=\"15\" src=\".\u002Fimg\u002Flove.svg\">&nbsp; for you to get involved with SurrealDB development! If you wish to help, you can learn more about how you can contribute to this project in the [contribution guide](CONTRIBUTING.md).\n\n**For maintainers**: See the [release process documentation](doc\u002FRELEASING.md) for information about performing releases.\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Fsecurity.svg\">&nbsp;&nbsp;Security\u003C\u002Fh2>\n\nFor security issues, view our [vulnerability policy](https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Fsurrealdb\u002Fsecurity\u002Fpolicy), view our [Trust and Security page](https:\u002F\u002Fsurrealdb.com\u002Flegal\u002Fcategory\u002Fsecurity), and kindly email us at [security@surrealdb.com](mailto:security@surrealdb.com) instead of posting a public issue on GitHub.\n\n\u003Ch2>\u003Cimg height=\"20\" src=\".\u002Fimg\u002Flicense.svg\">&nbsp;&nbsp;License\u003C\u002Fh2>\n\nSource code for SurrealDB is variously licensed under a number of different licenses. A copy of each license can be found in [each repository](https:\u002F\u002Fgithub.com\u002Fsurrealdb).\n\n- Libraries and SDKs, each located in its own distinct repository, are released under either the [Apache License 2.0](https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Flicense\u002Fblob\u002Fmain\u002FAPL.txt) or [MIT License](https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Flicense\u002Fblob\u002Fmain\u002FMIT.txt).\n- Certain core database components, each located in its own distinct repository, are released under the [Apache License 2.0](https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Flicense\u002Fblob\u002Fmain\u002FAPL.txt).\n- Core database code for SurrealDB, located in [this repository](https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Fsurrealdb), is released under the [Business Source License 1.1](\u002FLICENSE).\n\nFor more information, see the [licensing information](https:\u002F\u002Fgithub.com\u002Fsurrealdb\u002Flicense).\n","SurrealDB 是一个可扩展的分布式文档-图数据库，专为实时网络应用设计。它支持SQL和NoSQL查询，具有强大的数据建模能力，能够处理复杂的关联数据结构。SurrealDB使用Rust语言编写，确保了高性能与安全性。此外，它还提供了云原生、无服务器架构的支持，适用于需要快速响应和高并发处理的应用场景，如物联网数据分析、在线协作工具以及任何要求实时数据同步的服务。",2,"2026-06-11 02:47:32","top_all"]