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

@sandeep-jaiswar/icons

v0.0.0

Published

Icon library for @sandeep-jaiswar/ui

Downloads

5

Readme

@sandeep-jaiswar/icons

Icon library for Bloomberg Terminal-inspired UI component library. This package provides a comprehensive set of SVG icons optimized for financial trading applications.

📦 Installation

# Using pnpm (recommended)
pnpm add @sandeep-jaiswar/icons

# Using npm
npm install @sandeep-jaiswar/icons

# Using yarn
yarn add @sandeep-jaiswar/icons

🚀 Usage

import { Icon } from '@sandeep-jaiswar/icons';

// Basic usage
<Icon name="trending-up" />

// With custom size
<Icon name="buy" size={32} />

// With custom color using Tailwind classes
<Icon name="trending-up" className="text-success-500" />

// With accessibility label
<Icon name="alert-triangle" aria-label="Warning" />

🎨 Available Icons

Navigation Icons

  • chevron-up - Up arrow
  • chevron-down - Down arrow
  • chevron-left - Left arrow
  • chevron-right - Right arrow

Financial Icons

  • trending-up - Upward trend indicator (gains)
  • trending-down - Downward trend indicator (losses)
  • dollar-sign - Currency symbol

Trading Icons

  • buy - Buy action indicator
  • sell - Sell action indicator
  • alert-triangle - Warning alert
  • alert-circle - Information alert

UI Icons

  • search - Search functionality
  • close - Close/dismiss action
  • menu - Menu toggle
  • settings - Settings/configuration
  • check - Success/confirmation
  • info - Information indicator

Data Icons

  • chart-line - Line chart
  • chart-bar - Bar chart
  • refresh - Refresh/reload
  • filter - Filter data

💡 Examples

Price Movement Indicators

import { Icon } from "@sandeep-jaiswar/icons";

function PriceChange({ symbol, change }) {
  const isPositive = change > 0;

  return (
    <div>
      <span>{symbol}</span>
      <Icon
        name={isPositive ? "trending-up" : "trending-down"}
        size={20}
        className={isPositive ? "text-success-500" : "text-danger-300"}
      />
      <span>{change}%</span>
    </div>
  );
}

Trading Actions

import { Icon } from "@sandeep-jaiswar/icons";

function TradeButton({ action }) {
  return (
    <button>
      <Icon
        name={action === "buy" ? "buy" : "sell"}
        size={24}
        className={action === "buy" ? "text-success-500" : "text-danger-300"}
      />
      {action === "buy" ? "Buy" : "Sell"}
    </button>
  );
}

Search Input

import { Icon } from "@sandeep-jaiswar/icons";

function SearchBar() {
  return (
    <div className="relative">
      <Icon
        name="search"
        size={20}
        className="absolute left-3 top-1/2 -translate-y-1/2 text-terminal-light-gray"
      />
      <input type="text" placeholder="Search..." className="pl-10" />
    </div>
  );
}

🎯 Design Philosophy

All icons follow Bloomberg Terminal design principles:

  • Stroke-based Design - High contrast outlines for terminal environments
  • 24x24 ViewBox - Consistent sizing and scalability
  • Current Color - Inherits text color for easy theming
  • Semantic Naming - Clear, financial-specific icon names
  • Accessibility - Proper ARIA attributes support

📐 Props

The Icon component accepts the following props:

| Prop | Type | Default | Description | | ----------- | ---------- | -------- | --------------------------- | | name | IconName | required | Name of the icon to render | | size | number | 24 | Size of the icon in pixels | | className | string | '' | Additional CSS classes | | ...props | SVGProps | - | Any valid SVG element props |

🎨 TypeScript Support

Full TypeScript support with type-safe icon names:

import type { IconName, IconProps } from "@sandeep-jaiswar/icons";

// Type-safe icon name
const iconName: IconName = "trending-up";

// Type-safe component props
const iconProps: IconProps = {
  name: "buy",
  size: 32,
  className: "text-success-500",
};

🔧 Customization

Icons can be customized using:

  1. Size prop - Control icon dimensions
  2. className prop - Apply Tailwind classes or custom CSS
  3. Standard SVG props - Pass any SVG attribute (stroke-width, opacity, etc.)
<Icon
  name="trending-up"
  size={48}
  className="text-success-500 hover:text-success-400"
  strokeWidth={3}
  opacity={0.8}
/>

♿ Accessibility

Icons are accessible by default:

  • aria-hidden="true" when no label is provided (decorative)
  • Support for custom aria-label for meaningful icons
  • High contrast design for better visibility
// Decorative icon (hidden from screen readers)
<Icon name="trending-up" />

// Meaningful icon (announced to screen readers)
<Icon name="alert-triangle" aria-label="Warning: High volatility" />

📄 License

MIT © Sandeep Jaiswar

🔗 Links