How loganthp/iconmorph works
IconMorph is a desktop icon-customization app: users select a folder or shortcut, design or choose an icon, preview it, apply it, and can later restore earlier designs. The React/Tauri boundary invokes a Rust engine that generates and applies native icons, with persistent history and platform-specific adapters. The README documents the product capabilities and broad runtime flow; sampled source confirms parts of the engine, IPC, and UI state behavior. Some feature implementations and command handlers were not sampled, so their internal links are limited to documented relationships.
Main entry points: App.tsx App workspace · engine.rs Engine orchestration · ipc.ts Typed IPC · explore Home and Explore
Components 23
Desktop interface
- App workspace
src/App.tsx - Home and Explore
src/features/explore - Icon Studio
src/features/icon-studio - Character Shelf
src/features/icon-studio/CharacterShelf.tsx - Desktop Theatre
src/features/desktop-theatre/DesktopTheatre.tsx - Themes
src/features/theme-studio/Themes.tsx - Time Capsule
src/features/time-capsule/TimeCapsule.tsx - UI state
src/stores/app.ts - Design state
src/stores/studio.ts - Collections and assets
src/lib/collections.ts
Tauri boundary
- Typed IPC
src/lib/ipc.ts - Tauri commands
src-tauri/src/commands.rs - Live helper control
src-tauri/src/live.rs
Icon engine
- Engine orchestration
crates/iconmorph-core/src/engine.rs - Icon composition
crates/iconmorph-core/src/compose.rs - Raster processing
crates/iconmorph-core/src/raster.rs - Icon encoding
crates/iconmorph-core/src/encode.rs - History and assets
crates/iconmorph-core/src/store.rs - Image input
crates/iconmorph-core/src/image_io.rs
Native integration
- Platform adapters
crates/iconmorph-core/src/platform/mod.rs - Windows live icons
crates/iconmorph-core/src/platform/windows_live.rs - Operating system
Other components
- User
Connections 28
- User → App workspace: uses
README.md - App workspace → Home and Explore: routes to
src/App.tsx - App workspace → Icon Studio: routes to
src/App.tsx - App workspace → Themes: routes to
src/App.tsx - App workspace → Time Capsule: routes to
src/App.tsx - App workspace → Desktop Theatre: opens
src/App.tsx - Home and Explore → Character Shelf: uses
src/features/explore/Explore.tsx - Home and Explore → UI state: reads
src/features/explore/Explore.tsx - App workspace → UI state: loads
src/App.tsx - Icon Studio → Design state: edits
src/features/icon-studio/usePreview.ts - Icon Studio → Typed IPC: requests previews
src/features/icon-studio/usePreview.ts - Character Shelf → Collections and assets: browses
src/lib/collections.ts - Themes → Typed IPC: applies batch
src/features/theme-studio/Themes.tsx - Time Capsule → Typed IPC: requests restore
src/features/time-capsule/TimeCapsule.tsx - Desktop Theatre → UI state: reads
src/features/desktop-theatre/DesktopTheatre.tsx - Typed IPC → Tauri commands: invokes
README.md - Tauri commands → Engine orchestration: dispatches
README.md - Engine orchestration → Image input: decodes
crates/iconmorph-core/src/engine.rs - Engine orchestration → Icon composition: composes
crates/iconmorph-core/src/engine.rs - Icon composition → Raster processing: uses
crates/iconmorph-core/src/compose.rs - Engine orchestration → Icon encoding: encodes
crates/iconmorph-core/src/engine.rs - Icon encoding → Raster processing: processes
crates/iconmorph-core/src/encode.rs - Engine orchestration → History and assets: reads and writes
crates/iconmorph-core/src/engine.rs - Engine orchestration → Platform adapters: applies icons
README.md - Platform adapters → Operating system: sets metadata
README.md - Typed IPC → Live helper control: controls opt-in
- Live helper control → Windows live icons: starts helper
- Windows live icons → Operating system: animates icons
README.md