Autonomous AI-Powered Debugging Platform for Modern Developers
- About
- Key Features
- Tech Stack
- Getting Started
- Project Structure
- API Documentation
- Usage Guide
- Dashboard Features
- Contributing
- Roadmap
- License
- Contact
DevFlow.AI is an intelligent productivity platform designed to revolutionize how developers approach debugging. By leveraging cutting-edge AI technology, DevFlow.AI autonomously monitors your codebase, detects bugs in real-time, generates intelligent patches, and automates the entire debugging workflowβallowing developers to focus on what matters most: building great software.
DevFlow.AI was created to showcase the power of AI-driven automation in software development, demonstrating how artificial intelligence can significantly enhance developer productivity and code quality.
- Automated Code Analysis: Intelligent detection of syntax errors, logical bugs, and runtime issues
- Smart Patch Generation: AI generates optimized fixes using GPT-4o-mini
- Multi-Language Support: Python, JavaScript, TypeScript, Java, C++, and more
- Confidence Scoring: Each fix comes with a confidence score for transparency
- Live Activity Feed: Monitor all debugging activities in real-time
- Productivity Analytics: Track bugs fixed, time saved, and success rates
- Interactive Visualizations: Beautiful charts and metrics
- Activity History: Detailed logs of all AI actions and outcomes
- Code Diff Viewer: Side-by-side comparison of original and fixed code
- Example Library: Pre-loaded buggy code examples for testing
- Export Reports: Download detailed debugging reports
- Responsive Design: Works seamlessly on desktop and mobile
- Dark Mode: Eye-friendly interface for long coding sessions
- Smooth Animations: Pure CSS animations for performance
- Accessible: Built with accessibility best practices
- Fast & Lightweight: No heavy dependencies, optimized for speed
- Framework: Next.js 15.3.4 (React 19.1.0)
- Language: TypeScript 5.8.3
- Styling: Tailwind CSS 3.4.1
- UI Components: Radix UI + Custom Components
- Icons: Lucide React
- Notifications: Sonner
- API Routes: Next.js API Routes
- AI Engine: OpenAI GPT-4o-mini
- Logging: Winston
- Package Manager: npm
- Code Quality: TypeScript strict mode
- Build Tool: Next.js built-in compiler
Before you begin, ensure you have the following installed:
- Node.js 18.x or higher
- npm or yarn
- OpenAI API Key (for AI functionality)
-
Clone the repository
git clone https://github.com/mrbrightsides/devflow.git cd devflow -
Install dependencies
npm install
-
Set up API Key (Optional - Already configured)
The OpenAI API key is already integrated into the application. However, if you want to use your own key:
- Open
src/app/api/fix-bug/route.ts - Replace the API key in the OpenAI client initialization
- Open
-
Development Mode
npm run dev
Open http://localhost:3000 in your browser.
-
Production Build
npm run build npm start
-
Lint Code
npm run lint
devflow/
βββ public/ # Static assets
β βββ .well-known/
β βββ farcaster.json # Farcaster configuration
β
βββ src/
β βββ app/ # Next.js app directory
β β βββ api/ # API routes (12 endpoints)
β β β βββ analyze-context/ # β¨ Context analysis (Phase 2)
β β β β βββ route.ts
β β β βββ explain-code/ # β¨ Code explanation (Option 3)
β β β β βββ route.ts
β β β βββ fix-bug/ # AI bug fixing endpoint
β β β β βββ route.ts
β β β βββ generate-suggestions/ # β¨ Multiple fixes (Option 3)
β β β β βββ route.ts
β β β βββ health/ # Health check endpoint
β β β β βββ route.ts
β β β βββ logger/ # Logging endpoint
β β β β βββ route.ts
β β β βββ me/ # User endpoint (Farcaster)
β β β β βββ route.ts
β β β βββ proxy/ # API proxy
β β β β βββ route.ts
β β β βββ save-feedback/ # β¨ Feedback system (Phase 2)
β β β β βββ route.ts
β β β βββ scan-security/ # β¨ Security scanner (Option 3)
β β β βββ route.ts
β β β
β β βββ dashboard/ # Dashboard page
β β β βββ page.tsx
β β β
β β βββ fonts/ # Custom fonts
β β β βββ GeistMonoVF.woff
β β β βββ GeistVF.woff
β β β
β β βββ layout.tsx # Root layout
β β βββ page.tsx # Landing page
β β βββ not-found.tsx # 404 page
β β βββ globals.css # Global styles
β β βββ favicon.ico # Favicon
β β
β βββ components/ # React components (35+ files)
β β βββ ui/ # ShadCN UI components (50+ files)
β β β βββ accordion.tsx
β β β βββ alert-dialog.tsx
β β β βββ alert.tsx
β β β βββ aspect-ratio.tsx
β β β βββ avatar.tsx
β β β βββ badge.tsx
β β β βββ breadcrumb.tsx
β β β βββ button.tsx
β β β βββ calendar.tsx
β β β βββ card.tsx
β β β βββ carousel.tsx
β β β βββ chart.tsx
β β β βββ checkbox.tsx
β β β βββ collapsible.tsx
β β β βββ command.tsx
β β β βββ context-menu.tsx
β β β βββ dialog.tsx
β β β βββ drawer.tsx
β β β βββ dropdown-menu.tsx
β β β βββ form.tsx
β β β βββ hover-card.tsx
β β β βββ index.tsx
β β β βββ input-otp.tsx
β β β βββ input.tsx
β β β βββ label.tsx
β β β βββ menubar.tsx
β β β βββ navigation-menu.tsx
β β β βββ pagination.tsx
β β β βββ popover.tsx
β β β βββ progress.tsx
β β β βββ radio-group.tsx
β β β βββ resizable.tsx
β β β βββ scroll-area.tsx
β β β βββ select.tsx
β β β βββ separator.tsx
β β β βββ sheet.tsx
β β β βββ sidebar.tsx
β β β βββ skeleton.tsx
β β β βββ slider.tsx
β β β βββ sonner.tsx
β β β βββ switch.tsx
β β β βββ table.tsx
β β β βββ tabs.tsx
β β β βββ textarea.tsx
β β β βββ toggle-group.tsx
β β β βββ toggle.tsx
β β β βββ tooltip.tsx
β β β
β β βββ FarcasterManifestSigner.tsx # Farcaster integration
β β βββ FarcasterToastManager.tsx # Toast notifications
β β βββ FarcasterWrapper.tsx # Farcaster wrapper
β β βββ activity-detail-modal.tsx # Activity details
β β βββ analytics-charts.tsx # Analytics visualizations
β β βββ analytics-dashboard.tsx # β¨ Analytics hub (Option 2)
β β βββ architecture-diagram.tsx # Architecture visualization
β β βββ bug-statistics-chart.tsx # β¨ Bug stats (Option 2)
β β βββ code-diff-viewer.tsx # Basic diff viewer
β β βββ code-explanation.tsx # β¨ Bug explanation (Option 3)
β β βββ code-fixer.tsx # π― Main AI code fixer
β β βββ context-analyzer.tsx # β¨ Context analysis (Phase 2)
β β βββ demo-section.tsx # Demo section
β β βββ enhanced-code-diff-viewer.tsx # β¨ Split view diff (Option 1)
β β βββ enhanced-live-activity-feed.tsx # Live activity feed
β β βββ export-report-dialog.tsx # Export dialog
β β βββ features-grid.tsx # Features grid
β β βββ feedback-system.tsx # β¨ User feedback (Phase 2)
β β βββ fix-history.tsx # β¨ Fix history (Option 1)
β β βββ hero-section.tsx # Hero section
β β βββ language-breakdown-chart.tsx # β¨ Language stats (Option 2)
β β βββ live-activity-feed.tsx # Activity feed
β β βββ mobile-nav.tsx # Mobile navigation
β β βββ model-selector.tsx # β¨ AI model config (Phase 2)
β β βββ multi-file-uploader.tsx # β¨ Multi-file upload (Phase 2)
β β βββ multiple-suggestions.tsx # β¨ Multiple fixes (Option 3)
β β βββ ready-notifier.tsx # Ready state notifier
β β βββ response-logger.tsx # Response logger
β β βββ security-scanner.tsx # β¨ Security scan (Option 3)
β β βββ stats-section.tsx # Stats section
β β βββ success-metrics.tsx # β¨ Success tracking (Option 2)
β β βββ time-saved-calculator.tsx # β¨ Time savings (Option 2)
β β
β βββ hooks/ # Custom React hooks
β β βββ use-mobile.tsx # Mobile detection
β β βββ useAddMiniApp.ts # Farcaster mini-app
β β βββ useIsInFarcaster.ts # Farcaster context
β β βββ useManifestStatus.ts # Manifest status
β β βββ useQuickAuth.tsx # Quick auth
β β
β βββ lib/ # Utility libraries
β β βββ analytics.ts # β¨ Analytics engine (Option 2)
β β βββ buggy-examples.ts # Example buggy code (8 examples)
β β βββ error-handler.ts # β¨ Error handling (Option 1)
β β βββ logger.ts # Logging utility
β β βββ utils.ts # Helper functions
β β
β βββ utils/ # Additional utilities
β β βββ manifestStatus.ts # Manifest status utility
β β
β βββ middleware.ts # Next.js middleware
β
βββ .gitignore # Git ignore rules
βββ .eslintrc.json # ESLint configuration
βββ components.json # ShadCN components config
βββ next.config.ts # Next.js configuration
βββ package.json # Dependencies
βββ postcss.config.mjs # PostCSS configuration
βββ tailwind.config.ts # Tailwind CSS configuration
βββ tsconfig.json # TypeScript configuration
βββ README.md # Main documentation
βββ DOCUMENTATION_INDEX.md # Documentation index
βββ SETUP_GUIDE.md # Setup guide
βββ HOW_TO_BUILD_LOCALLY.md # Local build guide
βββ FILE_STRUCTURE.md # File structure guide
Analyzes and fixes buggy code using AI.
Request Body:
{
"code": "def divide(a, b):\n return a / b",
"language": "python",
"errorType": "ZeroDivisionError",
"errorMessage": "division by zero"
}Response:
{
"success": true,
"fixedCode": "def divide(a, b):\n if b == 0:\n return 0\n return a / b",
"confidence": 0.85,
"analysis": "Analyzed 2 lines of code. Detected ZeroDivisionError. Generated fix with 4 lines. Modified 2 lines.",
"model": "gpt-4o-mini",
"timestamp": "2024-01-15T10:30:00.000Z"
}Parameters:
code(string, required): The buggy code to fixlanguage(string, optional): Programming language (default: python)errorType(string, optional): Type of error encounterederrorMessage(string, optional): Error message from runtime
Response Fields:
success(boolean): Whether the fix was successfulfixedCode(string): The AI-generated fixed codeconfidence(number): Confidence score (0.0 - 1.0)analysis(string): Detailed analysis of the fixmodel(string): AI model usedtimestamp(string): ISO timestamp of the fix
Health check endpoint for monitoring.
Response:
{
"status": "ok",
"timestamp": "2024-01-15T10:30:00.000Z",
"uptime": 3600
}Navigate to the homepage to learn about DevFlow.AI features and benefits.
Access the main dashboard at /dashboard to:
- View real-time activity feed
- Monitor debugging statistics
- Check productivity metrics
Use the Code Fixer component to:
-
Input Code
- Paste your buggy code into the text area
- Select the programming language
- Optionally specify error type and message
-
Try Examples
- Click "Load example..." dropdown
- Select from pre-loaded buggy code examples
- Test the AI with common bug types
-
Fix Bugs
- Click "Fix Bug with AI" button
- Wait for AI analysis (typically 2-5 seconds)
- Review the fixed code and analysis
-
View Results
- See side-by-side code comparison
- Check confidence score
- Read detailed analysis
- Division by Zero: Arithmetic errors
- Syntax Error: Code syntax issues
- Type Mismatch: Type conversion problems
- Index Error: Array/list access issues
- Undefined Variable: Variable scope issues
- Infinite Loop: Loop condition problems
- Null Reference: Null pointer issues
- File Not Found: File I/O errors
Monitor all debugging activities as they happen:
- Bug detection events
- Fix generation progress
- Test execution results
- Commit status updates
Visualize your debugging data:
- Bugs Fixed Over Time: Track daily bug resolution
- Success Rate: Monitor fix success percentage
- Time Saved: Calculate productivity gains
- Bug Categories: Distribution of bug types
Key performance indicators:
- Total bugs fixed
- Average fix time
- Success rate percentage
- Time saved vs manual debugging
Generate detailed reports:
- PDF export of activity logs
- Custom date range selection
- Detailed bug analysis
- Fix recommendations
We welcome contributions from the community! Here's how you can help:
- π Report bugs
- π‘ Suggest new features
- π Improve documentation
- π§ Submit pull requests
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Follow TypeScript best practices
- Use Tailwind CSS for styling
- Write descriptive commit messages
- Add comments for complex logic
- Ensure all tests pass
- AI-powered bug detection
- Code fix generation
- Real-time dashboard
- Activity feed
- Code diff viewer
- Multi-file bug detection
- Context-aware fixes
- Custom AI models
- Learning from user feedback
- GitHub integration
- VS Code extension
- CI/CD pipeline integration
- Slack notifications
- Team workspaces
- Shared debugging sessions
- Code review automation
- Knowledge base
This project is licensed under the MIT License - see the LICENSE file for details.
Developer: Khudri (mrbrightsides)
- GitHub: @mrbrightsides
- Discord: khudri_61362
- Documentation: DevFlow Docs
- π Website: DevFlow.AI
- π Documentation: github.com/mrbrightsides/devflow
- π Issues: Report a bug
- π¬ Discussions: Join the conversation
- OpenAI for providing the GPT-4o-mini model
- Vercel for Next.js framework
- Radix UI for accessible components
- Tailwind CSS for styling utilities
- Galuxium Nexus for hosting the hackathon
If you find DevFlow.AI helpful, please consider giving it a star β
Built with β€οΈ by developers, for developers