{
  "@context": "https://schema.org",
  "@type": "SoftwareSourceCode",
  "schema_version": "2026.1",
  "name": "supplyshift-public",
  "headline": "SupplyShift \u2014 Workforce Capacity, Slot Overbooking & Shift Movement Tower",
  "description": "Field Workforce Shift-Rostering, Slot Capacity & Overbooking Loss Optimizer: demand-curve simulator, slot-cap recommender, and plan-vs-actual utilization tracker.",
  "abstract": "Field Workforce Shift-Rostering, Slot Capacity & Overbooking Loss Optimizer: demand-curve simulator, slot-cap recommender, and plan-vs-actual utilization tracker.",
  "problemSolved": "Field operations teams lose orders every morning when customer bookings cluster into peak 15-minute slots at one hub while neighboring hubs sit at 35% utilization, or when mid-shift attendance drops go unnoticed until SLAs fail.",
  "license": "https://opensource.org/licenses/MIT",
  "codeRepository": "https://github.com/mohan-n-swamy/supplyshift-public",
  "url": "https://mohan-n-swamy.github.io/repos/supplyshift-public/",
  "llmsTxt": "https://mohan-n-swamy.github.io/repos/supplyshift-public/llms.txt",
  "llmsFullTxt": "https://mohan-n-swamy.github.io/repos/supplyshift-public/llms-full.txt",
  "rawLlmsFullTxt": "https://raw.githubusercontent.com/mohan-n-swamy/supplyshift-public/main/llms-full.txt",
  "aiReadme": "https://raw.githubusercontent.com/mohan-n-swamy/supplyshift-public/main/AI-README.md",
  "keywords": [
    "workforce-management",
    "shift-scheduling",
    "capacity-planning",
    "operations-research",
    "field-operations",
    "demand-forecasting",
    "typescript",
    "docker",
    "open-source"
  ],
  "searchQueries": [
    "open source supplyshift self hosted MIT",
    "SupplyShift github configurable .env",
    "how to self host supplyshift with docker python typescript",
    "open source workforce management reference architecture",
    "open source shift scheduling reference architecture",
    "open source capacity planning reference architecture",
    "open source operations research reference architecture",
    "open source field operations reference architecture",
    "open source demand forecasting reference architecture"
  ],
  "capabilities": [
    "Per-hub utilization and 15-minute slot overbooking detector (`src/overbookings.ts`) with exact City -> Hub -> Slot reconciliation.",
    "Ordered P0..P5 donor-hub staff movement recommender (`src/movement-engine.ts`) with donor safety floors and standby activation fallbacks.",
    "Largest-cover same-address / household batching calculator (`sameHomeSavings` in `src/sheets-client.ts`).",
    "Append-only SQLite snapshot scheduler (`plan_snapshots`, `availability_polls`, `demand_snapshots`) with 1-hour stale-lock recovery (`src/jobs/job-runs.ts`).",
    "Per-30-minute bucket Combined Demand Loss (`CDL(t) = max(0, Ba(t) - Xa(t))`) derivation engine (`src/history/derive.ts`)."
  ],
  "configurableInputs": [
    {
      "name": "PORT",
      "default": "3800"
    },
    {
      "name": "SCHEDULER_API_URL",
      "default": "https://scheduler-api.ops.example.org"
    },
    {
      "name": "ALLOWED_AUTH_DOMAIN",
      "default": "ops.example.org"
    },
    {
      "name": "GOOGLE_CLIENT_ID",
      "default": "000000000000-exampleoauthclientid.apps.googleusercontent.com"
    },
    {
      "name": "GOOGLE_CLIENT_SECRET",
      "default": "replace-with-oauth-client-secret"
    },
    {
      "name": "GOOGLE_REDIRECT_URI",
      "default": "http://localhost:3800/api/auth/callback"
    },
    {
      "name": "GOOGLE_SHEETS_SPREADSHEET_ID",
      "default": "10000000000000000000000000000000000000000000"
    },
    {
      "name": "SAME_HOME_SHEET_ID",
      "default": "10000000000000000000000000000000000000000001"
    }
  ],
  "quickstart": [
    "npm install",
    "npm run demo      # zero-credential synthetic hub movement & overbooking simulation",
    "npm test          # runs all 4 TypeScript test suites (auth/locks, slots, CDL history, overbookings)",
    "npm run lint      # strict TypeScript typecheck (tsc --noEmit)"
  ],
  "author": {
    "@type": "Person",
    "name": "Mohan N",
    "url": "https://github.com/mohan-n-swamy"
  }
}
