Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โšก PromithicAI

PromithicAI Banner

HTML5 CSS3

AI-Powered Web Application Builder inspired by modern AI development platforms.

Planner โ†’ Coder โ†’ Reviewer

๐ŸŒ Try PromithicAI โ€ข โญ GitHub


โœจ Features

Feature Description
๐Ÿค– Multi-Agent Workflow Planner โ†’ Coder โ†’ Reviewer pipeline
โšก Live Code Streaming Real-time AI generation simulation
๐Ÿ’ป Monaco Editor VS Code-like editing experience
๐Ÿ”ฅ Firebase Authentication Email & Google Sign-in
โ˜๏ธ Supabase Sync Cross-device project history
๐ŸŒ™ Dark / Light Theme Persistent theme switching
๐Ÿงฉ Live Sandbox Preview Execute generated apps safely
๐Ÿ“ฅ HTML Export Download production-ready HTML
๐Ÿš€ One-click Deployment Deploy generated applications
๐Ÿ“ฑ Responsive Design Desktop & mobile optimized

๐Ÿ“ท Project Preview

Landing Page

Landing


Builder Console

Builder


Authentication

Login


Settings

Settings


๐Ÿ›  Tech Stack

Category Technologies
Frontend HTML5, CSS3, Vanilla JavaScript (ES6+)
Editor Monaco Editor
Authentication Firebase Authentication (Email/Password, Google OAuth)
Database Supabase PostgreSQL (REST Client)
Deployment Vercel, GitHub Pages
Architecture Multi-Agent Workflow, Client-Side Rendering
Styling CSS Variables, Flexbox, Grid, Glassmorphism


๐Ÿ“‚ Project Structure

PromithicAI/
โ”œโ”€โ”€ assets/
โ”‚   โ””โ”€โ”€ banner.png                # Repository Banner
โ”‚
โ”œโ”€โ”€ screenshots/
โ”‚   โ”œโ”€โ”€ landing.png
โ”‚   โ”œโ”€โ”€ builder.png
โ”‚   โ”œโ”€โ”€ login.png
โ”‚   โ””โ”€โ”€ settings.png
โ”‚
โ”œโ”€โ”€ index.html          # Marketing / Landing Page
โ”œโ”€โ”€ builder.html        # Main IDE Console Workspace
โ”œโ”€โ”€ settings.html       # API Configuration & Engine State
โ”œโ”€โ”€ login.html          # Firebase Authentication
โ”œโ”€โ”€ signup.html         # User Onboarding & Signup
โ”œโ”€โ”€ vercel.json         # Vercel Clean URL Redirects
โ”œโ”€โ”€ README.md           # Project Specification
โ”œโ”€โ”€ LICENSE             # MIT License
โ”œโ”€โ”€ .gitignore          # Version Control Filters
โ”‚
โ”œโ”€โ”€ css/                # Styling Architecture
โ”‚   โ”œโ”€โ”€ base.css
โ”‚   โ”œโ”€โ”€ variables.css   # Global Theme & Color Tokens
โ”‚   โ”œโ”€โ”€ animations.css  # Core Layout Transitions
โ”‚   โ”œโ”€โ”€ components.css
โ”‚   โ”œโ”€โ”€ landing.css
โ”‚   โ”œโ”€โ”€ auth.css
โ”‚   โ”œโ”€โ”€ settings.css
โ”‚   โ”œโ”€โ”€ builder.css
โ”‚   โ”œโ”€โ”€ brand-story.css # PromithicAI Brand Segment Styling
โ”‚   โ”œโ”€โ”€ fx.css          # Cursor spotlight, magnetic, and dynamic glows
โ”‚   โ””โ”€โ”€ polish.css      # v1.1 Micro-Interaction Polish (logo pulse, shimmers, active glows)
โ”‚
โ””โ”€โ”€ js/                 # Vanilla JS Logic Components
    โ”œโ”€โ”€ theme.js        # Light/Dark Mode Persistence
    โ”œโ”€โ”€ router.js       # Fade-In Client-Side Routing
    โ”œโ”€โ”€ firebase.js     # Firebase SDK Wrapper (Email/Password, Google OAuth)
    โ”œโ”€โ”€ supabase.js     # Supabase REST Client
    โ”œโ”€โ”€ auth.js         # Session Detection & Navbar Badge Render
    โ”œโ”€โ”€ editor.js       # Monaco Editor & Fallback API
    โ”œโ”€โ”€ streaming.js    # AI Token Output Simulation
    โ”œโ”€โ”€ history.js      # Hybrid Local/Supabase Persistence Sync
    โ”œโ”€โ”€ agent.js        # Multi-Agent Workflow Logic
    โ””โ”€โ”€ fx.js           # Intersection Observers & Mouse FX

> ๐Ÿ“ The project follows a modular architecture, separating UI, styling, business logic, authentication, and deployment configuration for better maintainability and scalability.

๐Ÿ— System Architecture

PromithicAI follows a client-side multi-agent workflow that transforms natural language prompts into production-ready web applications through planning, code generation, review, sandbox execution, and export.

                                                       User Prompt
                                                            โ”‚
                                                            โ–ผ
                                                      Planner Agent
                                                 (Requirement Analysis)
                                                            โ”‚
                                                            โ–ผ
                                                       Coder Agent
                                               (HTML โ€ข CSS โ€ข JS Generation)
                                                            โ”‚
                                                            โ–ผ
                                                      Reviewer Agent
                                                (Validation & Optimization)
                                                            โ”‚
                                                            โ–ผ
                                                    Monaco Code Editor
                                                (Live Source Code Editing)
                                                            โ”‚
                                                            โ–ผ
                                                     Sandbox Preview
                                                (Secure iframe Execution)
                                                            โ”‚
                                               โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
                                               โ–ผ                         โ–ผ
                                         Download HTML           Deploy Application

Authentication & Cloud Sync

                                                         User
                                                           โ”‚
                                                           โ–ผ
                                                 Firebase Authentication
                                                           โ”‚
                                                           โ–ผ
                                                  Authenticated Session
                                                           โ”‚
                                                           โ–ผ
                                                   Supabase Database
                                                           โ”‚
                                                           โ–ผ
                                               Build History Synchronization

Workflow Overview

  1. Planner Agent analyzes the user's request.
  2. Coder Agent generates HTML, CSS, and JavaScript.
  3. Reviewer Agent validates and improves the generated code.
  4. The generated code is loaded into the Monaco Editor.
  5. A secure Sandbox Preview renders the application.
  6. Users can download or deploy the generated application.

๐Ÿ“– About the Project

PromithicAI is a serverless, front-end-heavy development console. When a user input is received (e.g., "Build me a Pomodoro timer"), the system initiates a structured multi-agent loop:

[User Prompt] โ”€โ”€> ๐Ÿ‘ค Planner Agent โ”€โ”€> ๐Ÿ‘ค Coder Agent โ”€โ”€> ๐Ÿ‘ค Reviewer Agent โ”€โ”€> ๐Ÿ–ฅ๏ธ Sandbox Preview

The app features full code streaming, live sandboxed previews, theme toggles, and cloud-synced compilation history, making it both an educational workspace and a framework for AI agent developers.


๐ŸŽฏ What it Solves

  1. High-Fidelity AI Orchestration Visualization: It demonstrates how complex multi-agent pipelines (Planner โ†’ Coder โ†’ Reviewer) communicate state and hand off tasks asynchronously.
  2. Zero-Setup Prototyping: Allows developers and designers to test interactive widget layouts instantly, completely inside the browser.
  3. No-Dependency Code Editing: Integrates the full VS Code Monaco editor directly via CDN, offering instant linting and syntax highlighting without massive node_modules configurations.
  4. Immediate Exportability: Renders applications into sandboxed previews, providing single-click options to copy the clean HTML or download a production-ready .html file that runs offline.

๐Ÿ› ๏ธ Technical Challenges & Problems Faced

Building a stateful agent system purely on the client-side using Vanilla JavaScript brought several complex implementation challenges:

  • Concurrency & Stream Cancellation: Handling stateful, asynchronous streaming loops inside the single-thread model of a browser meant that if a user canceled a build or submitted a new prompt mid-generation, overlapping text streams could corrupt the editor model. This was solved in js/streaming.js and js/agent.js by implementing cancelable promise wrappers and an explicit external abort polling system (getAbort()).
  • Resilient Monaco CDN Integration: Embedding a heavyweight code editor requires robust script loading. If the CDN load of Monaco fails (e.g., offline usage or blocked domains), the app's core feature breaks. To address this, js/editor.js implements a self-healing fallback mechanism that automatically constructs a lightweight, customized textarea replicating Monaco's editor interfaces (getValue, setValue, appendCode) to ensure zero-downtime operation.
  • Secure Sandboxing of Generated Code: Injecting arbitrary JavaScript and CSS from AI outputs into the parent page's DOM would corrupt global styles, leak local storage credentials, and trigger cross-site scripting conflicts. To ensure safe execution, generated apps are dynamically injected via the srcdoc property of an <iframe> configured with a strict sandbox="allow-scripts" directive, thereby completely isolating the generated workspace.
  • Hybrid Storage Boundaries: Managing local history (up to 30 past builds containing full source code and prompts) in local storage pushes the limits of the browser's standard 5MB limit. To support multi-device access and persistent storage, we implemented a hybrid cloud sync strategy: local builds write immediately to local storage and queue up for asynchronous replication to Supabase when a user signs in.
  • Grid Layouts without UI Libraries: Structuring an IDE-style interface (adjustable columns, sliding history drawers, terminal console logs, iframe previews, and modal popups) while maintaining a premium glassmorphic appearance required complex CSS variables and media query orchestration in css/builder.css and css/components.css without relying on Tailwind or Bootstrap.

๐Ÿš€ Upgrades in v1.1 Release

  • Firebase Authentication Integration: Integrated native authentication flows supporting traditional Email/Password credentials and Google OAuth Single-Sign-On (SSO) popup windows.
  • Supabase Cloud Sync DB: Engineered a lightweight REST-based database synchronization protocol sending and loading builds directly using Supabase PostgreSQL databases, resolving the single-device 5MB local limits.
  • Visual Micro-Interaction Polish: Created a comprehensive polish.css system including:
    • Gradient logo text transitions and pulsing glow mechanics on brand badges.
    • Non-intrusive sweeping light beams animating versioning stickers.
    • Interactive tactile key compression scales (scale(0.97)) on click/touch actions.
    • Staggered structural layout transitions for loaded sidebar history blocks.
    • Fluid error panel animations sliding down on authentication failure.
  • Brand Rebirth: Cleaned all instances of "AI Web App Builder" and converted them to PromithicAI.

๐Ÿ”ฎ Upcoming Features (v1.2+)

Version Planned Feature Status
v1.2 Custom API Keys (Send queries directly using user key) Next Up
v2.0 LangGraph Orchestration & Python FastAPI Backend Planned
v2.1 MCP Sandboxed local execution capabilities Planned
v2.2 Push to GitHub & deploy directly from the IDE Planned
v3.0 Voice-to-App live streaming Planned

โš™๏ธ Deployment Guide

Step 1: Deploy to Vercel

  1. Log in to Vercel using your GitHub account.
  2. Select "Import Project" and choose the PromithicAI repository.
  3. Keep the framework preset as Other and the root directory as ./.
  4. Click Deploy. Vercel will build the project using the static configuration in vercel.json for clean URL routing.

Step 2: Configure Firebase Authentication

  1. Go to the Firebase Console.
  2. Select your project and navigate to Authentication -> Settings.
  3. Under Authorized domains, click "Add domain" and add your Vercel deployment URL (e.g., promithic-ai.vercel.app).
  4. Ensure Email/Password and Google are enabled under the Sign-in method tab.

Step 3: Set up Supabase Database Schema

Run the following query in the SQL Editor of your Supabase dashboard to create the synced builds table:

CREATE TABLE IF NOT EXISTS public.builds (
  id          TEXT PRIMARY KEY,
  user_id     TEXT NOT NULL,
  prompt      TEXT NOT NULL,
  code        TEXT NOT NULL,
  template    TEXT DEFAULT 'custom',
  provider    TEXT DEFAULT 'claude',
  created_at  TIMESTAMPTZ DEFAULT NOW()
);
CREATE INDEX IF NOT EXISTS idx_builds_user_id ON public.builds(user_id);
CREATE INDEX IF NOT EXISTS idx_builds_created_at ON public.builds(created_at DESC);
ALTER TABLE public.builds DISABLE ROW LEVEL SECURITY;

โญ Support the Project

If you found PromithicAI useful or interesting, you can support the project by:

  • โญ Starring the repository
  • ๐Ÿด Forking the repository
  • ๐Ÿž Reporting bugs by opening an Issue
  • ๐Ÿ’ก Suggesting new features or improvements
  • ๐Ÿ“ข Sharing the project with fellow developers

Every contribution, suggestion, and star helps make PromithicAI better and motivates future development.

I appreciate your support! โค๏ธ


๐Ÿ“œ License

This project is licensed under the MIT License.

You are free to use, modify, and distribute this software in accordance with the terms of the license.

See the LICENSE file for complete details.


โค๏ธ Built By

Shashwat Sharma

Computer Science & Engineering Student

Made with โค๏ธ using HTML, CSS, JavaScript, Firebase, Supabase & Monaco Editor.

About

A futuristic AI-powered web application builder featuring a multi-agent workflow, live code streaming, Monaco Editor, Firebase Authentication, Supabase cloud sync, and sandboxed previews.

Topics

Resources

Stars

Watchers

Forks

Releases

Contributors

Languages