How k1m0ch1/maaingwe works
MaAingWe is a command-line Darwinbox attendance tool. Users authenticate with a temporary QR-code string, configure attendance details and times, then check in/out manually or run a daily scheduler. Scheduled actions skip weekends and dates in holidays.json; checkout first retrieves the current check-in ID. The graph reflects the sampled CLI and API implementation. The API contract and example configuration are present in the tree but were not excerpted, so their internals are not expanded.
Main entry points: main.go Command dispatch · utils/main.go API client · holidays.json Holiday calendar · struct.go Request and response models
Components 16
CLI workflows
- Command dispatch
main.go - QR login
main.go - Daily scheduler
main.go - Profile display
main.go
Attendance rules
- Attendance gate
main.go - Holiday calendar
holidays.json - Check-in action
main.go - Checkout action
main.go
Darwinbox API
- Request and response models
utils/struct.go - API client
utils/main.go
Configuration
- Config loading
utils/main.go - User configuration
- Config generation
utils/main.go
Other components
- User
- Darwinbox service
- Holiday data source
Connections 23
- User → Command dispatch: runs commands
README.md - Command dispatch → Config loading: loads config
main.go - Command dispatch → QR login: dispatches login
main.go - Command dispatch → Daily scheduler: starts scheduler
main.go - Command dispatch → Profile display: dispatches profile
main.go - Command dispatch → Check-in action: runs directly
main.go - Command dispatch → Checkout action: runs directly
main.go - QR login → API client: submits QR
main.go - QR login → Config generation: generates config
main.go - Config generation → User configuration: writes config
utils/main.go - Config loading → User configuration: reads config
utils/main.go - Config generation → Holiday data source: downloads holidays
utils/main.go - Config generation → Holiday calendar: writes holidays
utils/main.go - Daily scheduler → Attendance gate: schedules checks
main.go - Attendance gate → Holiday calendar: reads dates
main.go - Attendance gate → Check-in action: runs check-in
main.go - Attendance gate → Checkout action: runs checkout
main.go - Check-in action → API client: requests check-in
main.go - Checkout action → API client: requests check-in ID
main.go - Checkout action → API client: submits checkout
utils/main.go - Profile display → API client: fetches profile
main.go - API client → Darwinbox service: sends API requests
utils/main.go - API client → Request and response models: uses data types
utils/main.go