
SurrealDB Has a Free API — Here's How to Build Multi-Model Apps with One Database
Why SurrealDB? SurrealDB is a multi-model database that combines document, graph, relational, and time-series capabilities in one. Write SQL-like queries that traverse graph relationships, handle documents, and join tables — all in one query language (SurrealQL). Free and open source. SurrealDB Cloud has a free tier. Getting Started Install # macOS brew install surrealdb/tap/surreal # Docker docker run -d -p 8000:8000 surrealdb/surrealdb:latest start --user root --pass root # Or download from surrealdb.com Connect surreal sql --endpoint http://localhost:8000 --username root --password root --namespace test --database test SurrealQL Examples Document Style -- Create records (schemaless by default) CREATE user : alice SET name = 'Alice' , email = 'alice@example.com' , plan = 'pro' , tags = [ 'developer' , 'writer' ]; CREATE user : bob SET name = 'Bob' , email = 'bob@example.com' , plan = 'free' , tags = [ 'designer' ]; -- Query with filters SELECT * FROM user WHERE plan = 'pro' ORDER BY
Continue reading on Dev.to Webdev
Opens in a new tab

