{"id":40325691,"url":"https://github.com/rishav394/oncall-roster-manager","last_synced_at":"2026-01-20T07:35:25.927Z","repository":{"id":322859278,"uuid":"1091180700","full_name":"rishav394/oncall-roster-manager","owner":"rishav394","description":null,"archived":false,"fork":false,"pushed_at":"2026-01-02T09:11:56.000Z","size":166,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-08T03:27:39.900Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rishav394.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":null,"dco":null,"cla":null}},"created_at":"2025-11-06T17:00:32.000Z","updated_at":"2026-01-02T09:12:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rishav394/oncall-roster-manager","commit_stats":null,"previous_names":["rishav394/oncall-roster-manager"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rishav394/oncall-roster-manager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishav394%2Foncall-roster-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishav394%2Foncall-roster-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishav394%2Foncall-roster-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishav394%2Foncall-roster-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rishav394","download_url":"https://codeload.github.com/rishav394/oncall-roster-manager/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rishav394%2Foncall-roster-manager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28598179,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-20T07:35:25.276Z","updated_at":"2026-01-20T07:35:25.918Z","avatar_url":"https://github.com/rishav394.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Oncall Roster Scheduler\n\nA lightweight React-based tool that automatically generates balanced oncall rosters for engineering teams.\n\n## Features\n\n- **Automatic Scheduling**: Generates balanced oncall rosters with 2-slot gap constraint\n- **Leave Management**: Support for multiple leave types:\n  - All morning leave\n  - Complete leave\n  - Weekend leave (Sat/Sun)\n  - Custom date-specific leave\n- **Smart Balancing**: Greedy algorithm ensures fair workload distribution\n- **CSV Export**: Download rosters as CSV files\n- **Local Persistence**: Automatically saves your configuration\n- **Offline Ready**: Works entirely in the browser, no backend required\n\n## Getting Started\n\n### Prerequisites\n\n- Node.js (v18 or higher)\n- npm or yarn\n\n### Installation\n\n1. Clone the repository\n```bash\ngit clone \u003crepository-url\u003e\ncd oncall-roster-manager\n```\n\n2. Install dependencies\n```bash\nnpm install\n```\n\n3. Start the development server\n```bash\nnpm run dev\n```\n\n4. Open your browser and navigate to `http://localhost:5173`\n\n## Usage\n\n1. **Add Team Members**: Enter team member names in the textarea (one per line)\n2. **Set Date Range**: Select start and end dates for the roster\n3. **Configure Leaves** (optional):\n   - Use quick-add buttons for common leave types\n   - Add custom leaves for specific dates and slots\n4. **Generate Roster**: Click \"Generate Roster\" to create the schedule\n5. **Export**: Download the roster as CSV using the \"Download CSV\" button\n\n## How It Works\n\nThe scheduler uses a greedy balancing algorithm that:\n- Ensures at least 2 slots gap between consecutive oncalls for each member\n- Respects all declared leaves\n- Distributes workload evenly across team members\n- Prioritizes members with fewer assignments\n\n### Constraints\n\n- Each day has two slots: Morning and Evening\n- Each member must have ≥2 slot gaps between assignments\n- Members cannot be assigned during declared leaves\n\n## Tech Stack\n\n- **React** - UI framework\n- **Vite** - Build tool\n- **TailwindCSS** - Styling\n- **Papaparse** - CSV export\n- **LocalStorage** - Data persistence\n\n## Building for Production\n\n```bash\nnpm run build\n```\n\nThe production-ready files will be in the `dist` directory.\n\n## Preview Production Build\n\n```bash\nnpm run preview\n```\n\n## Deployment\n\nThis application can be deployed to both GitHub Pages and Cloudflare Pages.\n\n### GitHub Pages\n\nThe application is configured for automatic deployment to GitHub Pages.\n\n#### Automatic Deployment\n\nWhen you push to the `main` or `master` branch, GitHub Actions will automatically:\n1. Build the application\n2. Deploy to GitHub Pages\n\nMake sure to enable GitHub Pages in your repository settings:\n- Go to Settings \u003e Pages\n- Source: GitHub Actions\n\n#### Manual Deployment\n\nYou can also deploy manually using:\n\n```bash\nnpm run build\nnpm run deploy\n```\n\nThis will build the app and push it to the `gh-pages` branch.\n\n#### Live URL\n\nAfter deployment, your app will be available at:\n`https://rishav394.github.io/oncall-roster-manager/`\n\n### Cloudflare Pages\n\nFor improved performance and global CDN distribution, you can deploy to Cloudflare Pages.\n\n#### Quick Setup\n\n1. **Connect to Cloudflare Pages**\n   - Login to [Cloudflare Dashboard](https://dash.cloudflare.com)\n   - Go to Workers \u0026 Pages \u003e Create application \u003e Pages\n   - Connect your GitHub repository\n\n2. **Configure Build Settings**\n   - Build command: `npm run build:cloudflare`\n   - Build output directory: `dist`\n   - Environment variable: `VITE_DEPLOY_TARGET=cloudflare`\n\n3. **Deploy**\n   - Cloudflare automatically deploys on every push to `main`\n   - Get a free `.pages.dev` subdomain\n   - Optional: Add custom domain\n\n#### Benefits of Cloudflare Pages\n\n- **Global CDN**: 300+ edge locations worldwide\n- **Unlimited bandwidth**: No bandwidth limits on free tier\n- **Auto SSL**: Automatic HTTPS certificates\n- **Fast builds**: Parallel build processing\n- **Web Analytics**: Privacy-focused analytics included\n\nFor detailed instructions, see [CLOUDFLARE_DEPLOYMENT.md](CLOUDFLARE_DEPLOYMENT.md)\n\n## License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishav394%2Foncall-roster-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frishav394%2Foncall-roster-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frishav394%2Foncall-roster-manager/lists"}