Back to top


SurrealDB supports a number of methods for connecting to the database and performing data queries.

Client libraries

When building applications on top of SurrealDB, using one of the official client libraries should make things simpler. Current libraries include Node.js, Golang, Deno, and Rust


By default, all queries can be performed over a HTTP API, with support for full SQL queries, and querying and modification of records using RESTful endpoints.


The WebSocket API supports JSON-RPC querying, with full support for persistent connections, session authentication, realtime queries, and update notifications.