Interactive architecture graph
Explore route subgraphs with pan and zoom. Follow edges from controllers through services, models, jobs, and events.
Free desktop app for Laravel developers
LaraLens scans your Laravel project on your machine and turns it into an interactive graph. Browse routes, trace call chains, inspect models, and ask questions with OpenCode. Free, local, and no PHP runtime needed.
Stop grepping through files to trace a request. LaraLens parses your codebase statically and shows how routes, controllers, services, and models connect, so you understand the full picture in seconds.
Features
LaraLens turns scattered PHP files into a living map, so you spend less time tracing requests and more time shipping features.
Explore route subgraphs with pan and zoom. Follow edges from controllers through services, models, jobs, and events.
Browse routes as cards or a folder tree. Open any route to see its call chain, middleware, and connected nodes.
ER-style view of Eloquent models, migration columns, and relationship edges like hasMany and belongsTo.
Jump from any graph node to its source file in a read-only viewer, sandboxed to your scanned project.
Chat about your project using your existing OpenCode install. Context-aware prompts from routes and nodes, with threads saved locally.
No PHP runtime required. Scanning runs in the desktop app via php-parser and fast-glob in the main process.
Pick a route, follow the call chain through controllers and services, open the source inline, or switch to the model view to see how your data layer connects, all without leaving the app.
Example trace
Switch between card and tree views. Drill into api/, admin/, or any route group.
See models, columns from migrations, and relationship edges in a dedicated graph view.
Select a controller, service, or job to see incoming and outgoing edges with file paths.
How it works
No manual diagrams. Point LaraLens at your project and get an architecture map you can navigate immediately.
Scan
Pick your Laravel project folder with the native directory picker. LaraLens runs entirely on your machine. No upload and no cloud account.
Select your project and hit Scan. Recent projects are saved locally for quick access.
Analyze
Static parsers walk your codebase in dependency order and assemble a graph of routes, controllers, models, jobs, and more.
Routes, middleware, Eloquent, commands, schedules, and channels—rendered as one interactive map.
Explore
An explorable map of your application. Browse routes, inspect nodes, open source files, or ask OpenCode about what you are viewing.
GET /billing → StripeWebhookController → BillingService → Subscription model → ProcessPayment job.
OpenCode integration
LaraLens does not replace OpenCode. It plugs into your existing install and sends prompts with the Laravel context you are already exploring in the graph.
How it works together
From detection through context-aware prompts, LaraLens keeps OpenCode scoped to the project you scanned and tied to what you are viewing.
LaraLens detects the opencode CLI on your PATH. Your providers, models, and agents come from the OpenCode configuration you already use.
After a successful project scan, LaraLens launches a local OpenCode server scoped to that project directory. Connection status stays visible in the toolbar.
Open the chat composer, toggle context-aware mode, and ask about the route, folder, or node you are viewing. LaraLens prepends that context automatically.
Context sent with each prompt
Route detail
GET /api/users → UserController@index
Selected node
UserService (service)
Route folder
/api/billing
What gets scanned
Built for real Laravel codebases: monoliths, APIs, and standard project structure. No configuration files to maintain.
Static analysis via php-parser runs in Node.js. Your machine doesn't need PHP installed to scan a project.
Follows method calls from controllers through services, repositories, jobs, events, views, and mail.
Model columns come from migration files, not just fillable arrays, so the ER view reflects your schema.
Privacy & philosophy
LaraLens is built for developers who care about ownership of their codebase and their tools. Completely free, forever.
Your source code never leaves your machine. Scanning and graph building run in the Electron main process.
Download, scan, explore. No sign-up and no cloud dependency for core scanning features.
The code viewer is read-only and restricted to files within your scanned project directory.
Architecture scanning and graph exploration work without an internet connection. AI features require OpenCode setup.
FAQ
No. LaraLens uses static analysis with php-parser in Node.js. It reads your PHP files directly. No Laravel or PHP runtime is required to scan a project.
Yes, for the AI chat features. LaraLens detects the opencode CLI on your PATH and connects to it automatically when you scan a project. Core architecture scanning and graph exploration work without OpenCode.
After you scan a project, LaraLens starts a local OpenCode server scoped to that directory. The built-in chat composer sends prompts through OpenCode using your existing providers and models. You can toggle context-aware mode to include the route, folder, or graph node you are currently viewing.
Never. All scanning happens locally in the Electron main process. Your source code stays on your machine.
LaraLens targets modern Laravel applications with conventional structure: routes, controllers, Eloquent models, middleware, artisan commands, and standard PSR-4 autoloading.
Telescope and Debugbar instrument runtime requests. LaraLens maps your entire static architecture, every route, controller, model, and relationship, before you even hit an endpoint.
Yes. LaraLens is a personal open-source project and will remain completely free. No subscriptions, no feature gates.
Windows (NSIS installer), macOS (DMG and ZIP), and Linux (AppImage, deb, rpm). Downloads are distributed via GitHub Releases.
Still have questions? Open an issue on GitHub
Download
Free, open source, and ready in minutes. Pick your platform and point LaraLens at your project.