import fs from 'fs' const T = `databricks stripe datadog mongodb okta zscaler elastic cloudflare brex verkada oscar samsara fivetran gitlab affirm pinterest coinbase lyft flexport figma reddit twilio klaviyo robinhood asana instacart intercom nuro tripadvisor vercel gusto mixpanel duolingo tide faire monzo chime postman sofi carta newrelic discord launchdarkly zocdoc checkr peloton pagerduty dropbox gemini applovin pendo webflow anthropic squarespace wise coursera airtable udemy lattice upwork instabase netlify kayak tubi hellofresh gympass doximity impact ridgeline sagesure ripple anaplan adyen billtrust bitgo blend braze cultureamp justworks melio pushpay setpoint smartsheet taskrabbit`.split(/\s+/).filter(Boolean) const all=[] const chunk=(a,n)=>a.reduce((r,v,i)=>(i%n?r[r.length-1].push(v):r.push([v]),r),[]) async function one(t){ try{ const r=await fetch(`https://boards-api.greenhouse.io/v1/boards/${t}/jobs?content=true`) if(!r.ok) return const j=await r.json() for(const job of j.jobs||[]) all.push({co:t,title:job.title||'',content:job.content||''}) }catch{} } for(const c of chunk(T,8)) await Promise.all(c.map(one)) fs.writeFileSync(process.argv[2], JSON.stringify(all)) console.log('fetched', all.length, 'postings from', new Set(all.map(x=>x.co)).size, 'companies')