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

@zapply/job-board-shared

v1.0.0

Published

Shared utilities for ZapplyJobs job board repositories

Readme

@zapplyjobs/job-board-shared

Shared utilities for ZapplyJobs job board repositories.

Installation

npm install @zapplyjobs/job-board-shared

Usage

const {
  getJobChannelDetails,
  getJobLocationChannel,
  PostedJobsManagerV2,
  DeduplicationLogger
} = require('@zapplyjobs/job-board-shared');

// Routing requires config injection - define your channel mapping
const CHANNEL_CONFIG = {
  'tech': '123456789',
  'ai': '987654321',
  'default': '111111111'
};

const job = { job_title: 'Software Engineer', employer_name: 'Google' };
const result = getJobChannelDetails(job, CHANNEL_CONFIG);
console.log(result.category); // 'tech'

Modules

Routing

  • getJobChannelDetails(job, config) - Main job categorization
  • getJobChannel(job, config) - Returns just channel ID
  • getJobLocationChannel(job, config) - Location-based routing
  • isTechRole(title), isAIRole(title), etc. - Role detection helpers

Utils

  • retryWithBackoff(fn, maxRetries) - Retry with exponential backoff
  • discordApiCall(fn) - Discord API rate limit handling
  • formatPostedDate(date) - Date formatting
  • cleanJobDescription(text) - Clean HTML from descriptions
  • normalizeJob(job) - Normalize job object fields

Data Management

  • PostedJobsManagerV2 - Track posted jobs (deduplication)
  • SubscriptionManager - Manage user subscriptions

Logging

  • DeduplicationLogger - Log duplicate checks
  • DiscordPostLogger - Log Discord posting results

Encryption

  • encryptLog(data, password) - AES-256-GCM encryption
  • decryptLog(data, password) - Decryption

Config Injection Pattern

All routing functions require config injection to avoid hardcoding channel IDs:

// In your repo's config.js
const CHANNEL_CONFIG = {
  'tech': process.env.DISCORD_TECH_CHANNEL,
  'ai': process.env.DISCORD_AI_CHANNEL,
  // ...
};

// When calling routing functions
const { getJobChannelDetails } = require('@zapplyjobs/job-board-shared');
const result = getJobChannelDetails(job, CHANNEL_CONFIG);

License

MIT