How versedcamel153/visor-studio works
Visor Studio is a browser-based editor and preview tool for Visor BootManager configuration—not the bootloader. The main workflow is to edit or create entries, use schema-driven controls, inspect diagnostics and a live menu preview, then generate and export a config bundle. An optional local mode can read, save, back up, and validate paths in an installed Visor directory. The graph preserves the documented editor, preview, asset, and export branches; source excerpts do not expose every frontend event or backend implementation detail, so those connections are limited to shown imports, calls, and README statements.
Main entry points: main.tsx Studio app · main.py FastAPI service · parser.py Config parser · BootPreview.tsx Boot preview
Components 19
Studio interface
- Studio app
frontend/src/main.tsx - Config controls
frontend/src/components/ConfigControls.tsx - Entry wizard
frontend/src/components/EntryWizard.tsx - Diagnostics
frontend/src/components/Diagnostics.tsx - Boot preview
frontend/src/components/BootPreview.tsx - Preview layout
frontend/src/lib/previewLayout.ts - Config views
frontend/src/components/HighlightedCode.tsx
Config services
- API client
frontend/src/lib/api.ts - FastAPI service
main.py - Config parser
core/parser.py - Schema metadata
core/schema_metadata.py - API models
schemas/visor_models.py
Installed Visor
- Local install mode
core/local_mode.py - Installed Visor files
Assets and export
- Staged asset store
frontend/src/lib/uploadedAssets.ts - Asset resolver
frontend/src/lib/visorAssets.ts - Export bundle
frontend/src/lib/exportBundle.ts - Bundled defaults
frontend/public/defaults/boot.conf.example
Other components
- Studio user
Connections 25
- Studio user → Studio app: edits config
README.md - Studio app → Config controls: configures
frontend/src/main.tsx - Studio app → Entry wizard: creates entries
frontend/src/main.tsx - Studio app → Diagnostics: shows diagnostics
README.md - Studio app → Boot preview: renders preview
frontend/src/main.tsx - Studio app → Config views: shows config
frontend/src/main.tsx - Boot preview → Preview layout: uses layout
frontend/src/components/BootPreview.tsx - Studio app → API client: requests services
frontend/src/main.tsx - API client → FastAPI service: calls endpoints
README.md - FastAPI service → Config parser: parses and generates
main.py - FastAPI service → Schema metadata: serves schema
main.py - Config parser → Schema metadata: loads schema
core/parser.py - FastAPI service → Local install mode: handles local requests
main.py - Local install mode → Config parser: parses local config
core/local_mode.py - FastAPI service → API models: uses request models
main.py - Config parser → API models: builds typed results
core/parser.py - Local install mode → Installed Visor files: reads and writes
README.md - Studio app → Bundled defaults: loads starter config
frontend/src/main.tsx - Studio app → Staged asset store: persists uploads
frontend/src/main.tsx - Asset resolver → Staged asset store: resolves staged assets
frontend/src/lib/visorAssets.ts - Boot preview → Asset resolver: resolves preview assets
frontend/src/components/BootPreview.tsx - Studio app → Asset resolver: enables local previews
frontend/src/main.tsx - Studio app → Export bundle: builds download
frontend/src/main.tsx - Export bundle → Staged asset store: includes staged files
frontend/src/lib/exportBundle.ts - Studio user → Installed Visor files: installs exported files
README.md