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| Module | What it does |
|---|---|
| b77.db | Schemaless cloud database with collections |
| b77.auth | Sign up, sign in and per-user data |
| b77.ai | Chat completions and JSON output |
| b77.storage / b77.email | File uploads and transactional email |
| b77.http | Third-party APIs with your secret keys, called from the server |
| b77.payments | One-time payments and subscriptions into your own Stripe or Whop account |
| Webhooks | Send 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.