Real-time API Debugging with AI-Powered Insights
DebugLens is a powerful web application designed to help developers debug API calls in real-time. With an intuitive interface and AI-powered analysis, you can quickly identify and fix issues with your API requests.
| Name | Domain Availability | Focus |
|---|---|---|
| DebugLens | ✅ debuglens.dev | Primary - inspection/insight focus |
| APIProbe | ✅ apiprobe.io | Investigation/probing |
| RequestRadar | ✅ requestradar.dev | Monitoring/detection |
| FetchFixer | ✅ fetchfixer.dev | Action-oriented debugging |
| EndpointEye | ✅ endpointeye.io | Observation focused |
- 🔧 API Request Builder - Configure endpoint, method, headers, and body
- 📊 Live Response Viewer - Real-time display with JSON syntax highlighting
- 🤖 AI Debug Assistant - Powered by Gemini API (HuggingFace fallback)
- ⚡ Quick Fixes Library - One-click solutions for common API issues
- 📜 Request History - Store and replay last 10 requests
- 🌓 Dark/Light Theme - Beautiful glassmorphism UI
graph TB
subgraph Client["🖥️ Frontend (React + Vite)"]
UI[User Interface]
RB[Request Builder]
RV[Response Viewer]
AI[AI Debug Panel]
CF[Common Fixes]
RH[Request History]
end
subgraph Services["⚙️ Core Services"]
AS[API Service]
GS[Gemini AI Service]
HF[HuggingFace Fallback]
HS[History State Manager]
end
subgraph External["🌐 External APIs"]
GA[Gemini API]
HFA[HuggingFace Inference API]
TB["Test APIs<br/>(HTTPBin, JSONPlaceholder)"]
PS[Polar.sh Payments]
end
UI --> RB
UI --> RV
UI --> AI
UI --> CF
UI --> RH
RB --> AS
AS --> TB
AS --> RV
RV --> AI
AI --> GS
GS --> GA
GS -.->|Fallback| HF
HF --> HFA
RH --> HS
UI --> PS
style Client fill:#1a1a2e,stroke:#6366f1,color:#fff
style Services fill:#252542,stroke:#8b5cf6,color:#fff
style External fill:#0f0f1a,stroke:#a855f7,color:#fff
sequenceDiagram
participant U as 👤 User
participant RB as 🔧 Request Builder
participant AS as ⚙️ API Service
participant EA as 🌐 External API
participant RV as 📊 Response Viewer
participant AI as 🤖 AI Assistant
U->>RB: Configure Request
Note over RB: URL, Method, Headers, Body
RB->>AS: Execute Request
AS->>EA: HTTP Request
EA-->>AS: Response
AS-->>RV: Display Results
alt Failed Request (4xx/5xx)
RV->>AI: Auto-trigger Debug
AI->>AI: Analyze with Gemini/HF
AI-->>U: Show Fixes & Suggestions
else User Clicks Debug
U->>AI: Manual Debug Request
AI-->>U: Detailed Analysis
end
U->>RB: Apply One-Click Fix
RB->>AS: Retry Request
flowchart LR
A[📝 Enter API Details] --> B{Valid?}
B -->|Yes| C[🚀 Send Request]
B -->|No| D[⚠️ Show Validation]
D --> A
C --> E{Response?}
E -->|2xx ✅| F[Green Status]
E -->|3xx ⚡| G[Yellow Status]
E -->|4xx/5xx ❌| H[Red Status]
F & G & H --> I[💾 Save to History]
H --> J{Debug?}
J -->|Yes| K[🤖 AI Analysis]
K --> L[💡 Suggestions]
L --> M{Apply Fix?}
M -->|Yes| A
M -->|No| N[✏️ Manual Edit]
N --> A
style A fill:#6366f1,color:#fff
style C fill:#10b981,color:#fff
style K fill:#8b5cf6,color:#fff
DebugLens/
├── 📄 index.html # HTML entry point with SEO meta
├── 📄 package.json # Dependencies and scripts
├── 📄 vite.config.js # Vite configuration
├── 📄 README.md # Project documentation
├── 📄 COMMIT_MESSAGES.md # Commit messages for each file
│
├── 📁 public/
│ └── 🎨 favicon.svg # App favicon
│
└── 📁 src/
├── 📄 main.jsx # React entry point
├── 📄 App.jsx # Main application component
├── 🎨 index.css # Global styles & design system
│
├── 📁 components/
│ ├── 🧩 Header.jsx # App header with theme toggle
│ ├── 🧩 RequestBuilder.jsx # API request configuration
│ ├── 🧩 ResponseViewer.jsx # Response display
│ ├── 🧩 JsonViewer.jsx # JSON syntax highlighting
│ ├── 🧩 AIDebugAssistant.jsx # AI-powered debugging
│ ├── 🧩 CommonFixes.jsx # Quick fix suggestions
│ └── 🧩 RequestHistory.jsx # Request history & replay
│
├── 📁 services/
│ ├── ⚙️ apiService.js # HTTP request handling
│ ├── ⚙️ aiService.js # Gemini/HuggingFace integration
│ └── ⚙️ exampleRequests.js # Pre-configured examples
│
└── 📁 data/
└── 📊 commonFixes.js # Common API fixes database
# Clone the repository
git clone https://github.com/HectorTa1989/DebugLens.git
# Navigate to project directory
cd DebugLens
# Install dependencies
npm install
# Start development server
npm run dev
# Build for production
npm run buildDebugLens includes pre-configured example requests for:
- JSONPlaceholder - Fake REST API for testing
- HTTPBin - HTTP request/response testing
- GitHub API - Real-world API example
Support the project through Polar.sh or crypto:
| Method | Address |
|---|---|
| BTC | 145U3n87FxXRC1nuDNDVXLZjyLzGhphf9Y |
| BSC (BEP20) | 0x23f0c8637de985b848b380aeba7b4cebbcfb2c47 |
| Technology | Purpose |
|---|---|
| React 18 | UI Framework |
| Vite 5 | Build Tool |
| Lucide React | Icons |
| Gemini API | AI Debugging |
| HuggingFace | AI Fallback |
| CSS Variables | Theming |
MIT License - feel free to use this project for personal or commercial purposes.
Built with ❤️ by HectorTa1989