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

semicons

v0.0.1

Published

Semantic icon token system for VS Code - completion, hover, diagnostics, and preview

Readme

Semicons VS Code Extension

Semantic icon token system for VS Code - provides completion, hover, diagnostics, and preview for icon tokens.

Features

  • Completion: Auto-complete icon tokens in <Icon name="..."> attributes
  • Hover: Show token details on hover with preview command
  • Diagnostics: Real-time validation of icon tokens
  • Preview: Webview panel preview of icon tokens
  • Search: QuickPick search for icon tokens

Requirements

  • VS Code 1.90.0+
  • Node.js 20+

Installation

Development

cd packages/vscode
pnpm install
pnpm build

Running in Extension Development Host

  1. Press F5 to launch Extension Development Host
  2. Open a test workspace with a semicons.config.ts or run pnpm semicons generate
  3. Test completion, hover, and diagnostics in .tsx, .vue, or .astro files

Setup

1. Generate Icons

pnpm semicons generate

This creates src/icons.generated/registry.json in your workspace.

2. Configure VS Code Settings

The extension uses these settings (configurable in VS Code settings):

| Setting | Default | Description | |---------|---------|-------------| | semicons.registryPath | src/icons.generated/registry.json | Path to registry.json | | semicons.localIconDir | icons/local | Directory for local icons | | semicons.iconComponentName | Icon | Icon component name |

3. Icon File Structure

Local icons should be placed in icons/local/ directory:

icons/
└── local/
    ├── menu.svg
    ├── menu-dark.svg
    └── close.svg

Reference them in your registry as local:menu, local:menu-dark, local:close.

Usage

Completion

In .tsx, .vue, or .astro files:

<Icon name="nav|igation:menu" />

Type navigation: and select from completion list.

Hover

Hover over a token to see:

  • Token name
  • Asset reference
  • A11y label
  • Preview command link

Diagnostics

Invalid or deprecated tokens are highlighted:

  • Error: Token not found or invalid format
  • Warning: Deprecated token

Preview

Run Semicons: Preview Icon command or click preview link in hover to open webview panel with icon preview.

Search

Run Semicons: Search Token command to search and insert tokens via QuickPick.

Commands

| Command | Description | |---------|-------------| | semicons.refreshRegistry | Refresh registry from disk | | semicons.searchToken | Search and insert token | | semicons.previewIcon | Preview token in webview |

Supported File Types

  • TypeScript React (.tsx)
  • JavaScript React (.jsx)
  • Vue (.vue)
  • Astro (.astro)

Development

Build

pnpm build        # Production build
pnpm watch        # Development watch mode

Debug

  1. Press F5 to start Extension Development Host
  2. Open test workspace
  3. Test features in real-time

Project Structure

packages/vscode/
├── package.json          # Extension manifest
├── tsconfig.json
├── esbuild.js           # Bundler script
├── src/
│   ├── extension.ts     # Entry point
│   ├── registry/
│   │   ├── types.ts     # Type definitions
│   │   ├── loader.ts    # Load registry.json
│   │   ├── cache.ts     # Multi-folder cache
│   │   └── watcher.ts   # FileSystemWatcher
│   ├── features/
│   │   ├── completion.ts
│   │   ├── hover.ts
│   │   ├── diagnostics.ts
│   │   └── commands.ts
│   ├── views/
│   │   └── previewWebview.ts
│   └── utils/
│       ├── config.ts
│       ├── path.ts
│       └── tokenParse.ts
└── README.md

Publishing

# Install vsce
npm install -g @vscode/vsce

# Package
vsce package

# Publish
vsce publish

License

MIT