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

@cossackframework/solar-icons

v0.7.2

Published

Tree-shakeable Solar icon set for the Cossack framework — data entries + Icon/NamedIcon components.

Readme

@cossackframework/solar-icons

Tree-shakeable Solar icon set DATA package — 1,246 icons × 6 styles, exposed as per-style SVG inner-markup strings. Framework-agnostic, zero runtime dependencies.

The Icon / NamedIcon components that render this data live in @cossackframework/ui (so they share the consumer's single renderer/core module instance). This package ships only the data + types.

Every icon ships as one file per style, so importing a single style of a single icon pulls only that markup into the bundle.

Install

pnpm add @cossackframework/solar-icons

No peer dependencies — this package is data-only.

Usage

// Icon data (this package):
import { EyeIcon } from '@cossackframework/solar-icons/eye'        // all styles (IconEntry)
import { EyeIcon } from '@cossackframework/solar-icons/eye/bold'   // one style (string) — max tree-shake

// The component (from @cossackframework/ui):
import { Icon } from '@cossackframework/ui'
import { component } from '@cossackframework/renderer'

// Fixed icon (tree-shakeable): import the entry, pass to Icon.
component(Icon, { entry: EyeIcon, style: 'bold', size: 24 })

// Dynamic name lookup (runtime data): carries the full registry.
import { NamedIcon } from '@cossackframework/ui'
component(NamedIcon, { name: 'eye', style: 'bold', size: 24 })
  • Data import — the tree-shakeable path. Import icon data directly from @cossackframework/solar-icons/<name> (all styles) or @cossackframework/solar-icons/<name>/<style> (one style). Only what you import is bundled.
  • NamedIcon — dynamic name-based lookup. Carries the full registry dependency; use it when the icon name comes from data.

Each icon export is suffixed with Icon (e.g. EyeIcon, SettingsIcon) to avoid collisions with common identifiers.

Styles

Solar ships six styles. The style prop selects one; missing styles fall back to line.

| key | Solar source folder | |---------------|---------------------| | line | Linear | | bold | Bold | | duotone | BoldDuotone | | broken | Broken | | outline | Outline | | line-duotone| LineDuotone |

Regenerating

The src/<icon>/ folders and src/registry.ts are generated from the vendored SVG source. To regenerate (e.g. after upgrading the vendored source):

pnpm run build:icons

To curate a subset during development, set the ICONS env var (comma-separated kebab names):

ICONS=eye,arrow-right,settings pnpm run build:icons

Vendored source & attribution

The raw SVGs under vendor/solar-icons/ are vendored from the upstream Solar icon set (@solar-icons/core).

  • Upstream repository: https://github.com/solar-icons/solar-icons
  • Vendored at upstream commit: fb7d5678b36b04bcd8729ca07f8449b6cdb81b04
  • See vendor/solar-icons/LICENSE-THIRD-PARTY for the upstream third-party license/attribution.

The generator (src/scripts/build-icons.ts) reads vendor/solar-icons/<Category>/<Style>/<Name>.svg.