How brodymclemore/pompotimer works
PompoTimer is an Electron desktop Pomodoro timer. A user selects a work or break mode, starts or stops its countdown, and the app automatically advances through work/short-break cycles to a long break after three work sessions. The Electron main process creates the window and loads the interface; renderer code owns countdown state, mode transitions, and clock/progress updates. The README documents the cycle and three selectable durations; the excerpts do not show how the HTML loads the renderer script, so that connection is omitted.
Main entry points: app.js Countdown engine · index.js Window and menu · index.html Mode controls · style.css Screen styling
Components 9
Desktop shell
- Window and menu
src/index.js
Timer workflow
- Countdown engine
src/app.js - Cycle transitions
src/app.js
Timer interface
- Timer screen
src/index.html - Screen styling
src/Style/style.css - Mode controls
src/index.html - Clock and progress
src/app.js
Other components
- User
- Electron runtime
Connections 9
- Electron runtime → Window and menu: starts app
src/index.js - Window and menu → Timer screen: loads window
src/index.js - User → Mode controls: selects mode
README.md - Mode controls → Countdown engine: sets timer mode
README.md - User → Countdown engine: starts or stops
src/app.js - Countdown engine → Clock and progress: updates display
src/app.js - Countdown engine → Cycle transitions: dispatches on completion
src/app.js - Cycle transitions → Countdown engine: starts next mode
src/app.js - Screen styling → Timer screen: styles