A scalable backend powered by your ambitions
Our intuitive backend platform empowers you to build sophisticated production apps in minutes instead of months. Eliminate infrastructure hassles so you can focus on creating innovative features.
import createClient from '@singlebase/singlebase-js'
const API_KEY = "[[my-api-key]]"
const singlebase = createClient({ api_key: API_KEY })
// Create a user
const user = await singlebase
.auth
.createUserWithPassword({
email: 'user@singlebase',
password: 'secure!P@ssword1',
display_name: 'SinglebaseCloud'
})
// Insert document
const doc = await singlebase.collection('articles')
.insert({
title: 'Hello SinglebaseCloud',
content: 'How are you doing?',
is_draft: true
})
// With X-SQL
const docs = await singlebase
.query(`
SELECT _key, title, content
FROM articles
WHERE $where
SORT BY _created_at
DESC LIMIT 10`, {
variables: {
where: {
categories: "blog"
}
}
}
)
Connect, build, and scale with ease
Vector DB, Relational Document DB, Auth, Storage, all accessible via GraphQL, SQL, and REST
Start building your next project with unlimited usage for Vector DB, Relation Document DB, Search, Auth, Storage.
Start Building