How 38260/local-project-archive-desktop works
Tracelight is a local-first project archive: users add a project path or scan a root, the backend discovers and parses project metadata, and the UI presents searchable dashboards and project details backed by a local SQLite archive. Project records also support notes, changelogs, screenshots, launchers, run history, and export/restore; Git summaries power commit and activity views. A separate desktop shell wraps the local web app with a native window and tray. Relationships are grounded in README statements and SOURCE INDEX references; unsampled feature details are represented at subsystem level.
Main entry points: projects.py Project archive API · scanner.py Scan and import API · main.py FastAPI application · common.js Browser UI
Components 22
Local entry points
- Browser UI
app/static/js/common.js - Desktop shell
desktop.py - OS startup integration
app/services/autostart.py
Web application
- FastAPI application
app/main.py - Project archive API
app/routers/projects.py - Scan and import API
app/routers/scanner.py - Settings API
app/routers/settings.py - Dashboard
app/static/js/dashboard.js - Project detail UI
app/static/js/project.js - Settings UI
app/static/js/settings.js
Project workflows
- Project discovery
app/services/scanner.py - Duplicate detection
app/services/duplicates.py - Launch management
app/services/launcher.py - Captured runs
app/services/runlog.py
Parsing and insights
- Project parser
app/services/parser.py - Git insights
app/services/gitinfo.py - Markdown rendering
app/services/render.py - Workflow diagrams
app/services/flowchart.py
Local persistence
- Project archive database
app/db.py - Settings store
app/services/settings_store.py
Other components
- Local user
- Local project folders
Connections 33
- Local user → Browser UI: uses
README.md - Local user → Desktop shell: opens
README.md - Browser UI → FastAPI application: requests
README.md - Desktop shell → FastAPI application: hosts
README.md - FastAPI application → Project archive API: routes
app/main.py - FastAPI application → Scan and import API: routes
app/main.py - FastAPI application → Settings API: routes
app/main.py - Browser UI → Dashboard: renders
README.md - Browser UI → Project detail UI: renders
README.md - Browser UI → Settings UI: renders
README.md - Scan and import API → Project discovery: starts scan
app/routers/scanner.py - Scan and import API → Duplicate detection: checks candidates
app/routers/scanner.py - Scan and import API → Project parser: parses imports
app/routers/scanner.py - Project archive API → Duplicate detection: checks duplicates
app/routers/projects.py - Project archive API → Project parser: parses projects
app/routers/projects.py - Project archive API → Git insights: reads Git data
app/routers/projects.py - Project archive API → Markdown rendering: renders content
app/routers/projects.py - Project archive API → Launch management: manages launchers
app/routers/projects.py - Project archive API → Captured runs: records runs
app/routers/projects.py - Project parser → Git insights: reads repository
app/services/parser.py - Project parser → Markdown rendering: renders README
app/services/parser.py - Project archive API → Workflow diagrams: uses workflow diagrams
app/routers/projects.py - Project archive API → Project archive database: reads and writes
app/routers/projects.py - Scan and import API → Project archive database: imports records
app/routers/scanner.py - Captured runs → Project archive database: stores run history
app/services/runlog.py - FastAPI application → Project archive database: initializes archive
app/main.py - Project archive database → Settings store: configures backups
app/db.py - Settings API → Settings store: updates preferences
app/routers/settings.py - Project archive API → Local project folders: reads project files
README.md - Scan and import API → Local project folders: imports from paths
README.md - Git insights → Local project folders: reads repository history
README.md - Settings API → OS startup integration: controls startup
app/routers/settings.py - Desktop shell → OS startup integration: offers tray setting
desktop.py