How szkrd/springald works
Springald is an Electron desktop launcher. The main workflow loads configuration, indexes configured sources, filters and displays matching items, then launches the selected item; backend IPC controls the window and supports shortcuts and socket-based toggling. The graph preserves the documented Fluxbox, PATH, directory, custom-shortcut, and .desktop capabilities. Some subsystem links rely on SOURCE INDEX references or README documentation because their implementation excerpts were not provided.
Main entry points: parseAll.ts Parse coordinator · main.ts Launcher UI · initBackend.ts Backend startup · handleMesssage.ts Message handlers
Components 26
Renderer launcher
- Launcher UI
src/main.ts - Search filtering
src/renderer/runtime/filterSearchItems.ts - Match scoring
src/renderer/utils/search.ts - Results rendering
src/renderer/runtime/renderResults.ts - Renderer runtime
src/renderer/runtime/runtime.ts - App launching
src/renderer/runtime/openWithApp.ts
Item indexing
- Parse coordinator
src/renderer/runtime/parseAll.ts - Fluxbox menu
src/renderer/runtime/parsing/parseFluxboxMenu.ts - PATH executables
src/renderer/runtime/parsing/parsePath.ts - Configured folders
src/renderer/runtime/parsing/parseDirs.ts - Custom shortcuts
src/renderer/runtime/parsing/parseCustomShortcuts.ts - Searchable text
src/renderer/runtime/parsing/getSearchableText.ts - Desktop-file hooks
src/renderer/runtime/parsing/postParsingHooks/processXdgDesktopFile.ts
Electron backend
- Backend startup
src/backend/initBackend.ts - Window management
src/backend/initWindow.ts - Global shortcuts
src/backend/initGlobalShortcuts.ts - System tray
src/backend/initTray.ts - Message handlers
src/backend/messaging/handleMesssage.ts - Backend event bus
src/backend/messaging/backendEventBus.ts - Unix socket
src/backend/messaging/unixSocket.ts
Shared services
- Configuration
src/shared/config.ts - Config types
src/shared/config.types.ts - File utilities
src/renderer/utils/file.ts - Buffered logging
src/shared/log.ts
Other components
- User
- Electron runtime
Connections 32
- User → Launcher UI: enters query
src/main.ts - Launcher UI → Parse coordinator: loads items
src/main.ts - Launcher UI → Search filtering: filters query
src/main.ts - Search filtering → Match scoring: scores matches
src/renderer/runtime/filterSearchItems.ts - Launcher UI → Results rendering: renders matches
src/renderer/runtime/renderResults.ts - Launcher UI → App launching: launches selection
src/main.ts - Launcher UI → Renderer runtime: uses runtime
src/main.ts - Renderer runtime → Search filtering: filters items
src/renderer/runtime/runtime.ts - Renderer runtime → Results rendering: renders results
src/renderer/runtime/runtime.ts - Parse coordinator → Fluxbox menu: parses menu
src/renderer/runtime/parseAll.ts - Parse coordinator → PATH executables: parses PATH
src/renderer/runtime/parseAll.ts - Parse coordinator → Configured folders: parses folders
src/renderer/runtime/parseAll.ts - Parse coordinator → Custom shortcuts: parses shortcuts
src/renderer/runtime/parseAll.ts - Parse coordinator → Searchable text: builds searchable text
src/renderer/runtime/parseAll.ts - Parse coordinator → Desktop-file hooks: runs post-parse hooks
src/renderer/runtime/parsing/postParsingHooks/processPostParseHooks.ts - Launcher UI → Configuration: loads configuration
src/main.ts - Configuration → Config types: uses config type
src/shared/config.ts - Configuration → File utilities: reads JSON
src/shared/config.ts - Backend startup → Configuration: loads configuration
src/backend/initBackend.ts - Backend startup → Window management: initializes window
src/backend/initBackend.ts - Backend startup → Global shortcuts: initializes shortcuts
src/backend/initBackend.ts - Backend startup → System tray: initializes tray
src/backend/initBackend.ts - Backend startup → Message handlers: registers handlers
src/backend/initBackend.ts - Message handlers → Backend event bus: registers callbacks
src/backend/messaging/handleMesssage.ts - Unix socket → Message handlers: dispatches messages
src/backend/messaging/unixSocket.ts - Global shortcuts → Message handlers: sends commands
src/backend/initGlobalShortcuts.ts - System tray → Message handlers: sends commands
src/backend/initTray.ts - Launcher UI → Electron runtime: uses IPC
src/main.ts - Backend startup → Electron runtime: controls app
src/backend/initBackend.ts - App launching → Parse coordinator: uses parsed items
src/renderer/runtime/openWithApp.ts - Parse coordinator → File utilities: uses file helpers
src/renderer/runtime/parsing/parsePath.ts - Backend startup → Buffered logging: records events
src/backend/initBackend.ts