PitchLab is an innovative Next.js web application that simulates having AI co-founders for your startup venture. It provides expert guidance through specialized AI agents that help entrepreneurs make informed decisions about technical architecture, marketing strategies, financial planning, and project structure.
Meet your virtual startup team:
- ๐ง CTO Bot: Technical architecture, tech stack recommendations, MVP development strategies, and scalability advice
- ๐ข CMO Bot: Marketing strategies, brand identity, user acquisition plans, and growth hacking
- ๐ฐ CFO Bot: Financial planning, pricing models, fundraising advice, and monetization strategies
- ๐๏ธ Architect Bot: Project structure, folder organization, scalability patterns, and code organization
- Interactive Startup Idea Submission: Submit your startup concept through a sleek dialog interface
- Individual Chat Sessions: Have in-depth conversations with each specialized AI agent
- Boardroom Overview: Get a comprehensive view of your startup concept with key insights
- Real-time AI Responses: Powered by Google's Gemini 2.5 Pro API for state-of-the-art AI responses
- Beautiful UI: Modern, responsive interface with smooth animations and elegant gradients
- Frontend Framework: Next.js 15, React 19, TypeScript
- Styling:
- Tailwind CSS 4.0 with custom gradients
- Radix UI components for accessible UI elements
- Custom animations with Framer Motion
- AI Integration:
- Google Gemini 2.5 Pro API
- Custom prompt engineering for specialized agents
- Visual Effects:
- OGL for WebGL iridescent background effects
- Custom shader programming
- UI Components:
- Lucide React for beautiful iconography
- Custom card components with interactive effects
- State Management:
- React hooks (useState, useReducer)
- Context-based message handling
- Development Tools:
- Docker for containerization
- TypeScript for type safety
- ESLint and Prettier for code quality
-
Clone the repository
git clone <your-repo-url> cd pitchlab
-
Build the Docker image
docker build -t pitchlab . -
Run the container
docker run -p 3000:3000 pitchlab
-
Access the application Open your browser and navigate to
http://localhost:3000
# Build the image
docker build -t pitchlab .
# Run the container
docker run -p 3000:3000 pitchlab
# Run in background (detached mode)
docker run -d -p 3000:3000 --name pitchlab-app pitchlab
# Stop the container
docker stop pitchlab-app
# Remove the container
docker rm pitchlab-app
# View logs
docker logs pitchlab-app# Run with custom environment variables
docker run -p 3000:3000 -e NODE_ENV=production pitchlab
# Run with volume mounting for development
docker run -p 3000:3000 -v $(pwd):/app pitchlab
# Run with specific port
docker run -p 8080:3000 pitchlabCreate a docker-compose.yml file:
version: '3.8'
services:
pitchlab:
build: .
ports:
- "3000:3000"
environment:
- NODE_ENV=production
- NEXT_PUBLIC_GEMINI_API_KEY=${NEXT_PUBLIC_GEMINI_API_KEY}
restart: unless-stoppedThen run:
docker-compose up -dExperience PitchLab live at: https://pitchlab-demo.vercel.app
# Clone the repository
git clone <your-repo-url>
cd pitchlab
# Install dependencies
npm install# Copy the environment template
cp .env.example .env.local
# Edit .env.local and add your Gemini API key
NEXT_PUBLIC_GEMINI_API_KEY=your_actual_api_key_hereGet your Gemini API key:
- Visit Google AI Studio
- Create a new API key
- Copy it to your
.env.localfile
npm run devOpen http://localhost:3000 to see the landing page. Navigate to http://localhost:3000/chat to start using the AI co-founders.
- Start: Visit the homepage and click "Get Started Free"
- Idea Submission: Enter your startup idea in the beautifully designed modal
- Boardroom: Review your idea in the main Boardroom interface
- Chat with AI: Select any AI co-founder from the sidebar to start chatting:
- ๐ป CTO Bot: Ask about technical decisions, architecture, and development strategy
- ๐ CMO Bot: Get marketing advice, branding tips, and customer acquisition strategies
- ๐ฐ CFO Bot: Discuss monetization, fundraising, and financial planning
- ๐๏ธ Architect Bot: Get advice on code structure, organization, and scalability
- Receive Expert Guidance: Get detailed, markdown-formatted responses with actionable advice
- Custom iridescent WebGL background on the landing page
- Smooth animations and transitions between views
- Responsive design that works beautifully on all devices
- Elegant card-based message interface
Each AI agent has been engineered with specific prompts to provide specialized advice:
- CTO Bot: Focuses on technical feasibility, architecture decisions, and development best practices
- CMO Bot: Provides marketing strategies, branding guidance, and user acquisition plans
- CFO Bot: Offers financial modeling advice, pricing strategies, and fundraising guidance
- Architect Bot: Gives project structure recommendations and code organization tips
- Real-time message delivery with typing indicators
- Markdown-formatted responses for better readability
- Code syntax highlighting for technical recommendations
- Message persistence during the session
pitchlab/
โโโ app/ # Next.js app directory
โ โโโ chat/ # Chat interface routes
โ โ โโโ page.tsx # Main chat interface with AI co-founders
โ โโโ layout.tsx # Root layout with global styles
โ โโโ globals.css # Global CSS styles
โ โโโ page.tsx # Landing page with hero section
โโโ components/ # React components
โ โโโ ui/ # Reusable UI components
โ โ โโโ button.tsx # Custom button component
โ โ โโโ card.tsx # Card component for messages
โ โ โโโ dialog.tsx # Modal dialog component
โ โ โโโ iridesceneBG.tsx # WebGL background effect
โ โโโ Boardroom.tsx # Startup idea overview dashboard
โ โโโ BotChat.tsx # Bot message display
โ โโโ ChatInput.tsx # Message input component
โ โโโ HeroSection.tsx # Landing page hero section
โ โโโ Navbar.tsx # Navigation bar
โ โโโ Sidebar.tsx # AI agent navigation sidebar
โโโ lib/ # Utility functions and services
โ โโโ architect.ts # Architect bot prompt handler
โ โโโ cto.ts # CTO bot prompt handler
โ โโโ cmo.ts # CMO bot prompt handler
โ โโโ cfo.ts # CFO bot prompt handler
โ โโโ formatters.ts # Response formatting utilities
โ โโโ gemini.ts # Gemini API integration
โ โโโ utils.ts # General utility functions
โโโ screenshots/ # Application screenshots
โโโ Dockerfile # Docker configuration
โโโ docker-compose.yml # Docker Compose configuration
โโโ README.md # This file
The main chat interface that:
- Presents a startup idea submission modal
- Manages separate chat states for multiple AI agents
- Handles message sending and receiving with loading states
- Integrates with Google's Gemini API for AI responses
- Renders markdown-formatted responses with syntax highlighting
Each agent has a specialized prompt handler:
cto.ts: Technical expertise and development strategycmo.ts: Marketing, branding, and user acquisitioncfo.ts: Financial planning and monetization strategiesarchitect.ts: Project structure and organization
- Boardroom.tsx: Dashboard overview of the startup idea with beautiful animations
- Sidebar.tsx: Navigation sidebar with gradient-styled agent selection
- ChatInput.tsx: Message input with auto-resize and keyboard shortcuts
- iridesceneBG.tsx: Custom WebGL shader for creating the interactive background effect
- TypeScript Implementation: Full type safety with proper interfaces
- Modern React Patterns: Leveraging React 19 features and hooks
- AI Integration: Sophisticated prompt engineering for specialized agents
- Performance Optimization: Efficient rendering with proper state management
- Responsive Design: Mobile-first approach with adaptive layouts
- Animation Effects: Subtle motion design for enhanced UX
- Error Handling: Robust error management for API calls
# Build for production
npm run build
# Start production server
npm startFor deployment on Vercel, Netlify, or similar platforms, make sure to set the NEXT_PUBLIC_GEMINI_API_KEY environment variable in your hosting platform's settings.
# Deploy to Vercel
vercel --prod# Install Heroku CLI
heroku create your-app-name
heroku container:push web
heroku container:release web# Connect your GitHub repo to Railway
# Railway will automatically detect the Dockerfile# Tag and push to Docker Hub
docker tag pitchlab your-username/pitchlab:latest
docker push your-username/pitchlab:latest-
Build production image
docker build -t pitchlab:prod . -
Run with production settings
docker run -d \ -p 3000:3000 \ --name pitchlab-prod \ --restart unless-stopped \ -e NODE_ENV=production \ -e NEXT_PUBLIC_GEMINI_API_KEY=your_api_key_here \ pitchlab:prod
- User authentication for personalized startup advice
- Chat history persistence across sessions
- Export functionality for advice and recommendations
- More specialized AI agents for different business domains
- File upload capability for startup pitch decks
- Integration with project management tools
| Variable | Description | Default | Required |
|---|---|---|---|
NODE_ENV |
Environment mode | production |
No |
PORT |
Server port | 3000 |
No |
HOSTNAME |
Server hostname | 0.0.0.0 |
No |
NEXT_TELEMETRY_DISABLED |
Disable Next.js telemetry | 1 |
No |
NEXT_PUBLIC_GEMINI_API_KEY |
Google Gemini API key | - | Yes |
Port already in use:
# Find process using port 3000 (Linux/Mac)
lsof -i :3000
# Or use different port
docker run -p 3001:3000 pitchlabContainer won't start:
# Check logs
docker logs pitchlab-app
# Check container status
docker ps -aBuild fails:
# Clean Docker cache
docker builder prune
# Rebuild without cache
docker build --no-cache -t pitchlab .Missing API Key:
# Make sure to set your Gemini API key
export NEXT_PUBLIC_GEMINI_API_KEY=your_api_key_here
# Or add it to your .env.local filePermission denied (Windows):
# Run PowerShell as Administrator
# Or use Docker Desktop- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Test with Docker
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js for the powerful React framework
- Tailwind CSS for the utility-first CSS framework
- Google's Gemini API for the advanced AI capabilities
- Radix UI for accessible UI components
- Lucide React for the beautiful iconography
- OGL for WebGL rendering
- Docker for containerization support
For issues and questions, please open an issue in the GitHub repository or contact the maintainers.
MIT License - see LICENSE file for details.
For issues and questions, please open an issue in the GitHub repository.




