SurrealDB Online Compiler

About the SurrealDB compiler

Multi-model database. Runs in browser via WASM. Run SurrealDB code in your browser with no install and no signup — the editor, the input and the output share one screen. SurrealDB compiles and runs on your own device through WebAssembly, so once the page has loaded it keeps working without a network connection.

Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.

A SurrealDB example

This is the program the SurrealDB editor opens with — run it as it is, then change it.

-- SurrealDB — runs in browser via WASM
-- Insert data
CREATE person SET name = 'Alice', age = 28, city = 'NYC';
CREATE person SET name = 'Bob', age = 32, city = 'LA';
CREATE person SET name = 'Charlie', age = 25, city = 'Chicago';
-- Query all
SELECT * FROM person;
-- Filter
SELECT * FROM person WHERE age > 25;

More Databases compilers

Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.