How crtmitchn/courier works
Courier is a TypeScript tray application for tracking parcels through ParcelsApp. On launch it prompts for a tracking number and destination country, then periodically fetches shipment data, compares the latest status with persisted state, notifies on changes, and presents tracking history in the system tray; clicking the tracking number copies it. The sampled entry point owns most runtime behavior, so several components share its path. The excerpts do not show the complete API request or tray event wiring; uncertain links are omitted or marked unverified.
Main entry points: index.ts Application cycle · tracking.json Tracking settings · laststate.json Last status · types.ts Response types
Components 12
User interaction
- Tracking prompt
src/index.ts - Desktop notification
src/index.ts - Tray display
src/index.ts - Clipboard copy
src/index.ts
Tracking workflow
- Application cycle
src/index.ts - Shipment lookup
src/index.ts - Response types
src/types.ts - Status comparison
src/index.ts
Persisted state
- Tracking settings
src/tracking.json - Last status
src/laststate.json
Other components
- User
- ParcelsApp API
Connections 14
- User → Tracking prompt: enters details
README.md - Application cycle → Tracking prompt: requests input
src/index.ts - Tracking prompt → Tracking settings: writes settings
src/index.ts - Application cycle → Shipment lookup: starts cycle
src/index.ts - Shipment lookup → Tracking settings: reads settings
src/index.ts - Shipment lookup → ParcelsApp API: requests tracking
- Shipment lookup → Response types: returns response
src/index.ts - Application cycle → Last status: reads status
src/index.ts - Application cycle → Status comparison: compares status
src/index.ts - Status comparison → Last status: writes changed status
src/index.ts - Status comparison → Desktop notification: notifies change
src/index.ts - Application cycle → Tray display: displays shipment
src/index.ts - User → Tray display: opens tray
README.md - User → Clipboard copy: clicks tracking number
README.md