Docs/Services & SDKs
DocsServices & SDKs
Free

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 the window.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.

MethodDescription
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.

No Google Cloud Console setup required. GenMB handles the OAuth configuration behind the scenes so you can add authentication to your app without any external account setup.

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.

Rate limited to 100 requests per hour per app to prevent abuse. This limit applies across all AI services (chatbot, text, and image) combined.

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.

Combine RBAC with Google Auth to create authenticated apps with different access levels — for example, an admin dashboard where only admin-role users can see management features.

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.

The Data Connector SDK (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.

ServiceFreePro
File Storage — Max file size10 MB100 MB
File Storage — Total storage/app100 MB100 GB
File Storage — Max files/app5050,000
AI Chatbot — Requests/hour100100
File uploads — Rate10/min per app10/min per app
Contact FormNo specific limitsNo specific limits
General API rate limiting applies at 200 requests per minute per IP across all endpoints. Contact Form submissions fall under this general limit.

FAQs

Do I need to configure anything to use services?
No. Services are auto-detected and SDKs are injected automatically. If your generated app includes a file upload form, the file storage SDK is added. If it has a login button, the auth SDK is added. No API keys or manual setup required.
Do services work in deployed apps?
Yes. Services work both in the GenMB editor preview (via the Next.js proxy) and in deployed apps on *.genmb.com or custom domains (via the deploy-service proxy). The SDKs use relative paths that are proxied transparently.
Can I use services in exported code?
Services depend on GenMB's backend proxy. If you export your code and deploy it outside GenMB, the service SDKs will not work because the proxy endpoints will not exist. You will need to replace them with your own backend implementations.
What if the AI detects the wrong services?
You can manually enable or disable services from the Services panel in the app editor sidebar. This overrides the auto-detection. The SDKs will be re-injected accordingly on the next code save.
Are there additional services beyond the 9 built-in ones?
Yes. GenMB has 51+ plugins (Stripe, Supabase, Clerk, OpenAI, etc.) that provide additional capabilities beyond the built-in services. Plugins are configured in the Integrations panel and inject their own code and dependencies.

Ready to build?

Create your first app for free — no credit card required.