How jasonkenwayfj/glyph works
Glyph is a cross-platform workspace for creative projects, organizing documents, structured entities, tasks, media, and their relationships. The main flow begins in the routed UI, selects or edits a project, and reaches Tauri commands and Rust project/entity state; the desktop layer also loads project data from local files. Separate branches cover account authorization, AI chat, and plugins. The README describes broader linked-object and multi-view goals. Several command handlers and product screens were not excerpted, so their connections are shown only as unverified where appropriate.
Main entry points: lib.rs Tauri runtime · router.tsx Screen router · project_manager.rs Project manager · ProjectPage.tsx Project screens
Components 28
Workspace UI
- App bootstrap
src/App.tsx - Screen router
src/router/router.tsx - Project screens
src/screens/ProjectPage.tsx - Entity views
src/screens/EntityPage.tsx - Editor screens
src/screens/MainPage.tsx - Plugin pages
src/router/pluginRouter.tsx - Project state
src/storage/projectStorage.ts
Desktop Bridge
- Tauri runtime
src-tauri/src/lib.rs - Project commands
src-tauri/src/commands/project_commands.rs - Entity commands
src-tauri/src/commands/commands.rs - Account commands
src-tauri/src/commands/user_commands.rs - AI commands
src-tauri/src/commands/ai_chat_commands.rs - Plugin commands
src-tauri/src/commands/plugin_commands.rs - Project file I/O
src-tauri/src/glyph_fs
Project Core
- Project manager
core/src/managers/project_manager.rs - Project model
core/src/entities/project_entity.rs - Card model
core/src/entities/card_entity.rs - Document model
core/src/entities/document_entity.rs - User model
core/src/entities/user_entity.rs - Entity contract
core/src/traits/entity_like.rs - Entity kinds
core/src/enums/entity_type.rs
Services & Storage
- Authorization service
core/src/network/authorization_service.rs - HTTP client
core/src/network/api_client.rs - AI chat manager
core/src/managers/ai_chat_manager.rs - Plugin manager
core/src/managers/plugin_manager.rs
Other components
- Workspace user
- Glyph server
- Local project files
Connections 31
- Workspace user → Screen router: uses
src/router/router.tsx - App bootstrap → Screen router: renders
src/App.tsx - App bootstrap → Project state: loads projects
src/App.tsx - Screen router → Project screens: routes to
src/router/router.tsx - Screen router → Entity views: routes to
src/router/router.tsx - Screen router → Editor screens: routes to
src/router/router.tsx - Screen router → Plugin pages: routes to
src/router/router.tsx - Project screens → Project commands: invokes
- Entity views → Entity commands: invokes
- Project commands → Project manager: manages projects
- Entity commands → Project manager: manages entities
- Project manager → Project model: stores
core/src/managers/project_manager.rs - Project manager → Entity contract: filters entities
core/src/managers/project_manager.rs - Project manager → Card model: stores
core/src/managers/project_manager.rs - Project manager → Document model: stores
core/src/managers/project_manager.rs - Entity contract → Entity kinds: uses types
core/src/traits/entity_like.rs - Tauri runtime → Project commands: registers
src-tauri/src/lib.rs - Tauri runtime → Entity commands: registers
src-tauri/src/lib.rs - Tauri runtime → Account commands: registers
src-tauri/src/lib.rs - Tauri runtime → AI commands: registers
src-tauri/src/lib.rs - Tauri runtime → Plugin commands: registers
src-tauri/src/lib.rs - Tauri runtime → Project file I/O: loads data
src-tauri/src/lib.rs - Project file I/O → Local project files: reads/writes
- Account commands → Authorization service: delegates to
- Authorization service → HTTP client: sends requests
core/src/network/authorization_service.rs - Tauri runtime → HTTP client: configures
src-tauri/src/lib.rs - HTTP client → Glyph server: calls
- AI commands → AI chat manager: delegates to
- Plugin commands → Plugin manager: delegates to
- Tauri runtime → Project state: emits project events
- Project state → Project screens: supplies state