Appearance
Using your backend
Once the SDK is set up, every capability you configured is available through the foundation instance. Each Configure page has a Use in your app section with the exact calls — here's the map.
| Capability | In your app | SDK |
|---|---|---|
| Authentication | Login, registration, sessions | foundation.auth.* |
| Entities | Read and write your data | foundation.db.* |
| Uploads & Files | File uploads | foundation.files.* |
| Billing | Plans, usage, gating | foundation.account.*, foundation.config.plans |
| Integrations | Connect services | foundation.integration.* |
| Branding | App name, theme | foundation.config.* |
Patterns that apply everywhere
- Handle unauthenticated users before calling authenticated services.
- Add loading, empty, success, and error states to every call.
- Paginate lists that can grow (
limit+cursor). - Read
foundation.configfor backend-provided theme, features, and plans instead of hard-coding them.