How mourtisma/electron-audio-tagger works
Electron Audio Tagger is a desktop app for browsing a chosen directory of audio files and editing their tags. The workflow runs from the directory picker through the file grid and edit dialog to tag persistence, with the updated file reflected in the grid. The graph also includes the app renderer, controller, repository, and adapter layers. Paths and edges are grounded in the README and source index; the Electron entry and some runtime wiring were not sampled, so their connections are omitted.
Main entry points: main-container.tsx Directory and edit flow · node-id3-adapter.ts NodeID3 file adapter · audio-file-controller.ts Audio file controller · edit-dialog.tsx Edit dialog
Components 17
User interface
- Renderer bootstrap
src/renderer.ts - React app mount
src/app.tsx - Directory and edit flow
src/view/main-container.tsx - Audio file grid
src/view/audio-files-grid.tsx - Edit dialog
src/view/edit-dialog.tsx - Tag edit form
src/view/edit-audio-file-form.tsx - Edit context
src/view/context.ts - Electron dialog helper
src/helpers/electron.ts
Tag editing
- Audio file controller
src/controller/audio-file-controller.ts - Audio file model
src/model/audio-file.ts - Track number helpers
src/helpers/node-id3.ts
File access
- Audio file repository
src/model/audio-file-repository.ts - Adapter contract
src/model/adapters/generic-adapter.ts - NodeID3 file adapter
src/model/adapters/node-id3-adapter.ts
Other components
- Desktop user
- Audio files
- node-id3 library
Connections 23
- Renderer bootstrap → React app mount: loads
src/renderer.ts - React app mount → Directory and edit flow: renders
src/app.tsx - Desktop user → Directory and edit flow: chooses directory
README.md - Directory and edit flow → Electron dialog helper: opens picker
src/view/main-container.tsx - Directory and edit flow → Audio file controller: loads directory
src/view/main-container.tsx - Directory and edit flow → Audio file controller: reads selected file
src/view/main-container.tsx - Directory and edit flow → Audio file controller: saves edited tags
src/view/main-container.tsx - Directory and edit flow → Audio file grid: renders files
src/view/main-container.tsx - Audio file grid → Directory and edit flow: selects file
src/view/audio-files-grid.tsx - Directory and edit flow → Edit dialog: renders editor
src/view/main-container.tsx - Directory and edit flow → Edit context: provides edit state
src/view/main-container.tsx - Edit dialog → Tag edit form: renders form
src/view/edit-dialog.tsx - Edit dialog → Edit context: reads edit state
src/view/edit-dialog.tsx - Tag edit form → Edit context: reads edit action
src/view/edit-audio-file-form.tsx - Tag edit form → Track number helpers: validates tracks
src/view/edit-audio-file-form.tsx - Audio file controller → Audio file repository: delegates file operations
- Audio file repository → Adapter contract: uses adapter contract
src/model/audio-file-repository.ts - NodeID3 file adapter → Adapter contract: implements contract
src/model/adapters/node-id3-adapter.ts - NodeID3 file adapter → Audio file model: maps tag values
src/model/adapters/node-id3-adapter.ts - NodeID3 file adapter → Track number helpers: converts track numbers
src/model/adapters/node-id3-adapter.ts - NodeID3 file adapter → Audio files: reads and updates
src/model/adapters/node-id3-adapter.ts - NodeID3 file adapter → node-id3 library: reads and writes tags
src/model/adapters/node-id3-adapter.ts - Audio file repository → Audio file model: returns audio files
src/model/audio-file-repository.ts