
SurrealDB Has a Free API — SQL + Document + Graph in One Database
SurrealDB is the multi-model database that combines SQL, document, graph, and time-series — one database to replace PostgreSQL + MongoDB + Neo4j. Free and open source. Why SurrealDB? Multi-model — relational + document + graph in one DB SurrealQL — SQL-like query language with graph traversal Real-time — live queries via WebSocket Auth built-in — row-level security, JWT, scopes Serverless — runs embedded, as server, or in-browser (WASM) HTTP & WebSocket API — no driver needed Quick Start # Install curl -sSf https://install.surrealdb.com | sh # Start server surreal start --user root --pass root memory # or with file storage: surreal start --user root --pass root file:mydata.db # Connect via CLI surreal sql --conn http://localhost:8000 --user root --pass root --ns test --db test CRUD Operations -- Create records (schemaless by default) CREATE user SET name = 'Alice' , email = 'alice@example.com' , age = 30 , skills = [ 'TypeScript' , 'React' , 'Node.js' ]; -- Create with specific ID CREA
Continue reading on Dev.to JavaScript
Opens in a new tab




