How fluidd-core/fluidd works
Fluidd is a browser-based control panel for Klipper printers. Users enter through the app shell and routed views, inspect printer status and tools, and issue commands or manage files; requests travel through the Moonraker WebSocket client and update Vuex state for display. The graph also preserves file/G-code preview, printer configuration, camera, history, timelapse, MMU/AFC, and layout capabilities visible in the tree or README. Some feature implementations were not sampled, so only documented or indexed relationships are drawn.
Main entry points: state.ts Shared printer state · App.vue Fluidd app · socketActions.ts Moonraker actions · index.ts Application state
Components 28
App shell
- Fluidd app
src/App.vue - Page router
src/router/index.ts - Dashboard
src/views/Dashboard.vue - Custom layouts
src/store/layout - Color themes
src/plugins/colorSet.ts
Connection and state
- WebSocket client
src/plugins/socketClient.ts - Moonraker actions
src/api/socketActions.ts - Application state
src/store/index.ts - Shared printer state
src/mixins/state.ts - Printer globals
src/globals.ts
Printer operation
- Printer status
src/components/widgets/status/PrinterStatusCard.vue - Toolhead controls
src/components/widgets/toolhead/ToolheadCard.vue - Command console
src/components/widgets/console/ConsoleCard.vue - MMU mapping
src/components/widgets/mmu/MmuEditTtgMapDialog.vue - AFC print start
src/components/widgets/afc/dialogs/AfcPrintStartDialogTool.vue
Files and preview
- File operations
src/mixins/files.ts - File browser
src/components/widgets/filesystem/FileSystem.vue - G-code preview card
src/components/widgets/gcode-preview/GcodePreviewCard.vue - G-code preview
src/components/widgets/gcode-preview/GcodePreview.vue
Feature areas
- Spool selection
src/components/widgets/spoolman/SpoolSelectionDialog.vue - Camera views
src/components/widgets/camera/CameraCard.vue - Timelapse tools
src/components/widgets/timelapse/TimelapseSettingsCard.vue - Print history
src/components/widgets/history/PrintHistoryCard.vue - Editor worker helpers
src/workers/monacoWorkerHelpers.ts - Browser helpers
src/mixins/browser.ts - Event helpers
src/util/event-helpers.ts
Other components
- Printer user
- Moonraker service
Connections 35
- Printer user → Fluidd app: uses
README.md - Fluidd app → Page router: hosts routes
src/main.ts - Page router → Dashboard: routes to
src/router/index.ts - Dashboard → Printer status: renders
src/views/Dashboard.vue - Dashboard → Toolhead controls: renders
src/views/Dashboard.vue - Dashboard → Custom layouts: uses layout state
src/views/Dashboard.vue - Printer user → Custom layouts: customizes panels
README.md - Fluidd app → Browser helpers: mixes in
src/App.vue - Fluidd app → File operations: mixes in
src/App.vue - Fluidd app → Event helpers: checks keyboard events
src/App.vue - WebSocket client → Application state: dispatches updates
src/plugins/socketClient.ts - Moonraker actions → WebSocket client: emits requests
src/api/socketActions.ts - Moonraker actions → Moonraker service: requests data
src/api/socketActions.ts - Moonraker service → WebSocket client: returns responses
- Moonraker actions → Application state: dispatches results
src/api/socketActions.ts - Shared printer state → Moonraker actions: issues commands
src/mixins/state.ts - Shared printer state → Application state: reads printer state
src/mixins/state.ts - Printer status → Shared printer state: reads shared state
- Toolhead controls → Shared printer state: uses shared state
- Command console → Shared printer state: sends commands
- MMU mapping → Shared printer state: uses shared state
src/components/widgets/mmu/MmuEditTtgMapDialog.vue - MMU mapping → Moonraker actions: issues requests
src/components/widgets/mmu/MmuEditTtgMapDialog.vue - AFC print start → Moonraker actions: requests print start
src/components/widgets/afc/dialogs/AfcPrintStartDialog.vue - File browser → File operations: uses file operations
- Fluidd app → File operations: uploads dropped files
src/App.vue - G-code preview card → G-code preview: renders preview
src/components/widgets/gcode-preview/GcodePreviewCard.vue - G-code preview card → Shared printer state: uses shared state
src/components/widgets/gcode-preview/GcodePreviewCard.vue - G-code preview card → File operations: uses file helpers
src/components/widgets/gcode-preview/GcodePreviewCard.vue - Spool selection → Shared printer state: uses shared state
- Camera views → Application state: uses webcam state
- Timelapse tools → Application state: uses timelapse state
- Print history → Application state: uses history state
- Editor worker helpers → Browser helpers: worker support
- Fluidd app → Color themes: uses color theme
README.md - Printer globals → Moonraker actions: supplies API globals
src/api/socketActions.ts