The default stack
When you don't specify a stack in your prompt, Myndlab generates code using its default combination: a React frontend built with Vite, a FastAPI backend written in Python, and a PostgreSQL database. This trio was chosen because it covers the widest range of use cases, has excellent library ecosystems in all three layers, and is well-understood by Myndlab's code generation models.
The default stack is a solid choice for the vast majority of SaaS apps, internal tools, and data-driven dashboards. You only need to deviate from it if your team has a specific skills requirement, an existing codebase you're building alongside, or a deployment constraint that favours a different runtime.
ℹNote.The stack you choose affects which libraries Myndlab imports, how authentication is scaffolded, how database migrations are generated, and which deployment targets are available. Changing it later costs credits because substantial parts of the codebase need to be regenerated. Pick your stack before your first code-gen pass.
Specifying stack in a prompt
The simplest way to set your stack is to include a one-line Stack declaration in your prompt. Myndlab recognises this pattern and uses it to configure all three layers before generating any code.
text
Build a project management tool for software agencies.
Stack: Next.js frontend, Express backend, Supabase database.
Users: Agency owners and developers.
- Owners can create client projects, set budgets, and view reports.
- Developers are assigned to projects and log time against tasks.
Data: Clients have many Projects. Projects have many Tasks and
TimeEntries. TimeEntries belong to a Developer and a Task.
The main view is a weekly time-tracking grid. Include a monthly
burn-rate chart on the Owner dashboard.
You can also be more explicit if you have additional constraints:
text
Stack: Next.js 14 App Router frontend, Go Fiber backend,
PostgreSQL 16 database (self-hosted, not managed Supabase).
Deploy target: single VPS running Docker Compose.
No third-party auth providers — use JWT with refresh tokens.
💡Tip.If you mention a stack in your prompt but Myndlab can't fulfil part of it (for example, a database engine it doesn't yet support), it will flag this in the spec review step and suggest the closest available alternative. You'll always have a chance to confirm or change the stack before code generation begins.
GCC: sovereign Postgres vs managed Supabase
For teams operating under GCC (Gulf Cooperation Council) data residency requirements, UAE data protection laws, or similar regional compliance frameworks, database hosting location is a material concern. Supabase's managed cloud runs on AWS regions that may not meet in-country data residency requirements for sensitive data categories.
For GCC-region deployments, Myndlab recommends the following configuration:
1
Use sovereign Postgres on a UAE-based VPS
Self-host PostgreSQL on a server physically located in a compliant data centre (for example, AWS me-central-1 in UAE, Microsoft Azure UAE North, or a local provider like du or Etisalat Data Centres). Myndlab generates standard PostgreSQL schema and migration files that work identically on managed and self-hosted instances.
2
Use Go Fiber or FastAPI as the backend
Both produce self-contained deployables (a single Go binary or a Python app in a Docker container) that are straightforward to run on a sovereign VPS. Avoid the Next.js-only (no separate backend) mode for GCC deployments — it makes it harder to enforce data handling boundaries.
3
Replace Supabase Auth with a self-hosted JWT layer
In your prompt, specify 'No Supabase Auth — use JWT with refresh tokens stored in httpOnly cookies.' Myndlab will scaffold a complete JWT authentication system inside your backend that stores no user data on external managed services.
4
Declare the deployment constraint in your prompt
Myndlab will adjust its generated Docker Compose and deployment configuration to target a single-server or on-premise setup instead of defaulting to Vercel or Railway.
text
Stack: Next.js frontend, Go Fiber backend,
self-hosted PostgreSQL (UAE data residency required).
Auth: JWT with refresh tokens in httpOnly cookies.
No Supabase. No third-party auth services.
Deploy target: Docker Compose on a single Ubuntu 24.04 VPS.
All data must remain within UAE infrastructure.
ℹNote.Myndlab does not provide legal compliance advice. If your application must meet specific regulatory requirements (DIFC Data Protection Law, Saudi PDPL, or others), consult a qualified legal advisor. The configuration above is a technical starting point, not a compliance certification.