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/evcc

v0.6.0

Published

The device templates of evcc read into plain shapes: the products each template drives, the brand and model, the class of device, its capabilities, its uses, how it is found on a local network, and whether it needs a sponsorship. No database, no network.

Readme

@nexgen-os/evcc — the device templates of evcc ⇄ plain shapes

evcc (MIT) keeps one YAML template per way of talking to a device: a charging station, a heat pump or a switch socket (its charger templates), a grid meter, an inverter or a battery (its meter templates), a vehicle. Each template names the products it drives. This library reads a template file into plain shapes any tool can use, and folds many templates into the connectors each brand can be reached through. MIT; one dependency, yaml (ISC); no connection, no database.

| Template | Shape | Notes | |---|---|---| | template, the directory of the file | template, class | evcc says the class by where the file is: the caller gives it | | products | EvccProduct[] | brand, model, every description; the model is the generic description, else the one in the first of the languages asked for, else the first given; a brand without a model keeps a null model | | group | group | heating, switchsockets for a charger template, else null | | capabilities | capabilities | 1p3p, rfid, battery-control, curtail… as written | | the choice of the usage parameter | usages | the uses a meter template serves: grid, pv, battery, charge, aux | | requirements.evcc, requirements.description | evccRequirements, sponsored, requirements | sponsored is true when evcc asks for a sponsorship to drive the device | | discovery | EvccDiscovery | DNS-SD services, host name patterns, MAC prefixes (upper-case hexadecimal) | | covers | covers | the templates this one replaces |

import { readEvccTemplate, connectorsByBrand } from '@nexgen-os/evcc';

const template = readEvccTemplate(text, 'charger', { languages: ['en'] });
const brands = connectorsByBrand(templates);   // brand → [{ class, template, group, sponsored }]

A file that is not a template is refused by name: template_invalid (not YAML, not a mapping), template_missing (no template name), products_missing (no product with a brand).

What it never does: render a template, read its parameters into a configuration, speak to a device, or decide which device type of a model a template is. Writing the products into a catalogue is an importer's job: importEvccCatalogue() in @nexgen-os/core.

Where the templates come from

The templates are evcc's, in templates/definition/<class>/ of evcc-io/evcc, under the MIT licence of evcc.io. The test fixtures are nine of them, copied unchanged at commit c0e578a, with evcc's licence beside them.