SAM.gov scout — runs on the operating group's real CAGE/UEI
`lib/sam-gov.ts` queries SAM.gov Opportunities API v2 with the operating group's registered API key (tied to CAGE 77SM4, UEI LR94Z4RUN2T5). A single tuned Boolean keyword scope — `BALLAIR_KEYWORD_SCOPE` — covers 25+ aviation and fuel terms targeted at the work Brendon actually bids: Interior/IBC on-call fixed-wing (140D-prefix BIA notices), DLA Energy fueling, USTRANSCOM channel missions, USPS contract air mail, FEMA/USAID humanitarian, CRAF Seg II.
- Before
- Spreadsheet of SAM.gov tabs, refreshed by hand. Opportunities discovered after the response deadline ran out.
- After
- Auto-fed Postgres table sorted by responseDeadLine; red banner inside 21 days; one-click into a live SAM.gov search for any of 28 categories.
- Endpoint: api.sam.gov/opportunities/v2/search (1000 req/hr per key)
- Pagination handled by the lib; results post into the Postgres opportunities table
- Source links rewritten through Google `site:sam.gov` to dodge the SAM.gov 404 quirk
- Scheduled task fans out 28 keyword-scope categories on a weekly cadence
