Writing Effective Prompts
The quality of your prompt directly impacts the quality of your app. Clear, detailed descriptions give the AI the context it needs to generate exactly what you want.
- Start with the app type and purpose: "Create a todo app for managing daily tasks" or "Build a tip calculator for restaurant servers"
- Describe the complete user experience: "Users can add items with titles and due dates, mark them complete with a checkbox, and delete by swiping left"
- Specify visual style and branding: "Modern dark theme with purple accents, rounded corners, and subtle shadows on cards"
- Include edge cases and empty states: "Show a friendly message with an illustration when there are no items" or "Display error toast if form validation fails"
- Define data structures: "Each expense has an amount, category, date, and optional note"
- Be iterative: Start with core features, then add complexity through chat conversations
Choosing the Right Framework
Each framework has strengths. Match your choice to your project complexity and what you plan to do with the code afterward.
- Vanilla JS: Best for simple tools, calculators, landing pages, and single-purpose apps. Generates the fastest load times and smallest bundle.
- React: Best for complex state management, interactive dashboards, and multi-component architectures. Component reusability makes maintenance easier.
- React + TypeScript: Best for large multi-page apps where type safety and IntelliSense matter. Ideal for SaaS dashboards and production apps.
- When unsure, start with Vanilla JS—you can always regenerate with React later if you need more structure
Using Agent Mode
Agent Mode is GenMB's autonomous building capability. It breaks complex requests into steps, executes them sequentially, and handles errors automatically.
- Enable Agent Mode for multi-feature apps with 5 or more distinct features, multiple screens, or complex logic
- Agent Mode creates a plan first, then executes step-by-step. Watch the task list to track progress and understand what's being built.
- The AI automatically retries failed steps up to 3 times with different approaches. You don't need to intervene on transient errors.
- Checkpoints are created after each successful step, allowing rollback to any point if something goes wrong
- Use standard mode for quick prototypes, single-purpose tools, or when you want fast results without the planning phase
- For very complex apps, consider building in stages: generate the core, refine it, then add features incrementally
Iterating with Chat
Chat is your tool for refining generated apps. Specific requests get better results than vague ones.
- Use chat immediately after generation to refine—don't wait until the app is "done"
- Be specific and actionable: "Change the header background color to #1a365d" instead of "make it look better"
- Reference existing elements clearly: "Add a logout button in the top right corner next to the user profile icon"
- Ask for one change at a time for best results. Multiple changes in one message can cause the AI to miss some.
- Use version history to experiment fearlessly—you can always rollback if a change doesn't work out
- If the AI doesn't understand, rephrase with more context: explain what you see and what you want to see instead
PWA Configuration
Progressive Web Apps work offline and can be installed on mobile devices like native apps.
- Enable PWA for any app you want users to access repeatedly, especially mobile users
- PWAs cache content for offline access—users can use your app without internet after the first load
- Users can install your app directly from the browser to their home screen, no app store required
- Customize the app name, short name, and icon in settings before enabling PWA
- Test PWA functionality on actual mobile devices—the install experience varies by browser and OS
- Consider which pages truly need offline access and structure your app accordingly
Deployment Tips
GenMB provides instant deployment to custom subdomains with SSL included.
- Choose a memorable, professional subdomain (yourproject.genmb.com) that reflects your app's purpose
- SSL/HTTPS is configured automatically—no certificates to manage or renew
- Test your app thoroughly in the preview before deploying. Check all features, forms, and edge cases.
- Share the URL directly with users—no app store submission, no review process, no waiting
- Update deployments anytime with one click. Changes go live immediately.
- For production use, consider exporting the code and deploying to your own infrastructure
Database and Backend
GenMB auto-provisions databases and backend infrastructure. Describe an app that needs data, and the AI sets everything up.
- GenMB auto-detects your database type: Firestore (NoSQL) for document-based apps, PostgreSQL via Data Connect for relational apps with foreign keys and joins
- Use the Schema Designer to visually design your database tables before generation—the AI uses your schema to generate consistent code
- The Database Browser lets you browse records, create/edit/delete data, sort, filter, and paginate—for both Firestore and PostgreSQL
- For backend apps (Express or FastAPI), GenMB deploys a Dev Sandbox with real server execution so you can test APIs in the preview
- Environment variables can be managed in the Env Vars panel—they are automatically injected into deployments and sandboxes
- Backend apps auto-generate package.json or requirements.txt from your code imports—no manual dependency management needed
Using Integrations
GenMB has 45+ plugin integrations. Add Supabase, Stripe, Clerk, and more from the Integrations panel. The AI automatically generates code that works with your configured services.
- Enable integrations before generating—the AI uses your config to generate properly integrated code
- Supabase: Add your Project URL and anon key for database, auth, and storage. GenMB will generate proper Supabase client setup and queries.
- Stripe: Add your publishable key for payment forms. The AI generates checkout flows with proper error handling.
- Clerk: Add your publishable key for user authentication. GenMB generates sign-in/sign-up flows and user session management.
- Use the Env Vars panel to manage API keys and secrets securely—they are injected into deployments and sandboxes automatically
- Integrations are per-app—different apps can use different services or configurations
App Analytics
Track how users interact with your deployed apps using built-in analytics. Monitor visitor counts, referral sources, and top pages without any third-party setup.
- Access analytics from the Analytics panel in your app—no third-party scripts or configuration needed
- View visitor data across 7-day, 30-day, and 90-day periods with comparison metrics to spot trends
- Top referrers show where your traffic comes from—use this to understand which marketing channels work best
- Top pages reveal which parts of your app users visit most—focus your refinement efforts on high-traffic areas
- Analytics data updates daily—check regularly after launching to understand user behavior patterns
Custom Branding
Make your deployed apps look fully professional with custom branding. Set logos, brand colors, metadata, and SEO settings so your apps represent your brand, not GenMB.
- Open the Branding panel from your app sidebar to configure custom logos, colors, and metadata for deployed apps
- Upload your logo and set brand colors—deployed apps will display your branding instead of GenMB defaults
- Configure SEO metadata (title, description, Open Graph images) for better search engine visibility and social sharing
- Custom branding persists across deployments—update once and all future deploys use your settings
- Combine with custom domains for a fully white-labeled experience: yourdomain.com with your branding
RBAC and Permissions
Add role-based access control to your apps. Define user roles like admin, editor, and viewer, and GenMB generates architecture-aware code that enforces permissions throughout your app.
- Enable RBAC from the app settings to add role-based access control to your generated code
- Define roles (admin, editor, viewer) and permissions—GenMB generates code that checks permissions on every protected action
- The RBAC SDK integrates with your chosen authentication provider (Clerk, Supabase Auth, or custom)
- Architecture-aware generation means permission checks are added to routes, components, and API calls automatically
- Test different roles in the preview to verify permission boundaries work correctly before deploying