
Security News
RubyGems Adds Cooldown Feature to Bundler for Newly Published Gems
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.
@realtimex/local-app-sdk
Advanced tools
TypeScript/JavaScript SDK for building Local Apps that integrate with RealtimeX.
npm install @realtimex/local-app-sdk
Before using this SDK, ensure your Supabase database is set up:
Note: Schema setup is handled entirely by the Main App. You don't need to run any SQL manually.
import { RealtimeXSDK } from '@realtimex/local-app-sdk';
// No config needed - RTX_APP_ID is auto-detected from environment
const sdk = new RealtimeXSDK();
// Insert activity
const activity = await sdk.activities.insert({
type: 'new_lead',
email: 'user@example.com',
});
// Trigger agent (optional - for auto-processing)
await sdk.webhook.triggerAgent({
raw_data: activity,
auto_run: true,
agent_name: 'processor',
workspace_slug: 'sales',
});
When you start your Local App from the RealtimeX Main App:
RTX_APP_ID and RTX_APP_NAME are automatically setconst sdk = new RealtimeXSDK({
realtimex: {
url: 'http://custom-host:3001', // Default: localhost:3001
appId: 'custom-id', // Override auto-detected
appName: 'My App', // Override auto-detected
}
});
// Insert
const activity = await sdk.activities.insert({ type: 'order', amount: 100 });
// List
const pending = await sdk.activities.list({ status: 'pending', limit: 50 });
// Get
const item = await sdk.activities.get('activity-uuid');
// Update
await sdk.activities.update('activity-uuid', { status: 'processed' });
// Delete
await sdk.activities.delete('activity-uuid');
// Manual mode (creates calendar event only)
await sdk.webhook.triggerAgent({
raw_data: { email: 'customer@example.com' },
});
// Auto-run mode (creates event and triggers agent immediately)
await sdk.webhook.triggerAgent({
raw_data: activity,
auto_run: true,
agent_name: 'processor',
workspace_slug: 'sales',
thread_slug: 'optional-thread', // Optional: specific thread
});
// Get available agents in a workspace
const agents = await sdk.api.getAgents();
// Get all workspaces
const workspaces = await sdk.api.getWorkspaces();
// Get threads in a workspace
const threads = await sdk.api.getThreads('sales');
// Get task status
const task = await sdk.api.getTask('task-uuid');
| Variable | Description |
|---|---|
RTX_APP_ID | Auto-set by Main App when starting your app |
RTX_APP_NAME | Auto-set by Main App when starting your app |
┌─────────────────┐ ┌──────────────────┐ ┌─────────────┐
│ Your App │────▶│ RealtimeX Main │────▶│ Supabase │
│ (SDK) │ │ App (Proxy) │ │ Database │
└─────────────────┘ └──────────────────┘ └─────────────┘
MIT
FAQs
SDK for building Local Apps that integrate with RealtimeX
We found that @realtimex/local-app-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
RubyGems and Bundler 4.0.13 introduced an opt-in cooldown feature that delays newly published gems during dependency resolution.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.