Tech stack
Laravel
React
Linux
Next.js
LaraLens
Why I Built It
Core Features
- Interactive architecture graph — Pan and zoom through routes, controllers, services, models, jobs, and events in one view
- Route browser — Card or folder tree views with middleware and call chains per route
- Model relationship view — ER-style Eloquent map with migration-aware columns
- Inline code viewer — Read-only, sandboxed to the scanned project
- Call-chain tracing — Follow a request from route to controller to service to model in seconds
- OpenCode integration — Context-aware AI chat from the graph (route, folder, or selected node)
How Scanning Works
php-parser and fast-glob inside an Electron shell. No PHP runtime is required on the user's machine.
It parses routes, controllers, models, middleware, jobs, events, commands, schedules, channels, and providers — then builds the graph from that analysis.
Privacy
- No cloud upload or accounts required
- Offline core features
- Local SQLite for chat thread persistence
- Sandboxed code viewer scoped to the scanned project
Technical Stack
- Electron for cross-platform desktop delivery
- Node.js static analysis (
php-parser,fast-glob) - React renderer UI
- SQLite for local chat threads
- OpenCode CLI integration for context-aware AI
- Cross-platform releases for Windows, macOS, and Linux
