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

naija-payroll

v1.0.0

Published

Accurate Nigerian payroll: PAYE, NHF, pension, consolidated relief. Zero dependencies. Bun/Node.js CLI + library.

Readme

naija-payroll

Zero-dependency TypeScript package for Nigerian payroll calculations. PAYE, NHF, Pension — done right.

npm version License: MIT PRs Welcome


Why

Nigerian payroll has a compounding complexity that every organisation rebuilds from scratch. PAYE brackets that are slightly wrong. NHF calculations nobody double-checked. Consolidated relief applied inconsistently. Pension contributions that don't match the Pension Reform Act 2014.

naija-payroll exists because after a year of building attendance and payroll systems for a real government parastatal — and getting every figure audited by Finance monthly — I know exactly how Nigerian payroll should work.

Install

bun add naija-payroll
# or
npm install naija-payroll

Use

import { calculatePayroll } from "naija-payroll";

const payslip = calculatePayroll({
  basic: 260000,
  housing: 65000,
  transport: 30000,
  utility: 10000,
  housingAllow: 15000,
  other: 20000,
  taxYear: 2026,
});

console.log(payslip);
/*
{
  grossIncome: 380000,
  taxableIncome: 298400,
  payeTax: 37240,
  nhfContribution: 7500,
  employeePension: 28500,
  employerPension: 28500,
  totalDeductions: 73240,
  netPay: 306760
}
*/

What It Calculates

| Field | Detail | |---|---| | Gross Income | basic + all allowances | | Taxable Income | gross − consolidated relief (0.2 × gross income, capped at ₦500,000) | | PAYE | FIRS 2026 brackets — 7%, 11%, 15%, 18%, 22%, 24% | | NHF | 2.5% of basic, capped at ₦7,500/month for basic ≥ ₦300,000 | | Employee Pension | 7.5% of (basic + housing + transport + utility) | | Employer Pension | 7.5% or 10% depending on scheme — documented in ARCHITECTURE.md | | Net Pay | gross − PAYE − NHF − employee pension |

Every figure has a source. Every deduction is the correct Nigerian interpretation.

Documentation

  • ARCHITECTURE.md — Full architecture writeup: biometric device integration, sync strategy, timezone normalization, mapping tables
  • CONTRIBUTING.md — Contributor guide, good first issues, npm publishing process

Architecture: The AMML Background

This package was extracted from building the attendance and payroll system for Abuja Markets Management Limited (AMML) — a government parastatal managing 19 markets across the FCT.

The biometric device integration, cross-referencing logic, and payroll calculation pipeline were all battle-tested against real Finance audits before becoming this package.

Read the full story: jedi.zo.space/hacktoberfest

Contributing

Open an issue. Pick a labeled bug. Ship a PR.

git clone https://github.com/jedee/naija-payroll
bun install
bun test

Good first issues: Issues labeled good first issue

License

MIT