Group Scholar Wellbeing Pulse is a Racket CLI that tracks scholar wellbeing check-ins, flags risk signals, and summarizes weekly cohort health. It stores data in Postgres so the ops team can keep longitudinal history and audit trails.
- Capture check-ins with mood, stress, and engagement scores.
- Automatic risk flagging for low mood, high stress, or low engagement.
- Tag stressors (housing, financial, workload) for follow-up routing.
- Weekly cohort summaries with averages and flagged counts.
- Cohort and scholar directories for quick filtering.
- Racket 9
- PostgreSQL (production)
- Install dependencies (Racket includes
dbby default). - Copy
env.exampleto.envand export values. - Initialize and seed the database.
racket src/main.rkt init-db
racket src/main.rkt seed-dbDB_HOSTDB_PORT(default 5432)DB_NAME(defaultralph)DB_USER(defaultralph)DB_PASSWORDDB_SSLMODE(defaultdisablefor this Postgres host)
racket src/main.rkt list-cohorts
racket src/main.rkt add-cohort --name "Rise Cohort" --start 2026-01-10
racket src/main.rkt add-scholar --name "Taylor Brooks" --cohort "Rise Cohort" --status active --risk-level low
racket src/main.rkt log-checkin --scholar-id 1 --date 2026-02-07 --mood 6 --stress 5 --engagement 7 --notes "On track with coursework." --tags workload
racket src/main.rkt list-checkins --limit 10
racket src/main.rkt weekly-summary --week-start 2026-02-03All tables live under the groupscholar_wellbeing_pulse schema.
cohortsscholarscheckinspulse_tagscheckin_tags
raco test test/test_main.rkt- This CLI is intended for production use with environment variables and does not include credentials in source.