DOCUMENTATION

Quick Start

Get your first DEATHBASE project running in under 60 seconds.

1. Create a project

Sign up and create a new project from the dashboard. You'll receive:

  • A project API URL
  • An anonymous (anon) key for client-side access
  • A service role key for server-side access

2. Install the SDK

npm install @deathbase/js

3. Initialize the client

import { createClient } from '@deathbase/js'

const db = createClient(
  'https://your-project.deathbase.pages.dev',
  'your-anon-key'
)

// Query your database
const { data, error } = await db
  .from('users')
  .select('*')
  .limit(10)

console.log(data)