npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

job-scout

v1.2.0

Published

TypeScript-native job-scout library

Readme

job-scout · npm version

TypeScript-first job scraping library with stable support for LinkedIn, Indeed, Bayt, and Naukri, plus experimental support for ZipRecruiter, Glassdoor, Google Jobs, and BDJobs.

Install

npm install job-scout

Node >=20 is required.

Quick Start

import { scoutJobs } from 'job-scout'

const jobs = await scoutJobs(
	{
		sites: ['indeed', 'linkedin', 'google'],
		query: 'software engineer',
		location: 'Ambon, Indonesia',
		pagination: { limitPerSite: 20 },
		filters: { postedWithinHours: 72 },
		google: {
			query: 'software engineer jobs near Ambon, Indonesia since yesterday',
		},
		indeed: { country: 'indonesia' },
		enrichment: { enabled: true, mode: 'low' },
		linkedin: {
			fetchDescription: true,
			enrichment: {
				fields: { emails: true, skills: true },
				exposeMeta: true,
			},
		},
	},
	{
		transport: {
			timeoutMs: 20_000,
		},
		experimental: {
			experimentalSites: {
				google: true,
			},
		},
		logging: {
			level: 'warn',
		},
	},
)

console.log(jobs.length)
console.log(jobs[0])

Client API

import { createClient } from 'job-scout'

const client = createClient({
	transport: { timeoutMs: 20_000 },
	logging: { level: 'warn' },
})

const jobs = await client.scoutJobs({
	sites: ['indeed'],
	query: 'backend engineer',
	location: 'Austin, TX',
	indeed: { country: 'usa' },
})

Public API

  • createClient(config?: JobScoutConfig): JobScoutClient
  • scoutJobs(request: JobSearchRequest, config?: JobScoutConfig): Promise<Job[]>
  • scoutJobRows(request: JobSearchRequest, config?: JobScoutConfig): Promise<JobRow[]>
  • toJobRows(jobs: Job[]): JobRow[]

Request Model

JobSearchRequest supports:

  • sites: JobSite[] (required, non-empty)
    • Stable by default: indeed | linkedin | bayt | naukri
    • Experimental (opt-in required): zipRecruiter | glassdoor | google | bdjobs
  • query?: string
  • location?: string
  • pagination?: { limitPerSite?: number; offset?: number }
  • filters?: { distanceMiles?: number; remote?: boolean; easyApply?: boolean; employmentType?: ...; postedWithinHours?: number }
  • enrichment?: EnrichmentConfig
  • linkedin?: { fetchDescription?: boolean; companyIds?: number[]; enrichment?: EnrichmentConfig }
  • indeed?: { country?: string }
  • google?: { query?: string }

EnrichmentConfig supports:

  • enabled?: boolean (default false)
  • mode?: 'off' | 'low' | 'medium' | 'high'
  • budget?: { maxExtraRequestsPerJob?: number; maxPagesPerDomain?: number; requestTimeoutMs?: number }
  • sources?: { jobDetailPage?: boolean; externalApplyPage?: boolean; companyPages?: boolean }
  • fields?: { emails?: boolean; skills?: boolean; seniority?: boolean; companyWebsite?: boolean; workMode?: boolean; companySize?: boolean }
  • exposeMeta?: boolean (default false, adds job.enrichmentMeta)

Constraint rules are enforced at compile time (TypeScript) and runtime:

  • Experimental sites must be explicitly enabled with config.experimental.experimentalSites.<site> = true.
  • If sites includes google, google.query is required.
  • For Indeed, use only one filter group at a time:
    • filters.postedWithinHours
    • filters.easyApply
    • filters.employmentType/filters.remote
  • For LinkedIn, filters.postedWithinHours and filters.easyApply cannot both be enabled.

Configuration

JobScoutConfig:

  • transport: proxies, user agent, CA cert path, timeout
  • performance: global/site concurrency, retry policy, adaptive concurrency
  • experimental: { experimentalSites: Record<Site, boolean> } (partial overrides allowed; missing keys default to false)
  • output: description format, salary annualization, salary fallback behavior
  • logging: error | warn | info | debug

Testing

Unit tests:

bun run test

Live integration tests:

JOBSCOUT_TEST_PROXIES="host1:port1,host2:port2" \
bun run test:integration:live

Full suite:

bun run test:all

Release

This package is published through GitHub Actions using npm trusted publishing (OIDC).

Publish a new version

  1. Update the version in package.json.
  2. Commit and push the version change.
  3. Create and push a matching tag:
git tag v<package-version>
git push origin v<package-version>

The publish workflow verifies that v<package-version> exactly matches package.json and then runs:

  • bun run typecheck
  • bun run test
  • bun run build
  • npm publish --provenance --access public