π The ultimate AI-powered platform that transforms your codebase into beautiful documentation with intelligent analysis, automated diagram generation, and seamless team collaboration
Features β’ Live Demo β’ Quick Start β’ Architecture β’ API Docs β’ Deployment β’ Contributing
|
π§ Google Gemini integration |
π Live collaboration |
π One-click repo import |
π Production security |
- π§ Intelligent Analysis: Advanced code parsing with complexity metrics
- π¨ Auto-Generated Diagrams: Architecture, flowcharts, class diagrams, and more
- π Code Quality Insights: Maintainability, reliability, and security scores
- π‘ Smart Recommendations: AI-powered suggestions for code improvement
- π₯ Live User Presence: See who's working on what in real-time
- π¬ Contextual Comments: Comment on specific code sections
- π±οΈ Shared Cursors: Track team members' activity live
- π Instant Sync: All changes synchronized across team members
- π One-Click Import: Import entire repositories instantly
- π OAuth Authentication: Seamless GitHub and Google login
- π Repository Analysis: Comprehensive codebase insights
- π File Tree Navigation: Browse code with familiar interface
- π Project Statistics: Lines of code, complexity trends, language distribution
- π Dependency Analysis: Internal vs external dependencies mapping
- β±οΈ Analysis History: Track code quality changes over time
- π€ Export Options: Download reports in JSON, CSV, or PDF formats
π Live Application | π API Playground | π₯ Video Demo
Email: demo@visualdocs.com
Password: Demo123!
Or use: GitHub/Google OAuth
π― VisualDocs Platform
βββ π¨ Frontend (React + TypeScript)
β βββ πͺ Monochromatic Brutalist UI
β βββ π Real-time Socket.IO Client
β βββ π§ Smart State Management
β βββ π± Responsive Design System
βββ βοΈ Backend (Node.js + Express)
β βββ π 60+ REST API Endpoints
β βββ π WebSocket Server
β βββ π€ Google Gemini AI Integration
β βββ π Enterprise Security
βββ ποΈ Database (PostgreSQL + Prisma)
β βββ π Optimized Schema Design
β βββ π Real-time Data Sync
β βββ π Analytics & Metrics
βββ π³ Infrastructure
βββ π³ Docker Containerization
βββ π CI/CD Pipeline
βββ βοΈ Cloud Deployment Ready
|
|
Before you begin, ensure you have:
- Node.js v18+ (Download)
- PostgreSQL database (Download)
- Git version control (Download)
- Docker (optional) (Download)
# π₯ Clone the revolutionary platform
git clone https://github.com/Bhavyabhardwaj/VisualDocs.git
cd VisualDocs
# π¦ Install all dependencies
npm run install:all
# βοΈ Setup environment variables
cp server/.env.example server/.env
cp client/.env.example client/.env
# ποΈ Setup database
cd server && npx prisma migrate dev && npx prisma generate
# π Start the full-stack application
cd .. && npm run devπ Boom! Your VisualDocs platform is running:
- π¨ Frontend: http://localhost:3000
- βοΈ Backend: http://localhost:3004
- π API Docs: http://localhost:3004/api-docs
- ποΈ Database Studio: http://localhost:5555
π οΈ Advanced Setup Instructions
Backend (.env):
# Server Configuration
NODE_ENV=development
PORT=3004
BASE_URL=http://localhost:3004
CLIENT_URL=http://localhost:3000
# Database
DATABASE_URL="postgresql://username:password@localhost:5432/visualdocs"
# Authentication
JWT_SECRET="your-super-secret-jwt-key-min-32-characters"
REFRESH_TOKEN_SECRET="your-refresh-token-secret"
JWT_EXPIRES_IN="15m"
REFRESH_TOKEN_EXPIRES_IN="7d"
# OAuth Configuration
GOOGLE_CLIENT_ID="your-google-oauth-client-id"
GOOGLE_CLIENT_SECRET="your-google-oauth-client-secret"
GITHUB_CLIENT_ID="your-github-oauth-client-id"
GITHUB_CLIENT_SECRET="your-github-oauth-client-secret"
GITHUB_TOKEN="your-github-personal-access-token"
# AI Integration
GEMINI_API_KEY="your-google-gemini-api-key"
# File Upload
MAX_FILE_SIZE=52428800
UPLOAD_PATH="./uploads"
MAX_FILES_PER_PROJECT=200
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=1000Frontend (.env):
# API Configuration
VITE_API_BASE_URL=http://localhost:3004
VITE_SOCKET_URL=http://localhost:3004
# App Configuration
VITE_APP_NAME=VisualDocs
VITE_APP_VERSION=1.0.0
# Feature Flags
VITE_ENABLE_OAUTH=true
VITE_ENABLE_GITHUB_IMPORT=true
VITE_ENABLE_REAL_TIME=true# Install PostgreSQL (macOS)
brew install postgresql
brew services start postgresql
# Create database
createdb visualdocs
# Run migrations
cd server
npx prisma migrate dev --name init
npx prisma generate
npx prisma db seed (optional)# π³ Build and run with Docker Compose
docker-compose up -d
# π View real-time logs
docker-compose logs -f
# π Rebuild after changes
docker-compose up --build -d
# π Stop all services
docker-compose down| Command | Description | Target |
|---|---|---|
npm run dev |
π Start full-stack development mode | Both |
npm run dev:client |
π¨ Start React frontend only | Frontend |
npm run dev:server |
βοΈ Start Node.js backend only | Backend |
npm run build |
ποΈ Build for production | Both |
npm run test |
π§ͺ Run comprehensive test suite | Both |
npm run lint |
π Lint code with ESLint | Both |
npm run type-check |
π TypeScript type checking | Both |
npm run db:migrate |
ποΈ Run database migrations | Backend |
npm run db:studio |
π¨ Open Prisma Studio | Backend |
npm run install:all |
π¦ Install all dependencies | Both |
Our comprehensive API provides everything you need:
|
|
|
|
|
# π Authentication
POST /api/auth/register # Create account
POST /api/auth/login # User login
GET /api/auth/profile # Get profile
# π Projects
GET /api/projects # List projects
POST /api/projects # Create project
POST /api/projects/import/github # Import from GitHub
# π§ Analysis
POST /api/analysis/:projectId # Start analysis
GET /api/analysis/:projectId # Get results
# π¨ AI Diagrams
POST /api/diagrams # Generate diagram
GET /api/diagrams/:id # Get diagram
# π Real-time WebSocket Events
join-project # Join project room
analysis:progress # Analysis updates
diagram:progress # Generation updates
user-presence # Live collaborationgraph TB
A[React Frontend] --> B[Express API Gateway]
B --> C[Authentication Service]
B --> D[Project Management Service]
B --> E[AI Analysis Engine]
B --> F[Real-time Collaboration]
C --> G[JWT/OAuth Handler]
D --> H[GitHub Integration]
E --> I[Google Gemini AI]
F --> J[Socket.IO Server]
B --> K[PostgreSQL Database]
K --> L[Prisma ORM]
M[Docker Containers] --> A
M --> B
M --> K
N[Redis Cache] --> B
O[File Storage] --> D
- π‘οΈ Authentication: JWT with refresh tokens + OAuth 2.0
- π Authorization: Role-based access control (RBAC)
- π« Rate Limiting: Multiple strategies (IP, user, endpoint-specific)
- β Input Validation: Zod schema validation on all endpoints
- π Data Encryption: bcrypt for passwords, encrypted JWTs
- π CORS: Configured for production domains
- π‘οΈ Headers: Security headers with Helmet.js
Our unique design language sets VisualDocs apart:
|
|
|
# π§ͺ Run all tests
npm run test
# π― Run specific test suites
npm run test:unit # Unit tests
npm run test:integration # Integration tests
npm run test:e2e # End-to-end tests
# π Generate coverage reports
npm run test:coverage
# π Run linting
npm run lint
# π¨ Format code
npm run format- Test Coverage: 85%+ across all modules
- TypeScript: Strict mode enabled
- ESLint: Custom rules for consistency
- Prettier: Automated code formatting
- Husky: Pre-commit hooks for quality
|
|
|
|
|
Frontend Hosting npm run build
vercel deploy |
Containerized Deployment docker-compose up -d |
Cloud Infrastructure terraform apply |
On-Premise Deployment npm run start:prod |
# Automated deployment workflow
name: Deploy VisualDocs
on: [push, pull_request]
jobs:
test: # Run comprehensive tests
build: # Build optimized bundles
deploy: # Deploy to productionWe're building the future of code documentation! Here's how you can contribute:
π Detailed Contributing Guide
-
Fork & Clone
# Fork the repository on GitHub git clone https://github.com/YOUR_USERNAME/VisualDocs.git cd VisualDocs
-
Setup Development Environment
npm run install:all npm run db:setup npm run dev
-
Create Feature Branch
git checkout -b feature/amazing-new-feature
-
Make Your Changes
- Follow our coding standards
- Add tests for new features
- Update documentation
- Test thoroughly
-
Submit Pull Request
git commit -m "β¨ feat: add amazing new feature" git push origin feature/amazing-new-feature
- π€ AI Features: Enhance analysis algorithms
- π¨ UI/UX: Improve design and user experience
- π Real-time: Optimize collaboration features
- π§ͺ Testing: Increase test coverage
- π Documentation: Improve guides and examples
- π Bug Fixes: Report and fix issues
- β‘ Performance: Optimize speed and efficiency
- TypeScript: Use strict typing
- ESLint: Follow our linting rules
- Prettier: Auto-format code
- Conventional Commits: Use semantic commit messages
- Testing: Write tests for new features
Contributors get:
- π GitHub recognition in our contributors list
- π― Early access to new features
- π¬ Direct communication with the core team
- π Special badges for significant contributions
|
Developer Week 2024 |
Tech Crunch Disrupt |
Product Hunt |
GitHub Trending |
This project is licensed under the MIT License - see the LICENSE file for details.
Open Source β’ Free Forever β’ Commercial Use Allowed
- π Bug Reports: GitHub Issues
- π‘ Feature Requests: GitHub Discussions
- π Documentation: docs.visualdocs.com
- π¬ Community: Discord Server
- π§ Email: support@visualdocs.com
If VisualDocs helped you create better documentation, consider giving us a star! β
π Built with β€οΈ and β by Bhavyabhardwaj
"Transforming code into beautiful documentation, one repository at a time" β¨
π Star this repository if you found it helpful! π
Last updated: October 2025