🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@kolbo/app-sdk

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kolbo/app-sdk

Kolbo App Builder SDK — auth, data, storage and AI for generated apps

Source
npmnpm
Version
2.1.1
Version published
Weekly downloads
38
35.71%
Maintainers
1
Weekly downloads
 
Created
Source

@kolbo/app-sdk

The official SDK for Kolbo App Builder generated apps.

Provides a unified client for auth, data, storage, and AI — all backed by the Kolbo platform.

Installation

npm install @kolbo/app-sdk

Usage

In apps generated by Kolbo App Builder, src/lib/kolbo.ts is auto-injected and pre-configured. You never need to call createClient yourself — just import:

import { kolbo } from '../lib/kolbo';

For custom apps or external projects:

import { createClient } from '@kolbo/app-sdk';

const kolbo = createClient(); // reads VITE_KOLBO_* env vars automatically

Namespaces

kolbo.auth

Kolbo-native auth. Email + password, email OTP, and Google OAuth (via the shared Kolbo proxy at auth.kolbo.ai) — all backed by Kolbo's own user store. No separate Supabase project required.

// Email + password
await kolbo.auth.signUp({ email: 'user@example.com', password: 'secret' });
await kolbo.auth.signInWithPassword({ email: 'user@example.com', password: 'secret' });

// Email OTP (magic code)
await kolbo.auth.signInWithOtp({ email: 'user@example.com' });
await kolbo.auth.verifyOtp({ email: 'user@example.com', code: '123456' });

// Google OAuth — works identically in sandbox previews and published URLs.
// Opens a popup, uses PKCE, returns a Kolbo session.
const { data, error } = await kolbo.auth.signInWithGoogle({ redirectTo: '/auth/callback' });

// Get current user
const { data: { user } } = await kolbo.auth.getUser();

// Sign out
await kolbo.auth.signOut();

// Listen to auth state changes (same-tab + cross-tab via `storage` events)
const { data: { subscription } } = kolbo.auth.onAuthStateChange((event, session) => { ... });
// ...later
subscription.unsubscribe();

Bring-your-own Supabase (optional)

Set VITE_KOLBO_BACKEND=supabase and provide VITE_SUPABASE_URL + VITE_SUPABASE_ANON_KEY to route auth + data through your own Supabase project instead of Kolbo's backend. Requires @supabase/supabase-js as a peer dependency.

kolbo.data

MongoDB-backed shared database. Scoped to your app — other apps can't read your data.

// List with filter + sort + pagination
const { data, error } = await kolbo.data.list('tasks', {
  where: { userId: user.id, status: 'active' },
  sort: { createdAt: -1 },
  limit: 20,
  offset: 0,
});

// CRUD
const { data: task } = await kolbo.data.create('tasks', { title: 'Buy milk', userId: user.id });
const { data: updated } = await kolbo.data.update('tasks', task._id, { status: 'done' });
await kolbo.data.delete('tasks', task._id);

kolbo.storage

// Upload a file
const { data } = await kolbo.storage.upload('avatars', file.name, file);
const publicUrl = data.url; // permanent CDN URL

// List files
const { data: files } = await kolbo.storage.list('avatars');

// Delete
await kolbo.storage.delete('avatars', data.id);

kolbo.ai

Call Kolbo's AI APIs. Polls automatically — resolves when generation is complete.

// Chat / text generation
const { content, session_id } = await kolbo.ai.chat({ message: 'Tell me a joke' });

// Continue a conversation
const { content: reply } = await kolbo.ai.chat({ message: 'Another one', session_id });

// Image generation
const { url } = await kolbo.ai.generateImage({ prompt: 'Sunset over the ocean', aspect_ratio: '16:9' });

// Video generation (takes 1–5 minutes)
const { url: videoUrl } = await kolbo.ai.generateVideo({ prompt: 'Timelapse of a busy city', duration: 5 });

// Music
const { url: musicUrl } = await kolbo.ai.generateMusic({ prompt: 'Upbeat jazz background' });

// TTS
const { url: speechUrl } = await kolbo.ai.generateSpeech({ text: 'Hello world', voice: 'shimmer' });

VITE_KOLBO_API_KEY and VITE_KOLBO_BASE are auto-injected into every Kolbo App Builder app. You never need to configure them manually.

Environment variables

VariableRequiredDescription
VITE_KOLBO_APP_IDYour app's unique ID
VITE_KOLBO_API_URLKolbo backend URL (auth + data + storage live under /api/*)
VITE_KOLBO_API_KEYFor kolbo.aiKolbo public API key
VITE_KOLBO_BASEFor kolbo.aiKolbo API base URL (default: https://api.kolbo.ai/api)
VITE_KOLBO_OAUTH_PROXY_URLOptionalOverride Kolbo OAuth proxy base (default: https://auth.kolbo.ai/oauth/v1)
VITE_KOLBO_BACKENDOptionalkolbo (default) or supabase (BYO Supabase)
VITE_SUPABASE_URLBYO Supabase onlyYour own Supabase project URL
VITE_SUPABASE_ANON_KEYBYO Supabase onlyYour own Supabase anon key

All variables are automatically injected by Kolbo App Builder at build time.

License

MIT

Keywords

kolbo

FAQs

Package last updated on 23 Apr 2026

Did you know?

Socket

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.

Install

Related posts