webAI is a decoupled full-stack application designed to transform natural language prompts into functional, styled websites. By integrating the OpenRouter API, the application dynamically generates and renders HTML and Tailwind CSS components. The project features a highly secure, cross-domain authentication system and relies on a relational database architecture for persistent storage.
- Prompt-to-UI Generation: Routes complex user text prompts to LLMs to instantly generate styled web components.
- Cross-Domain Authentication: Utilizes Better Auth with custom CORS policies and proxy configurations to maintain secure session cookies across decoupled frontend and backend environments.
- Relational Data Management: Manages user states, project versioning, and session histories using a robust PostgreSQL schema.
- Serverless Architecture: Configured for automated CI/CD pipelines via GitHub, deployed on Vercel for rapid iteration and zero-downtime updates.
- Framework: React (via Vite)
- Language: TypeScript
- Styling: Tailwind CSS
- Runtime: Node.js
- Framework: Express.js
- Language: TypeScript
- Authentication: Better Auth
- Database: PostgreSQL (Neon)
- ORM: Prisma
- AI Routing: OpenRouter API
- Deployment: Vercel
- Node.js (v18+ recommended)
- Git
git clone [https://github.com/shine-sri/webAI.git](https://github.com/shine-sri/webAI.git)
cd webAI