Build faster with Scarlet.
Tools, libraries, and resources to help you build your application.
@scarletdb/sdk
v0.1.1Official TypeScript SDK for Scarlet DB. Query data, manage storage, send emails, and use AI - all with type safety.
$ npm install @scarletdb/sdk
Quick Start
app.ts
import { Scarlet } from '@scarletdb/sdk';
const db = new Scarlet({ apiKey: 'sk_live_...' });
// Query data with fluent API
const users = await db.from('users')
.select()
.where({ active: true })
.limit(10);
// Upload files
await db.storage.upload('avatars', file);
// Send emails
await db.email.send({
from: 'hello@myapp.com',
to: 'user@email.com',
subject: 'Welcome!',
html: '<h1>Hello!</h1>'
});
// AI-powered queries
const result = await db.ai.query('Show users from last week');Scarlet CLI
Develop locally, manage secrets, and deploy with a single command.
npm install -g scarlet-cli
View on npm
Check out the package on npm for full documentation and version history.
npmjs.com/@scarletdb/sdk →