Skip to content

feat(visa-sponsors): United States provider (USCIS H-1B Employer Data Hub)#663

Open
type0labs-dev wants to merge 1 commit into
DaKheera47:mainfrom
Type-zero-labs:feat/us-visa-sponsor-provider
Open

feat(visa-sponsors): United States provider (USCIS H-1B Employer Data Hub)#663
type0labs-dev wants to merge 1 commit into
DaKheera47:mainfrom
Type-zero-labs:feat/us-visa-sponsor-provider

Conversation

@type0labs-dev

Copy link
Copy Markdown
Contributor

What

Adds a us visa-sponsor provider backed by the USCIS H-1B Employer Data Hub yearly export — employers with H-1B petition approvals, the closest public equivalent of a sponsor register for the US.

  • Latest fiscal year discovered by probing h1b_datahubexport-<year>.csv downwards from next year (FY2023 is the newest published today; FY2024+ gets picked up automatically)
  • One row per employer×NAICS in the source → aggregated per employer, initial+continuing approvals summed; zero-approval and empty-employer rows dropped
  • route: "H-1B", typeRating: "H-1B employer (FY2023: N approvals)", city/state mapped to the location fields
  • Catalog + docs table updated

Evidence

  • Live run: 27,146 employers parsed from the FY2023 export in ~5s (sanity: GOOGLE LLC, Mountain View CA, 2,460 approvals)
  • 5 unit tests: NAICS aggregation, empty-employer and zero-approval filtering, missing-location tolerance, year-probing fallback, no-year-available error

Notes

Checks

biome ci . clean · shared + orchestrator typechecks · provider tests 5/5 · same 5 pre-existing client test files fail on clean main in my env (locale/timing), unrelated.

🤖 Generated with Claude Code

… Hub)

Employers with H-1B approvals in the latest published fiscal year,
aggregated per employer across NAICS rows. The newest export is
discovered by probing fiscal years downwards from next year, so new
USCIS publications are picked up without a code change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@DaKheera47

Copy link
Copy Markdown
Owner

LGTM! Would need the merge like you mentioned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants