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

gadget-icons

v0.4.0

Published

Open-source outline SVG icons for gadgets, hardware, cameras, computers, wearables, and smart-home devices.

Readme

Gadget Icons

Icons for the devices we use every day.

A focused collection of 58 open-source outline SVG icons for modern gadgets, hardware, cameras, computers, wearables, and smart-home devices.

We originally made these for thisismynext.in. Now they are open source for anyone to use.

Browse and copy every icon

Gadget Icons preview

24 × 24 grid · 1.6 px stroke · SVG · MIT licensed

Installation

Install the package:

npm install gadget-icons

You can also copy any standalone SVG from icons/.

Basic usage

<img src="icons/laptop.svg" width="24" height="24" alt="">

Each SVG uses stroke="currentColor" and no fill, apart from a few small details. Inline the markup if you want the icon to inherit text colors, hover states, and dark mode styles:

<a href="/laptop/">
  <svg viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round">
    <!-- paste icons/laptop.svg's inner markup here, or fetch it -->
  </svg>
  Laptop
</a>

JavaScript usage

icons.mjs contains all the icons and is used to generate the standalone SVG files. It also exports a svg() helper and the full icons map:

import { svg, names } from 'gadget-icons';

document.querySelector('.icon-slot').innerHTML = svg('laptop', { size: 20 });

names; // every available icon name

svg(name, { size, className, strokeWidth }) throws if the icon does not exist. Check names first if the name comes from user input.

Editor autocomplete

Icon names and options are suggested as you type in supported editors. TypeScript declarations are included in the package, with no extra setup.

import { svg, type IconName } from 'gadget-icons';

const name: IconName = 'sd-card';
const markup = svg(name, { size: 24, strokeWidth: 1.6 });

The gallery lets you search by familiar terms like CPU, hard disk, and memory card. Copied SVGs and downloads use your selected size and stroke. Open an icon's details to copy a JavaScript example or a link to that icon.

Icons

Every icon name below is also its SVG filename and JavaScript key.

| Category | Icons | | --- | --- | | Computing | laptop, monitor, keyboard, mouse, mini-pc, nas, gpu, processor, motherboard, pc, ssd, external-hard-drive | | Cameras | camera, camera-lens, tripod, vlog-camera, action-camera, dash-camera, camera-gimbal, webcam, drone, sd-card | | Audio | headphones, microphone, earbuds, smart-speaker, soundbar, audio-interface | | Mobile and wearables | phone, foldable-phone, smartwatch, smart-glasses, smart-ring, tablet, e-reader | | Smart home | tv, streaming-stick, router, smart-display, security-camera, video-doorbell, smart-bulb, air-purifier, robot-vacuum, projector | | Gaming | controller, console, handheld-console, vr-headset | | Accessories | powerbank, charger, gan-charger, charging-station, bluetooth-tracker, usb-cable, usb-hub, backpack, wireless-charging-stand |

Designed as a system

  • Recognizable silhouettes over literal detail
  • Designed for consistent optical weight
  • Details that stay legible at small sizes
  • Clean, dependency-free SVGs, styleable with currentColor

Adding an icon

Add an entry to the icons object in icons.mjs, then regenerate the files:

npm run build

This rewrites every file in icons/, updates preview.svg and icons.d.mts, and refreshes the gallery data in docs/. Do not edit the generated icon files directly because your changes will be overwritten.

License

MIT. See LICENSE.