Open Source · Apache License 2.0

A Modern, Production-Grade Technology Stack

AppWithAI generates complete, deployable applications built on widely adopted, enterprise-proven open source technologies — with no proprietary dependencies and no vendor lock-in.

Generated Application Stack

Every application generated by AppWithAI uses the same coherent, full-stack architecture. Generated code is standard TypeScript — readable, extensible, and entirely owned by you.

Frontend

TanStack Start

Server-side rendered React application with full-stack type safety from database to UI component.

Framework TanStack Start with React 19+
Router TanStack React Router
UI Components Shadcn UI + TailwindCSS 4+
Data Tables TanStack Table
Forms TanStack Form
Server State TanStack Query (React Query)
Client State Zustand

Why TanStack Start?

  • ✓ Full-stack type safety with end-to-end TypeScript
  • ✓ Server-side rendering for fast initial load and SEO
  • ✓ Unified data fetching with TanStack Query caching
  • ✓ High-performance, virtualized data grids
  • ✓ Schema-validated forms with granular field control
  • ✓ Accessible, themeable component library
  • ✓ File-based routing with type-safe navigation
Backend

NestJS + PostgreSQL

Structured, modular API server with enterprise-grade authentication, RBAC, and type-safe database access.

Framework NestJS 10+ with Fastify
Database ORM Kysely (type-safe SQL builder)
Authentication Better-Auth 1.5+
Business Rules GoRules Zen Engine (DMN)
Validation Zod schema validation
Database PostgreSQL (primary)
API RESTful JSON (auto-generated)

Why This Backend Stack?

  • ✓ Modular NestJS architecture with dependency injection
  • ✓ Fastify delivers high-throughput API performance
  • ✓ Kysely provides compile-time SQL correctness
  • ✓ Better-Auth handles email and password sign-in and server-side sessions
  • ✓ GoRules runs DMN decision tables as executable rules
  • ✓ PostgreSQL: ACID-compliant, row-level locking, proven at scale
  • ✓ Zod schemas enforce API contract at runtime

The AI and Code Generation Engine

AppWithAI itself is powered by a sophisticated AI orchestration layer that drives the analysis, design, and code generation pipeline.

AI Orchestration

Mastra.ai Multi-Agent Framework

Orchestration Mastra.ai 1.59+ (agent framework)
Primary LLM Anthropic Claude (via SDK)
Fallback LLM OpenAI-compatible endpoint
Local LLMs Ollama (any local model)
Code Execution E2B Sandbox
RAG / Embeddings Mastra FastEmbed + LibSQL
Copilot UI CopilotKit 1.68+
  • ✓ Stateful multi-step workflow execution
  • ✓ Bring your own LLM — cloud or on-premise
  • ✓ Sandboxed code execution for safe generation
  • ✓ RAG retrieval for domain-aware generation
Code Generation

Template-Based Generation Engine

ERD Format Mermaid (Crow's Foot notation)
Templates Handlebars 4.7+
Formatting Prettier 3.1+
Type Checking TypeScript 7+
E2E Tests Playwright (auto-generated)
Unit Tests Vitest
Runtime Bun.js 1.3+
  • ✓ Generates complete frontend + backend + migrations
  • ✓ Playwright E2E tests generated per entity
  • ✓ Production-formatted, lint-clean TypeScript output
  • ✓ Docker configuration included

The Application Dictionary Architecture

A metadata-driven architecture — proven over decades in enterprise ERP systems — that makes every generated application configurable without code changes.

The Application Dictionary Pattern

Inspired by Compiere and iDempiere — open-source ERP platforms refined over 20+ years — this architectural approach stores application behavior in metadata tables rather than hardcoded logic.

Key Insight:

When behavior is driven by metadata, every generated application is configurable at runtime — no redeployment required.

Dictionary Tables (sys_ prefix)
  • • sys_table — All data tables and their metadata
  • • sys_column — Every field definition and constraints
  • • sys_window — Application screens and their organization
  • • sys_tab — Screen sections and tab layout
  • • sys_field — Form field configuration and display logic
  • • sys_reference — Dropdown lists and lookup definitions
  • • sys_val_rule — Validation rule definitions
  • • sys_access_role — RBAC role definitions
  • • sys_access_record — Record-level access policies
  • • sys_access_field — Field-level visibility rules

Generated Application Structure

What Every Generated Application Includes:

  • ✓ Complete database migration scripts (Kysely)
  • ✓ Role-Based Access Control tables and guards
  • ✓ Application Dictionary (sys_ metadata tables)
  • ✓ Business entity tables (bus_ prefix)
  • ✓ RESTful API endpoints for all entities
  • ✓ Admin interface for runtime UI configuration
  • ✓ Playwright E2E test suite
  • ✓ Docker configuration for all services
  • ✓ AI natural language query interface (optional)
Every Generated Entity Satisfies:
  • ✓ UUID primary keys (globally unique)
  • ✓ Foreign key relationships enforced at database level
  • ✓ Optimistic concurrency control
  • ✓ Soft deletes for historical record retention
  • ✓ Table-level, field-level, and row-level security
  • ✓ Complete audit trail (who, what, when)
  • ✓ Zod-validated API payloads

Open Source — Apache License 2.0

AppWithAI is fully open source under the Apache License 2.0 — one of the most permissive and enterprise-trusted open source licenses in the world.

What Apache 2.0 Means for You

  • Free to use — commercially and personally, without fees
  • Free to modify — fork the codebase and customize any part of the generator
  • Free to distribute — include in your own products or services
  • Patent grant — contributors grant an explicit patent license, protecting users
  • No copyleft — generated applications are yours, with no license obligations
  • No vendor lock-in — your generated code runs independently, forever

Generated code is entirely yours. Applications generated by AppWithAI are not subject to any open source obligations. You own 100% of the output — modify, distribute, and commercialize without restriction.

⚖️

Apache License 2.0

Version 2.0, January 2004
The Apache Software Foundation

Read the Full License

Copyright 2026 AppWithAI Contributors

Built to Scale

Generated applications are built on proven, horizontally scalable technologies designed for production workloads.

🗄️

PostgreSQL

Supports millions of records, row-level locking, full ACID compliance, and proven performance in the world's largest production environments.

NestJS with Fastify

High-throughput API handling with enterprise-grade dependency injection. Fastify benchmarks among the fastest Node.js HTTP servers available.

🚀

TanStack Start

Server-side rendering for fast initial page loads, CDN-deployable static assets, and client-side hydration for interactive performance.

Deployment Flexibility

Generated applications are standard, portable TypeScript codebases with no proprietary runtime dependencies:

  • ☁️ Any cloud provider — AWS, Azure, GCP, or others
  • 🏢 On-premise deployment in your own data center
  • 🐳 Docker and Docker Compose configuration included
  • 🔓 Generated code is entirely owned and controlled by you

How AppWithAI Compares

See how AppWithAI compares to generic low-code platforms and traditional custom development.

Capability AppWithAI Generic Low-Code Custom Development
AI-generated data model from natural language
Human-in-the-loop review before code generation N/A
Application Dictionary pattern (metadata-driven) Rarely Varies
Runtime form and UI customization (no code) Sometimes Rarely
Enterprise RBAC (table, field, row-level) Partial Varies
Multi-level approval workflow engine Sometimes Custom-built
AI natural language query interface
Visual ERD designer with live validation Limited
Full ownership of generated code 100% No Full
No vendor lock-in
Open source license Apache 2.0 Proprietary N/A

Supported Business Domains

AppWithAI generates applications across a wide range of industries and business functions.

💰

Finance & Accounting

Purchase Orders, Invoice Processing, Expense Claims, Budget Requests, Cost Center Management

👥

Human Resources

Leave Requests, Onboarding Workflows, Performance Reviews, Training Records, Offboarding

🔧

Operations

Work Orders, Maintenance Requests, Inventory Management, Asset Tracking, Field Service

💼

Sales

Quotations, Customer Contracts, Commission Calculations, Opportunity Tracking, Sales Reports

🛒

Procurement

Vendor Registration, RFQ Management, Contract Lifecycle Management, Vendor Scorecards

Compliance

Policy Acknowledgements, Incident Reports, Audit Findings, Risk Registers, Control Testing

Ready to See the Stack in Action?

Schedule a technical consultation to discuss your requirements and see a live generation demonstration.

Talk to Our Team