Skip to content

anurag3407/ghosthunter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

86 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ GhostFounder

Build Startups at Warp Speed

The All-in-One AI-Powered Platform for Modern Startup Teams

Next.js TypeScript Tailwind CSS Firebase Ethereum Deploy on Railway

🌐 Live Demo β€’ πŸ“– Documentation β€’ πŸš€ Quick Start β€’ 🀝 Contributing


🎯 Overview

GhostFounder is a comprehensive startup toolkit that combines AI-powered automation with blockchain technology to help founders move fast. Whether you're building an MVP, preparing for fundraising, or scaling your team, GhostFounder has you covered.

Why GhostFounder?

Challenge GhostFounder Solution
Code quality at speed πŸ›‘οΈ Code Police - Automated AI code reviews on every commit
Investor-ready decks πŸ“Š Pitch Deck Studio - Generate professional decks from README
Equity management πŸ’° Equity Distribution - Blockchain-based token management
Database complexity πŸ’Ύ Database Agent - Natural language database queries

✨ Features

πŸ›‘οΈ Code Police

AI-Powered Code Review System

  • Automated Analysis: Reviews code on every push and PR
  • Multi-Category Detection: Security, performance, bugs, readability, style
  • Severity Classification: Critical, high, medium, low, info
  • Email Reports: Professional HTML reports with actionable insights
  • GitHub Integration: Webhook-based real-time automation

πŸ“– Full Documentation | Quick Reference

πŸ“Š Pitch Deck Studio

AI-Powered Presentation Generator

  • GitHub-to-Deck: Generates investor-grade decks from your README
  • Multiple Templates: Pre-seed, Seed, Series A, Demo Day styles
  • Visual Editor: Drag-and-drop slide canvas with real-time preview
  • AI Content: Generates headlines, bullets, metrics from your project
  • Export Options: PDF and image export capabilities
  • Gap Analysis: Identifies missing slides and content improvements

πŸ“– Full Documentation

πŸ’° Equity Distribution

Blockchain-Based Token Management

  • ERC-20 Tokens: Custom equity tokens on Ethereum Sepolia
  • Percentage Transfers: Simple percentage-based equity distribution
  • MetaMask Integration: Seamless Web3 wallet connection
  • Real-Time Tracking: Monitor balances and ownership percentages
  • Cap Table: Transparent, on-chain ownership records

πŸ“– Full Documentation

πŸ’Ύ Database Agent

Natural Language Database Interface

  • Multi-Database Support: PostgreSQL, MySQL, MongoDB
  • AI Query Generation: Natural language to SQL/NoSQL
  • Security First: AES-256 encrypted credentials
  • Query Explanation: Understand what each query does
  • Safe Execution: Read-only queries with validation

πŸ“– Full Documentation | Quick Reference


πŸš€ Quick Start

Prerequisites

  • Node.js 20.x or higher
  • npm 10.x or higher
  • Git for version control

Local Development

# 1. Clone the repository
git clone https://github.com/yourusername/ghostfounder.git
cd ghostfounder

# 2. Install dependencies
npm install

# 3. Set up environment variables
cp .env.example .env.local
# Edit .env.local with your credentials

# 4. Validate configuration
npm run validate-env

# 5. Start development server
npm run dev

Open http://localhost:3000 in your browser.

One-Click Deploy

Deploy on Railway

Quick Steps:

  1. Click the Deploy button above
  2. Connect your GitHub account
  3. Add required environment variables
  4. Deploy automatically!

πŸ“– Full Guide: Railway Deployment | Deployment Checklist


πŸ› οΈ Tech Stack

Frontend

Next.js React TypeScript Tailwind

Backend

Node.js Firebase LangChain

AI/ML

Gemini LangChain

Blockchain

Ethereum Ethers.js Hardhat

Complete Stack

Category Technologies
Framework Next.js 16.1 (App Router), React 19
Language TypeScript 5.x
Authentication Clerk
Database Firebase Firestore
Blockchain Ethereum Sepolia, ethers.js, Hardhat
AI/ML Google Gemini 2.0 Flash, LangChain
Styling Tailwind CSS 4.0, Framer Motion
UI Components Radix UI, Lucide Icons
Email Resend
Deployment Railway, Netlify

πŸ“‹ Available Scripts

# Development
npm run dev              # Start dev server with hot reload
npm run build            # Build for production (validates env first)
npm run start            # Start production server
npm run lint             # Run ESLint
npm run lint:fix         # Auto-fix linting issues
npm run type-check       # TypeScript type checking
npm run validate-env     # Validate environment variables

# Smart Contracts (optional)
npx hardhat compile      # Compile Solidity contracts
npx hardhat test         # Run contract tests
npx hardhat run scripts/deploy.js --network sepolia  # Deploy to Sepolia

πŸ” Environment Variables

Required Variables

# Clerk Authentication
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=pk_live_xxxxx
CLERK_SECRET_KEY=sk_live_xxxxx

# Firebase (Client)
NEXT_PUBLIC_FIREBASE_API_KEY=AIza...
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your-app.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your-project-id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your-app.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=123456789
NEXT_PUBLIC_FIREBASE_APP_ID=1:123456789:web:xxxxx

# Firebase Admin (Server)
FIREBASE_PROJECT_ID=your-project-id
FIREBASE_CLIENT_EMAIL=firebase-adminsdk@your-project.iam.gserviceaccount.com
FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----"

Optional Variables

# GitHub Integration (Code Police)
GITHUB_CLIENT_ID=Iv1.xxxxx
GITHUB_CLIENT_SECRET=xxxxx
GITHUB_WEBHOOK_SECRET=xxxxx

# AI Services
GOOGLE_API_KEY=AIza...

# Email (Resend)
RESEND_API_KEY=re_xxxxx

# Blockchain (Equity Distribution)
NEXT_PUBLIC_SEPOLIA_RPC_URL=https://sepolia.infura.io/v3/your-key
NEXT_PUBLIC_EQUITY_TOKEN_ADDRESS=0x...
SEPOLIA_PRIVATE_KEY=xxxxx

# Application
NEXT_PUBLIC_APP_URL=https://your-app.up.railway.app
NODE_ENV=production

See .env.example for the complete template.


πŸ—οΈ Project Structure

ghostfounder/
β”œβ”€β”€ πŸ“‚ src/
β”‚   β”œβ”€β”€ πŸ“‚ app/                    # Next.js App Router
β”‚   β”‚   β”œβ”€β”€ πŸ“‚ api/                # API Routes
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“‚ auth/           # Authentication endpoints
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“‚ code-police/    # Code review API
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“‚ database/       # Database agent API
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“‚ equity/         # Blockchain API
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“‚ pitch-deck/     # Deck generation API
β”‚   β”‚   β”‚   └── πŸ“‚ webhooks/       # GitHub webhooks
β”‚   β”‚   β”œβ”€β”€ πŸ“‚ dashboard/          # Protected dashboard pages
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“‚ code-police/    # Code review UI
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“‚ database/       # Database agent UI
β”‚   β”‚   β”‚   β”œβ”€β”€ πŸ“‚ equity/         # Equity management UI
β”‚   β”‚   β”‚   └── πŸ“‚ pitch-deck/     # Deck editor UI
β”‚   β”‚   β”œβ”€β”€ πŸ“„ layout.tsx          # Root layout
β”‚   β”‚   └── πŸ“„ page.tsx            # Landing page
β”‚   β”œβ”€β”€ πŸ“‚ components/             # React components
β”‚   β”‚   β”œβ”€β”€ πŸ“‚ code-police/        # Code review components
β”‚   β”‚   β”œβ”€β”€ πŸ“‚ equity/             # Blockchain components
β”‚   β”‚   β”œβ”€β”€ πŸ“‚ pitch-deck/         # Deck editor components
β”‚   β”‚   └── πŸ“‚ ui/                 # Shared UI components
β”‚   β”œβ”€β”€ πŸ“‚ lib/                    # Utilities and services
β”‚   β”‚   β”œβ”€β”€ πŸ“‚ agents/             # AI agent implementations
β”‚   β”‚   β”œβ”€β”€ πŸ“‚ db/                 # Database utilities
β”‚   β”‚   β”œβ”€β”€ πŸ“‚ firebase/           # Firebase configuration
β”‚   β”‚   └── πŸ“‚ pitch-deck/         # Deck generation logic
β”‚   └── πŸ“‚ types/                  # TypeScript definitions
β”œβ”€β”€ πŸ“‚ contracts/                  # Solidity smart contracts
β”‚   └── πŸ“„ EquityToken.sol         # ERC-20 equity token
β”œβ”€β”€ πŸ“‚ scripts/                    # Build and deploy scripts
β”‚   β”œβ”€β”€ πŸ“„ deploy.js               # Contract deployment
β”‚   └── πŸ“„ validate-env.js         # Environment validation
β”œβ”€β”€ πŸ“‚ public/                     # Static assets
β”œβ”€β”€ πŸ“„ firebase.json               # Firebase configuration
β”œβ”€β”€ πŸ“„ firestore.rules             # Firestore security rules
β”œβ”€β”€ πŸ“„ hardhat.config.js           # Hardhat configuration
β”œβ”€β”€ πŸ“„ railway.json                # Railway deployment config
└── πŸ“„ package.json                # Dependencies

πŸ“š Documentation

Getting Started

Feature Guides

Architecture


🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

Quick Contribution Steps

# 1. Fork the repository
# 2. Create a feature branch
git checkout -b feature/amazing-feature

# 3. Make your changes
# 4. Run tests and linting
npm run lint && npm run type-check

# 5. Commit your changes
git commit -m "feat: add amazing feature"

# 6. Push to your fork
git push origin feature/amazing-feature

# 7. Open a Pull Request

Development Guidelines

  • Follow Conventional Commits
  • Write TypeScript with strict mode
  • Add tests for new features
  • Update documentation as needed

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ†˜ Support


πŸ™ Acknowledgments


Built with ❀️ for founders who move fast

⬆ Back to top

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages