Services & SDKs
9 built-in services with client SDKs that are auto-detected and injected into your generated apps — file storage, auth, AI, and more.
Overview
GenMB includes 9 built-in services that add backend capabilities to your generated apps without any configuration. The AI analyzes your code, detects which services are needed, and automatically injects the corresponding client SDKs.
Services are detected automatically — no manual setup or API keys required. Each service has a client SDK injected as a script tag into your app's HTML. Services work both in preview (via Next.js proxy) and in deployed apps (via deploy-service proxy). All services are available on the Free plan unless noted otherwise.
Auto-Detection
You do not need to manually enable services. When the AI generates or refines your code, it scans for patterns (file upload forms, login buttons, chat interfaces, etc.) and automatically injects the matching SDKs. You can override the detection from the Services panel in the sidebar.SDK Namespace
All SDKs are available on thewindow.genmb namespace. For example, use window.genmb.storage for file storage, window.genmb.auth for authentication, and window.genmb.ai for AI completions.File Storage
Cloud file storage for your generated apps. Upload, list, and delete files via window.genmb.storage. Backed by Google Cloud Storage with plan-based quotas.
| Method | Description |
|---|---|
| upload(file, options) | Upload a file with optional folder organization. |
| list(options) | List all files or files in a specific folder. |
| delete(filename) | Delete a file by name. |
| getUrl(filename) | Get the public URL for a stored file. |
No API keys needed — the SDK authenticates through GenMB's proxy automatically.
Google Auth
Google OAuth authentication for your generated apps. Users can sign in with their Google account via window.genmb.auth.
The service provides a complete Google OAuth flow — sign in, sign out, and session management. User profile data (name, email, avatar) is available after authentication, and session state persists across page reloads.
AI Chatbot
AI completion proxy for building chatbot interfaces and text generation features. Available via window.genmb.ai. Also powers the Text AI and Image AI services.
Send prompts and receive AI-generated completions through a simple API. The service supports streaming responses for real-time chat interfaces. Text AI lets you generate, summarize, or transform text content, while Image AI generates images from text descriptions.
Contact Form
A form submission handler for contact forms, feedback forms, and any user input that needs to be stored. Available via window.genmb.contact.
Submit form data with a single function call — no backend code needed. Submissions are stored in Firestore and accessible via the Database Browser. The service supports custom fields, so any form structure is accepted. Optional email notification is available when a new submission is received.
RBAC
Role-Based Access Control for managing user permissions in your generated apps. Available via window.genmb.rbac.
Define roles (admin, editor, viewer, etc.) and assign them to users. Check permissions before showing UI elements or executing actions. Roles are stored per-app and managed through the SDK.
Data Client
Client SDK for reading and writing data to your app's database. Available via window.genmb.data. Supports both Firestore and PostgreSQL via DataConnect.
Query, create, update, and delete records in your app's database. Works with Firestore collections for NoSQL data access and with PostgreSQL tables when using DataConnect for relational data.
window.genmb.connector) provides access to external data sources like Airtable, Google Sheets, and Notion. It is a separate SDK from the Data Client.How Services Are Detected
GenMB's AI automatically analyzes your generated code to detect which services are needed. Matching SDKs are injected into your app's HTML without manual configuration.
After code generation, the AI scans for patterns like file upload forms, login buttons, chat interfaces, and data operations. Each service has detection hints defined in its capability definition (e.g., "file upload", "sign in with Google", "send message").
Detected services are listed in the Services panel in the app editor sidebar. You can manually enable or disable services from the Services panel if the auto-detection is not what you want. SDKs are re-injected on every code save to stay in sync with your app's current functionality.
Quotas & Limits
Services have plan-based quotas to ensure fair usage. Here are the key limits for the most commonly used services.
| Service | Free | Pro |
|---|---|---|
| File Storage — Max file size | 10 MB | 100 MB |
| File Storage — Total storage/app | 100 MB | 100 GB |
| File Storage — Max files/app | 50 | 50,000 |
| AI Chatbot — Requests/hour | 100 | 100 |
| File uploads — Rate | 10/min per app | 10/min per app |
| Contact Form | No specific limits | No specific limits |
FAQs
Do I need to configure anything to use services?▾
Do services work in deployed apps?▾
Can I use services in exported code?▾
What if the AI detects the wrong services?▾
Are there additional services beyond the 9 built-in ones?▾
Ready to build?
Create your first app for free — no credit card required.