salman053/project-canvas

An immersive 3D visualization tool for Laravel applications that maps architecture, dependencies, and test coverage in real-time.

Maintainers

Package info

github.com/Salman053/project-canvas

Homepage

pkg:composer/salman053/project-canvas

Transparency log

Fund package maintenance!

salman053

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 2

v1.0.4 2026-07-23 12:25 UTC

This package is auto-updated.

Last update: 2026-07-23 18:54:40 UTC


README

An immersive 3D visualization tool that transforms your Laravel application's architecture into an interactive, living graph.

PHP Laravel Packagist License

Overview

Laravel Canvas scans your entire Laravel codebase, identifies all key architectural components (Models, Controllers, Jobs, Listeners, Policies, Middleware, Service Providers, and Routes), maps their interconnections, and renders everything as a stunning 3D universe powered by THREE.js.

Features

  • 3D Architecture Visualization — Interactive WebGL-powered 3D graph with orbital controls
  • Auto-Scanning — Automatically discovers models, controllers, jobs, and more
  • Dependency Mapping — Visualizes constructor injections, use statements, and relationships
  • Health Indicators — Color-coded nodes: green (healthy), yellow (moderate), red (needs refactoring)
  • Real-Time Test Mode — Watch tests animate the graph with green/red pulses
  • Search & Filter — Instant node lookup with autocomplete, filter by component type
  • Heat Map — Git commit frequency visualized on the graph
  • Snapshots — Capture and compare architecture states over time
  • Export — Generate shareable static JSON snapshots

Installation

composer require salman053/project-canvas
php artisan vendor:publish --provider="Salman053\Canvas\CanvasServiceProvider"

Quick Start

Scan your codebase:

php artisan canvas:scan

Launch the 3D visualization:

php artisan canvas:serve

Open your browser to http://localhost:8080/canvas and run your tests in another terminal to see the graph come alive.

Commands

  • php artisan canvas:scan — Scan the codebase and display architecture statistics
  • php artisan canvas:serve — Start the 3D visualization and WebSocket server

API

Canvas provides a REST API at /api/canvas/ for programmatic access to architecture data.

Dashboard

A dashboard with aggregate statistics is available at /canvas/dashboard.

Configuration

Publish the config file to customize scanning paths, visualization settings, and health thresholds.

php artisan vendor:publish --tag=canvas-config

License

MIT