Backend & SDK

SDK overview

The b77 runtime available in every app.

Every builder77 app automatically includes the b77 runtime. You never add a script tag yourself: builder77 adds it to previews and published apps.

await b77.ready;                         // session restored
const tasks = await b77.db.list('tasks'); // database
b77.auth.user;                           // signed-in user or null
const text = await b77.ai.chat('Hi!');   // AI
b77.toast('Saved!');                     // toast message
ModuleWhat it does
b77.dbSchemaless cloud database with collections
b77.authSign up, sign in and per-user data
b77.aiChat completions and JSON output
b77.storage / b77.emailFile uploads and transactional email
b77.httpThird-party APIs with your secret keys, called from the server
b77.paymentsOne-time payments and subscriptions into your own Stripe or Whop account
WebhooksSend record and sign-up events to other tools

All methods return Promises. Errors throw an Error with a readable message and a status property.

Using the SDK outside builder77

Exported web projects keep working: the export adds the runtime script tag pointing to your app's backend. Native clients (like your Flutter app) use the REST API.