{"id":27766475,"url":"https://github.com/belphemur/night-routine","last_synced_at":"2026-06-17T01:00:49.258Z","repository":{"id":284684043,"uuid":"955730551","full_name":"Belphemur/night-routine","owner":"Belphemur","description":"A Go application that manages night routine scheduling between two parents, with Google Calendar integration for automated event creation.","archived":false,"fork":false,"pushed_at":"2026-06-15T11:48:50.000Z","size":4846,"stargazers_count":15,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-16T10:35:33.848Z","etag":null,"topics":["calendar","go","toddler"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Belphemur.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-03-27T05:25:05.000Z","updated_at":"2026-06-12T22:18:07.000Z","dependencies_parsed_at":"2026-01-14T21:03:43.183Z","dependency_job_id":null,"html_url":"https://github.com/Belphemur/night-routine","commit_stats":null,"previous_names":["belphemur/night-routine"],"tags_count":167,"template":false,"template_full_name":null,"purl":"pkg:github/Belphemur/night-routine","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Belphemur%2Fnight-routine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Belphemur%2Fnight-routine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Belphemur%2Fnight-routine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Belphemur%2Fnight-routine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Belphemur","download_url":"https://codeload.github.com/Belphemur/night-routine/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Belphemur%2Fnight-routine/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34429493,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["calendar","go","toddler"],"created_at":"2025-04-29T17:31:37.944Z","updated_at":"2026-06-17T01:00:49.193Z","avatar_url":"https://github.com/Belphemur.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"docs-site/assets/logo.png\" alt=\"Night Routine Logo\" width=\"120\" height=\"120\"\u003e\n  \u003ch1\u003eNight Routine Scheduler\u003c/h1\u003e\n\u003c/div\u003e\n\nA Go application that manages night routine scheduling between two parents, with Google Calendar integration for automated event creation and optional babysitter assignment support.\n\n## Why?\n\nManaging night routine duties between parents can be challenging. This application automates the scheduling process with a sophisticated fairness algorithm that considers multiple factors:\n\n- **Fair distribution** - Balances total assignments and recent patterns\n- **Availability awareness** - Respects each parent's unavailable days\n- **Transparency** - Every assignment includes a clear decision reason\n- **Flexibility** - Supports manual overrides when life happens\n- **Babysitter support** - Assign specific dates to named babysitters, tracked separately from parent fairness\n- **Google Calendar integration** - Seamlessly syncs with your existing calendar workflow\n\nThe application ensures both parents share night routine duties fairly while maintaining flexibility for real-world scheduling needs.\n\n## Key Features\n\n### Configuration Management\n\n- **Web-Based Settings UI** - Intuitive interface for managing all runtime configuration\n  - Configure parent names that appear in calendar events\n  - Set availability constraints for each parent\n  - Adjust schedule frequency and planning horizon\n  - Changes take effect immediately without application restart\n\n- **Database-Backed Configuration** - Settings stored in SQLite database\n  - Persistent across application restarts\n  - Atomic transactions ensure consistency\n  - Database constraints validate data integrity\n  - Automatic backup and migration support\n\n- **Automatic Sync** - Settings changes trigger immediate calendar synchronization\n  - Schedule recalculates based on new constraints\n  - Calendar events updated automatically\n  - Fairness algorithm adjusts to new availability patterns\n\n- **Smart Initialization** - First-run setup made easy\n  - Initial configuration from TOML file seeds database\n  - Automatic migration from file-based to database configuration\n  - Seamless upgrade path preserves existing settings\n\n### Scheduling Intelligence\n\n- **Fair Distribution** - Sophisticated algorithm balances assignments between parents\n- **Availability Awareness** - Respects each parent's unavailable days\n- **Transparency** - Every assignment includes a clear decision reason with detailed fairness calculations\n- **Assignment Details** - Click any assignment to view the fairness algorithm calculations that determined the assignment\n- **Flexibility** - Supports manual overrides when life happens\n- **Babysitter Assignments** - Assign named babysitters to specific dates, excluded from parent fairness calculations\n- **Google Calendar Integration** - Seamlessly syncs with your existing calendar workflow\n\n## Screenshots\n\n### Calendar Dashboard\n\nThe home page displays a monthly calendar grid with all night routine assignments. Each cell shows the assigned caregiver, the decision reason, and uses color coding for quick identification:\n\n- **Blue** — Parent A assignments\n- **Amber** — Parent B assignments\n- **Gray** — Babysitter assignments\n- **Lock icon** — Manually overridden (locked) assignments\n\n![Home Page - Calendar Dashboard](https://github.com/user-attachments/assets/74182b22-7639-428f-9c5b-a6615de53022)\n_Calendar dashboard with equal-width columns and uniform row heights. Decision reasons (Total Count, Alternating, Double Consecutive Swap, etc.) wrap naturally within cells. The \"Sync Now\" button triggers schedule regeneration — the home page is read-only by default._\n\n### Assignment Details Feature\n\nClick on any assignment in the calendar to view detailed information about how the fairness algorithm made its decision:\n\n![Assignment Details Modal - Desktop](docs/screenshots/assignment-details-modal-desktop.png)\n_Desktop view: Click any assignment to see the calculation date and both parents' statistics (total assignments and last 30 days count) at the time the assignment was made._\n\n![Assignment Details Modal - Mobile](docs/screenshots/assignment-details-modal-mobile.png)\n_Mobile view: The assignment details modal is fully responsive and provides the same transparency on mobile devices._\n\nThe assignment details modal shows:\n\n- **Calculation Date** - When the fairness algorithm evaluated this assignment\n- **Parent Statistics** - Total assignments and last 30-day counts for both parents at decision time\n- **Decision Explanation** - How the algorithm used these statistics to ensure balanced distribution\n\nThis feature provides complete transparency into the scheduling logic, helping families understand and trust the automated assignment process.\n\n## Quick Start with Docker\n\nPre-built multi-architecture Docker images (supporting both amd64 and arm64) are available in the GitHub Container Registry:\n\n```bash\n# Pull the latest release\ndocker pull ghcr.io/belphemur/night-routine:latest\n\n# Run the container\ndocker run \\\n  -e NR_OAUTH__CLIENT_ID=your-client-id \\\n  -e NR_OAUTH__CLIENT_SECRET=your-client-secret \\\n\n  -e CONFIG_FILE=/app/config/routine.toml \\\n  -v /path/to/config:/app/config \\\n  -v /path/to/data:/app/data \\\n  -p 8080:8080 \\\n  ghcr.io/belphemur/night-routine:latest\n```\n\nFor easier setup with Docker Compose, see the [installation documentation](https://belphemur.github.io/night-routine/installation/docker-compose/).\n\n_Note: These images are signed using Sigstore Cosign and include SBOM attestations for enhanced security._\n\n## Documentation\n\nFor comprehensive documentation including configuration, features, and development guides, visit the [**Night Routine Scheduler Documentation**](https://belphemur.github.io/night-routine/).\n\n**Quick Links:**\n\n- [Features Overview](https://belphemur.github.io/night-routine/features/)\n- [Installation Guide](https://belphemur.github.io/night-routine/installation/docker/)\n- [Configuration](https://belphemur.github.io/night-routine/configuration/toml/)\n- [First-Time Setup](https://belphemur.github.io/night-routine/user-guide/setup/)\n- [Architecture \u0026 Design](https://belphemur.github.io/night-routine/architecture/overview/)\n\n## License\n\nThis project is open source and available under the [AGPLv3 License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelphemur%2Fnight-routine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbelphemur%2Fnight-routine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbelphemur%2Fnight-routine/lists"}