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

@palmgrove/nefdb

v1.0.2

Published

Nigeria Emission Factor Database — the first open, versioned emission factor database for Nigerian operations

Readme

NEFDB - Nigeria Emission Factor Database

NEFDB publishes versioned Scope 1 and Scope 2 emission factors for Nigerian operations.

What is NEFDB?

The Nigeria Emission Factor Database (NEFDB) is an open, versioned collection of emission factors built specifically for Nigerian grid electricity, fuel combustion, transport, and waste operations. Each factor is traceable to source data and calculation notes so the figures can be audited and reproduced.

It is designed for:

  • Researchers studying Nigerian greenhouse gas emissions
  • Regulators and auditors reviewing corporate carbon disclosures
  • Sustainability teams preparing reports for NGX, FRC, and SEC Nigeria
  • Developers building carbon accounting tools for Nigerian companies

Public datasets

All NEFDB source datasets, documents, and derived calculation outputs are published through the public R2 Worker:

https://nefdb-r2-publisher.ugbodagadavid.workers.dev

Published domains:

| Domain | Worker route | |--------------------|------------------------------------------------------| | Grid electricity | /grid_electricity/ | | Fuel combustion | /fuel_combustion/ | | Transport aviation | /transport_aviation/ | | Waste water | /waste_water/ |

Each domain contains main, additional, and derived folders for datasets and documentation.

Installation

Add the package with Bun, npm, pnpm, or Yarn:

bun add @palmgrove/nefdb
npm install @palmgrove/nefdb

Usage

Import the database API from the package:

import { nefdb } from "@palmgrove/nefdb";

// List every factor in the current version
const all = nefdb.list();

// Include source records
const withSources = nefdb.list({ withSource: true });

// Include full factor records
const full = nefdb.list({ full: true });

Fuel combustion

import { nefdb } from "@palmgrove/nefdb";

const diesel = nefdb.fuel.diesel();
console.log(diesel?.per_litre.value);  // kgCO2e per litre
console.log(diesel?.per_kwh.field?.value); // recommended for aged generator fleets

Road transport

const byFuel = nefdb.transport.road("diesel");
const byVehicle = nefdb.transport.road("diesel", "car");

Domestic aviation

const route = nefdb.aviation.route("LOS", "ABV");
const withRf = nefdb.aviation.route("LOS", "ABV", { rf: true });

Waste

const landfill = nefdb.waste.msw("landfill_managed");
const domesticWastewater = nefdb.waste.wastewater("domestic");

Raw data files

The current release also ships as JSON and CSV exports:

import csv from "@palmgrove/nefdb/data/csv";          // string
import factors from "@palmgrove/nefdb/data/json";     // EmissionFactor[]

If you prefer to read the static files directly, you can still resolve them from the package root:

import { readFileSync } from "node:fs";

const csv = readFileSync(
  new URL("@palmgrove/nefdb/data/nefdb_v1.csv", import.meta.url),
  "utf8"
);

const json = JSON.parse(
  readFileSync(
    new URL("@palmgrove/nefdb/data/nefdb_v1.json", import.meta.url),
    "utf8"
  )
);

Methodology

Every factor in NEFDB is derived from documented source data and calculation steps. See METHODOLOGY.md for the full derivation methodology and audit trail.

Changelog

Version history is recorded in CHANGELOG.md.

License

NEFDB is released under the CC-BY-SA-4.0 license.

Copyright (c) Irenium Ltd [email protected].

Contributing and audit trail

All derived values, figures, tables, and derived data in NEFDB must be supported by documentation that explains how they were calculated.

If you are contributing a new factor or revising an existing one, please:

  1. Add the derivation notes and source references under the relevant domain folder.
  2. Record the change in CHANGELOG.md.
  3. Run the validation and test suite before publishing:
bun run validate
bun test

Repository