selfdb-js-sdk

Build a SelfDB BaaS backend with Auth, Tables, Storage, and Realtime modules.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/Selfdb-io/StreamX --skill selfdb-js-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: selfdb-js-sdk
Source: https://github.com/Selfdb-io/StreamX/tree/main/.agentone/skills/selfdb-js-sdk
Command: npx skills add https://github.com/Selfdb-io/StreamX --skill selfdb-js-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive, self-contained toolkit for building a backend with SelfDB BaaS, covering authentication, data tables, storage, and real-time updates. It enforces the built-in users management pattern and avoids creating custom user tables, while offering robust modular interfaces for Auth, Tables, Storage, and Realtime.

Core Features & Use Cases

  • Auth: Manage users with SelfDB's built-in user system and optional user_profiles extension for extended data.
  • Tables: Create and manipulate structured data with CRUD, including realtime-enabled tables for live updates.
  • Storage: Work with buckets and files to store media and documents, with bucket-level access control.
  • Realtime: Subscribe to live changes on tables via Phoenix Channels WebSocket.

Quick Start

To get started, configure the SelfDB client with baseUrl and apiKey, authenticate, load necessary IDs, and perform sample CRUD, storage, and realtime operations.

Frequently Asked Questions about selfdb-js-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add backend authentication and database tables to a JavaScript app?

Backend authentication and database tables are handled through modular SDK interfaces for Auth and Tables. This allows JS/TS applications to leverage built-in user management and structured CRUD operations without creating custom user tables.

How does realtime data synchronization work with backend tables?

Realtime data synchronization with backend tables operates by subscribing to live changes via Phoenix Channels WebSocket. The Realtime module pushes updates to your JS/TS application whenever realtime-enabled tables are modified.

Can I use bucket-based storage for file management in a JavaScript SDK?

Bucket-based storage for file management in a JavaScript SDK is supported through the Storage module. It enables working with buckets and files to store media and documents while enforcing bucket-level access control.

What is the best way to structure a scalable backend with auth, storage, and realtime features?

A scalable backend with auth, storage, and realtime features is structured using modular BaaS architecture. This solution defines separate Auth, Tables, Storage, and Realtime modules with frontmatter metadata, error handling, and helper utilities.

Do I need to create custom user tables for user management with this BaaS?

Creating custom user tables for user management with this BaaS is unnecessary. The solution enforces a built-in users management pattern and offers an optional user_profiles extension for handling extended user data.

How do I configure the SelfDB client to start performing CRUD operations?

Configuring the SelfDB client for CRUD operations involves setting the baseUrl and apiKey, authenticating, and loading necessary IDs. Once configured, you can perform sample CRUD, storage, and realtime operations.