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

@nexgen-os/panond

v0.4.1

Published

PVsyst PAN and OND files read into plain products: the module one-diode model in pvlib's keys, the inverter efficiency curves. No database, no dependency.

Readme

@nexgen-os/panond — PAN and OND product files → plain products

Reads the files PVsyst writes and manufacturers publish next to their datasheets — PAN for a PV module, OND for an inverter, in PVsyst's text format (version 6 and later) — into a product and its physics. Read only: a PAN or OND file is never written (decision 0012). MIT; no dependency, no database, no network. The table names the product's fields, and where the importer of the solar module writes them.

| File | Product, and its row in Nexgen OS | Notes | |---|---|---| | Manufacturer, Model | products.manufacturer, model | a product the catalogue already knows gains its physics | | PAN PNom, Width × Height | unit_power_kw, unit_surface_m2 | | | OND PNomConv | unit_power_kw (AC) | | | PAN Gamma, muGamma, RShunt, Rp_0, Rp_Exp, RSerie, muISC, NCelS | solar.module_products, model pvsyst: gamma_ref, mu_gamma, R_sh_ref, R_sh_0, R_sh_exp, R_s, alpha_sc (A/°C), cells_in_series | pvlib's keys for calcparams_pvsyst; EgRef 1.121 eV for silicon | | PAN Isc, Voc at TRef | I_L_ref, I_o_ref | solved: see below | | the whole PAN file | module_products.metadata.pan | incidence profile, bifaciality, STC point, dimensions | | the OND file but its commercial block | solar.inverter_products, model ond, parameters | the file's keys, efficiency curves (ProfilPIO…) as [x, y] pairs, as pvlib's read_panond gives them | | the OND commercial block | inverter_products.metadata.ond | data source, dimensions, remarks | | Price, Currency, PriceDate | left out | the line between open and paid data runs on prices |

import { readPan, readOnd } from '@nexgen-os/panond';
import { importProduct } from '../modules/solar/src/products.js'; // the solar module, inside this repository

const module = readPan(panText);
await importProduct(db, module, { organisationId, sourceCode: null, fileName: 'module.PAN' });
await importProduct(db, readOnd(ondText), { organisationId });

What it never does: look a product up, write a catalogue, open a connection. importProduct() of the solar module (modules/solar/src/products.ts) adds the product to products, or gives its physics to the one the catalogue already knows by manufacturer and model, and refuses physics given twice (already_imported). A module imported this way runs as it is through the pvlib engine (packages/connectors/pvlib, DC model pvsyst) once an array names it.

The diode currents

PVsyst stores the series and shunt resistances and the diode factor, not the light current and the diode's saturation current. At short circuit (V = 0, I = Isc) and open circuit (V = Voc, I = 0) the one-diode equation is linear in both, so diodeCurrents() solves them exactly: the model then gives back the file's Isc and Voc, and its maximum power lands within half a percent of PNom on the files tested.

Refusals

panond_unreadable (not a PVsyst text file), panond_binary_unsupported (a binary file of PVsyst before version 6: export it again as text), pan_unreadable / ond_unreadable (another kind of object, or a value the model needs is missing), pan_inconsistent (the file's numbers give no diode), already_imported (the product already has its physics).