A modern, multi-tenant SaaS platform that allows users to instantly generate, deploy, and manage custom web forms and micro-apps without writing code.
Built with Next.js 16, React 19, and Supabase, this project demonstrates advanced architectural patterns including dynamic UI generation from JSON schemas, strict server-side validation, and automated database maintenance.
- Dynamic Schema Rendering: Forms are not hardcoded. The
FormRendererdynamically paints the UI on the fly based on JSON blueprints stored in the database. - Multi-Tenant Architecture: Total data isolation using Supabase Row-Level Security (RLS). Users can only access apps and submissions tied to their specific
user_id. - Zero-API Backend: Completely powered by Next.js Server Actions (
'use server') for secure, seamless client-to-database communication without a separate Node/Express server. - Dual-Layer Validation: Strict type-safety and data validation using Zod on both the client (for instant UI feedback) and the server (for secure database insertion
To ensure the platform remains fast and stays within free-tier limits during public demos, the backend features a robust, automated defense system:
- The Spammer Shield (Hard Cap): Users are strictly limited to creating a maximum of 2 apps per account.
- The Conveyor Belt (Rolling Window): Submissions are capped at 50 per app. When the 51st submission arrives, the oldest submission is silently deleted (FIFO), ensuring the app never breaks for the user but the database never bloats.
- The Night Watchman (pg_cron): An automated SQL cron job runs every hour to enforce a global limit of 250 apps across the entire platform, automatically purging old, abandoned demo accounts.
Frontend
- Framework: Next.js 16 (App Router)
- UI Library: React 19
- Styling: Tailwind CSS v4 & shadcn/ui
- Form State: React Hook Form
- Client Validation: Zod v4
- Icons & Toasts: Lucide React & Sonner
Backend & Database
- Server Logic: Next.js Server Actions
- Database: Supabase (PostgreSQL)
- Storage Strategy: Schema definitions stored as
JSONB - Authentication: Supabase Auth (SSR Cookie-based)
1. Clone the repository
git clone [https://github.com/devangdhyani/APP_builder-CLAUDE-PROJ4-.git](https://github.com/devangdhyani/APP_builder-CLAUDE-PROJ4-.git)
cd ev-rental-app




