An open API service indexing awesome lists of open source software.

https://github.com/onkkkar/nova

Nova an AI-powered website builder that lets users create and preview full websites through chat conversations. Features multi-model AI code generation, Docker sandboxing, and Clerk authentication/billing integration
https://github.com/onkkkar/nova

clerk docker e2b inngest neon nextjs prisma shadcn-ui tailwindcss tanstack-react-query typescript

Last synced: 3 months ago
JSON representation

Nova an AI-powered website builder that lets users create and preview full websites through chat conversations. Features multi-model AI code generation, Docker sandboxing, and Clerk authentication/billing integration

Awesome Lists containing this project

README

          

# Nova ๐Ÿš€

**An AI-powered code generation platform that transforms natural language into fully functional Next.js applications**


Nova Platform Interface

[![Demo](https://img.shields.io/badge/View-Live%20Demo-blue?style=for-the-badge)](https://buildwithnova.vercel.app/)
[![GitHub](https://img.shields.io/badge/GitHub-Repository-black?style=for-the-badge&logo=github)](https://github.com/onkar-03/nova)

---

Nova empowers developers and non-technical users to build modern web applications through conversational AI. Simply describe what you want to build, and Nova's intelligent agents will generate, execute, and deploy production-ready code in real-time sandboxed environments.

## ๐ŸŽฌ Demo


Nova in Action

Watch Nova generate a complete application from natural language


## โœจ Features

### ๐Ÿค– AI-Powered Code Generation

Advanced multi-agent system using GPT-4 for intelligent code creation

AI Code Generation

### โšก Real-time Development

Live sandboxed environments with hot reload and instant preview

Real-time Previewlabels and keyboard navigation

### ๐Ÿ” Authentication & Security

Secure user management with Clerk authentication

Authentication

### ๐Ÿ“Š Project Management

Organize and track multiple projects with persistent storage

### ๐Ÿ› ๏ธ Tool Integration

Automated dependency management and file system operations

### ๐Ÿ“ฑ Responsive Design

Mobile-first approach with modern, professional interfaces

### ๐Ÿš€ Production Ready

Built with TypeScript, Prisma ORM, and enterprise-grade architecture

## ๐Ÿ› ๏ธ Tech Stack

### Frontend

- **Next.js 15.3.5** - React framework with App Router
- **React 19** - Latest React with concurrent features
- **TypeScript** - Type-safe development
- **Tailwind CSS 4** - Utility-first CSS framework
- **Shadcn/UI** - Modern, accessible component library
- **Lucide React** - Beautiful icon library

### Backend & Database

- **Prisma ORM** - Type-safe database access
- **PostgreSQL** - Robust relational database
- **tRPC** - End-to-end typesafe APIs
- **TanStack Query** - Data fetching and caching

### AI & Automation

- **Inngest Agent Kit** - Multi-agent orchestration
- **OpenAI GPT-4** - Advanced language model
- **E2B Code Interpreter** - Sandboxed code execution
- **Zod** - Schema validation

### Authentication & Security

- **Clerk** - Complete authentication solution
- **Rate Limiting** - API protection and usage control

## ๐Ÿš€ Getting Started

### Prerequisites

- Node.js 18+ and npm/yarn/pnpm
- PostgreSQL database
- OpenAI API key
- Clerk authentication keys
- E2B API key for code execution

### Installation

1. **Clone the repository**

```bash
git clone https://github.com/onkar-03/nova.git
cd nova
```

2. **Install dependencies**

```bash
npm install
```

3. **Environment Setup**

Create a `.env.local` file in the root directory:

```env
# Database
DATABASE_URL="postgresql://..."

# Authentication (Clerk)
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_...
CLERK_SECRET_KEY=sk_...

# AI Services
OPENAI_API_KEY=sk-...
E2B_API_KEY=...

# Application
NEXT_PUBLIC_APP_URL=http://localhost:3000
```

4. **Database Setup**

```bash
npx prisma migrate dev
npx prisma generate
```

5. **Start Development Server**

```bash
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) to view the application.

## ๐Ÿ“ Project Structure

```
nova/
โ”œโ”€โ”€ prisma/ # Database schema and migrations
โ”œโ”€โ”€ public/ # Static assets
โ”œโ”€โ”€ src/
โ”‚ โ”œโ”€โ”€ app/ # Next.js App Router pages
โ”‚ โ”œโ”€โ”€ components/ # Reusable UI components
โ”‚ โ”œโ”€โ”€ hooks/ # Custom React hooks
โ”‚ โ”œโ”€โ”€ inngest/ # AI agent functions
โ”‚ โ”œโ”€โ”€ lib/ # Utility functions
โ”‚ โ”œโ”€โ”€ modules/ # Feature-based modules
โ”‚ โ””โ”€โ”€ trpc/ # tRPC configuration
โ”œโ”€โ”€ sandbox-templates/ # E2B sandbox configurations
โ””โ”€โ”€ ...config files
```

## ๐ŸŽฏ Key Features Deep Dive

### ๐Ÿค– Multi-Agent Architecture

Nova uses a sophisticated multi-agent system where specialized AI agents handle different aspects of development:

```mermaid
graph TD
A[User Request] --> B[Code Generation Agent]
A --> C[Terminal Agent]
A --> D[File System Agent]
B --> E[React Components & Logic]
C --> F[Package Installation & Commands]
D --> G[File Creation & Updates]
E --> H[Live Preview]
```

- **Code Generation Agent**: Creates React components and application logic
- **Terminal Agent**: Manages package installation and system commands
- **File System Agent**: Handles file creation, updates, and organization

### โšก Sandboxed Execution

Every generated application runs in isolated E2B sandboxes, providing:

- **Safe code execution environment** - Isolated from your local system
- **Real-time preview capabilities** - See changes instantly
- **Automatic dependency management** - No manual package installation
- **Hot reload functionality** - Changes reflect immediately

**Benefits:**

- ๐Ÿ”’ **Security**: Code runs in isolated containers
- ๐Ÿš€ **Speed**: Pre-configured environments ready instantly
- ๐Ÿ”„ **Reliability**: Consistent execution across all projects
- ๐Ÿ› ๏ธ **Automation**: No manual environment setup required

### ๐Ÿ“Š Smart Project Management

Nova provides comprehensive project organization and tracking:

**Project Features:**

- **Project Persistence**: All projects are saved with full code history
- **Message Threading**: Conversational development with context awareness
- **Fragment System**: Modular code generation and updates
- **Usage Tracking**: Monitor AI resource consumption

**Organization:**

- ๐Ÿ“ **Project Dashboard**: Clean interface for managing multiple projects
- ๐Ÿ’ฌ **Conversation History**: Full chat logs with AI for each project
- ๐Ÿ”„ **Version Control**: Track changes and iterations
- ๐Ÿ“ˆ **Analytics**: Usage statistics and performance metrics

## ๐Ÿงช Development Scripts

```bash
npm run dev # Start development server with Turbopack
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
npm run postinstall # Generate Prisma client
```

## ๐Ÿš€ Deployment

### Vercel (Recommended)

1. Connect your GitHub repository to Vercel
2. Configure environment variables in Vercel dashboard
3. Deploy automatically on every push to main branch

### Docker

```dockerfile
# Production deployment with multi-stage build
FROM node:18-alpine AS deps
# ... (Docker configuration available in project)
```

## ๐Ÿ™ Acknowledgments

- [Next.js](https://nextjs.org/) - The React framework for production
- [Shadcn/UI](https://ui.shadcn.com/) - For the beautiful component library
- [Inngest](https://www.inngest.com/) - For reliable workflow orchestration
- [E2B](https://e2b.dev/) - For secure code execution environments
- [Clerk](https://clerk.com/) - For seamless authentication

---

**Built with โค๏ธ by [Onkar](https://github.com/onkar-03)**