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

kardashev

v0.1.1

Published

Free, open-source JavaScript/TypeScript client for the Kardashev Labs US grid data API - LMP, load, fuel mix, carbon intensity, curtailment, and interconnection queues across 7 US ISOs. No API key required.

Readme

kardashev

Free, open-source JavaScript/TypeScript client for US grid data: LMP, load, fuel mix, carbon intensity, curtailment, and interconnection queues across CAISO, ERCOT, MISO, NYISO, ISONE, SPP, and PJM. No API key required.

Install

npm install kardashev

Usage

import { Client } from "kardashev";

const kl = new Client();

const fuel = await kl.fuelMix("CAISO");
const carbon = await kl.carbonLatest();
const prices = await kl.lmp("PJM", { market: "RT", limit: 50 });
const queue = await kl.queue({ iso: "ERCOT" });

Works in Node.js 18+ (uses the built-in fetch) and in the browser/edge runtimes.

Common tasks

Fuel mix for all 7 ISOs in one pass:

const isos = ["CAISO", "ERCOT", "MISO", "NYISO", "ISONE", "SPP", "PJM"];
const mixes = Object.fromEntries(
  await Promise.all(isos.map(async (iso) => [iso, await kl.fuelMix(iso)]))
);

Custom base URL (local dev):

const kl = new Client({ baseUrl: "http://localhost:8000" });

API reference

| Method | Description | |---|---| | fuelMix(iso, opts) | Generation by fuel type | | carbon(iso, opts) | Carbon intensity (lbs CO2/MWh) | | carbonLatest(iso?) | Latest carbon intensity for all ISOs | | lmp(iso, opts) | LMP price history | | lmpMap(iso, market?) | All nodes with latest price + coordinates | | lmpHubs(iso?) | Hub/zone node list | | load(opts) | Actual grid load | | loadForecast(opts) | Load forecast | | generationWindSolar(iso, opts) | Wind/solar generation forecast | | generationBattery(opts) | Battery storage (CAISO) | | generationBtmSolar(opts) | Behind-the-meter solar (NYISO) | | generationReserveMargins(iso?) | Planning reserve margins | | curtailment(opts) | Renewable curtailment | | interchange(ba, opts) | Tie-line power flows | | natGas(opts) | Natural gas spot prices | | natGasStorage(opts) | EIA weekly storage report | | weather(opts) | Weather observations | | bpa(opts) | BPA balancing area (wind, hydro, thermal, load) | | outagesSummary(iso?) | Generator outage summary | | ancillary(opts) | Ancillary service prices | | ancillaryLatest(iso?) | Latest ancillary snapshot | | nuclearStatus(iso?) | Nuclear plant capacity/output | | nuclearSummary(iso?) | Nuclear capacity/output summary | | emissions(opts) | SO2/NOx/CO2 emission rates | | hydroReservoirs(opts) | Reservoir storage levels | | hydroReservoirsLatest() | Latest reservoir snapshot | | hydroStreamflow(opts) | USGS streamflow by site | | solarIrradiance(opts) | Solar irradiance by location | | solarIrradianceLocations() | Tracked irradiance stations | | solarIrradianceLatest() | Latest irradiance snapshot | | queue(opts) | Interconnection queue | | commoditiesCoal(opts) | Coal prices by rank | | commoditiesPetroleum(opts) | Petroleum spot prices | | commoditiesPowerBurn(opts) | Gas consumed for power generation | | steoForecast() | EIA Short-Term Energy Outlook | | carbonMarkets(opts) | RGGI/WCI/VCM carbon credit prices |

Note: outages() (unit-level generator outages) currently returns a 500 from the hosted API - a known backend issue, not a client bug. outagesSummary() works.

Links

License

MIT - see LICENSE.