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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@evcc/icons

v0.5.11

Published

A collection of evcc icons for vehicles, meters, chargers, smartswitches, and heating systems with web components and SVG registry.

Readme

evcc Icons

A collection of evcc icons for vehicles, meters, and chargers. Available as web components with SVG registry for direct access.

📦 Installation

npm install @evcc/icons

🚀 Quick Start

Web Components (Recommended)

import '@evcc/icons';
<!-- Simple usage -->
<evcc-icon type="vehicle" name="kia-niro-ev"></evcc-icon>

<!-- With custom colors and size -->
<evcc-icon 
  type="charger" 
  name="tesla-wallconnector" 
  size="48" 
  accent-color="#ff6b35">
</evcc-icon>

Direct Registry Access

import { registry } from '@evcc/icons';

// Load an icon manually
const iconLoader = registry['vehicle/kia-niro-ev'];
if (iconLoader) {
  const iconModule = await iconLoader();
  const svgString = iconModule.default;
  document.getElementById('my-icon').innerHTML = svgString;
}

✨ Features

  • 🎨 Customizable colors - Accent and outline colors via CSS custom properties
  • 📱 Web Components - Native custom elements with lazy loading
  • 🔗 Direct access - SVG registry for custom implementations
  • 🚀 Performance - Lazy loading and caching built-in
  • 💪 TypeScript - Full type definitions included

Web Component API

The <evcc-icon> web component supports the following attributes:

  • type - Icon category: vehicle, charger, or meter
  • name - Specific icon name (e.g., kia-niro-ev)
  • size - Icon size in pixels or CSS units
  • accent-color - Custom accent color (default: #4eb84b)
  • outline-color - Custom outline color (default: #000)

Example with all options:

<evcc-icon 
  type="vehicle" 
  name="bmw-i3" 
  size="64px"
  accent-color="#1976d2"
  outline-color="#333">
</evcc-icon>

Registry API

import { registry } from '@evcc/icons';

// Get all available icons
const availableIcons = Object.keys(registry);

// Load an icon
const iconLoader = registry['charger/tesla-wallconnector'];
const iconModule = await iconLoader();
const svgString = iconModule.default;

🎨 CSS Custom Properties

Icons use CSS custom properties for theming:

evcc-icon {
  --evcc-accent-color: #ff6b35;
  --evcc-outline-color: #333;
}

📂 Available Icons

Icons are organized by category:

  • Vehicles (vehicle/): Car models and EV brands
  • Chargers (charger/): Charging stations and wallboxes
  • Meters (meter/): Energy meters and monitoring devices

See the full icon gallery for all available icons.

🔧 Development

git clone https://github.com/evcc-io/evcc-icons.git
cd evcc-icons
npm install
npm run build
npm run dev  # Serves docs at http://localhost:3000

📄 License

This project is licensed under the CC-BY-NC-SA-4.0 license.