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

tinyglyphs

v0.1.1-alpha

Published

A tiny collection of simple lined icons

Readme

TinyGlyphs

TinyGlyphs Logo

A collection of simple lined icons with multi-framework support and tree-shaking optimization.

Quick Start

Installation

# npm
npm install tinyglyphs

# yarn
yarn add tinyglyphs

# pnpm
pnpm add tinyglyphs

Usage

React

import { HeartIcon, StarIcon, SearchIcon } from "tinyglyphs/react";

function App() {
  return (
    <div>
      <HeartIcon size={24} color="red" />
      <StarIcon size={20} strokeWidth={2} />
      <SearchIcon className="search-icon" />
    </div>
  );
}

Vue

<template>
  <div>
    <HeartIcon :size="24" color="red" />
    <StarIcon :size="20" :strokeWidth="2" />
    <SearchIcon class="search-icon" />
  </div>
</template>

<script setup>
import { HeartIcon, StarIcon, SearchIcon } from "tinyglyphs/vue";
</script>

Svelte

<script>
  import { HeartIcon, StarIcon, SearchIcon } from "tinyglyphs/svelte";
</script>

<div>
  <HeartIcon size={24} color="red" />
  <StarIcon size={20} strokeWidth={2} />
  <SearchIcon class="search-icon" />
</div>

Angular

// app.component.ts
import { Component } from "@angular/core";
import { HeartIconComponent, StarIconComponent } from "tinyglyphs/angular";

@Component({
  selector: "app-root",
  template: `
    <div>
      <heart-icon [size]="24" color="red"></heart-icon>
      <star-icon [size]="20" [strokeWidth]="2"></star-icon>
    </div>
  `,
  imports: [HeartIconComponent, StarIconComponent],
  standalone: true,
})
export class AppComponent {}

## Icon Props

All icons accept these props:

| Prop                  | Type               | Default          | Description                           |
| --------------------- | ------------------ | ---------------- | ------------------------------------- |
| `size`                | `number \| string` | `16`             | Icon size in pixels                   |
| `color`               | `string`           | `"currentColor"` | Icon color                            |
| `strokeWidth`         | `number \| string` | `1`              | Stroke width                          |
| `absoluteStrokeWidth` | `boolean`          | `false`          | Whether stroke width scales with size |
| `className`           | `string`           | `undefined`      | CSS class name                        |

Plus all standard SVG props (`onClick`, `onMouseOver`, etc.).

## Framework Support

Supported frameworks:

- React - `tinyglyphs/react`
- Vue - `tinyglyphs/vue`
- Svelte - `tinyglyphs/svelte`
- Angular - `tinyglyphs/angular`

The package uses subpath exports to provide framework-specific entry points while keeping everything in a single package.

## Examples

### Basic Usage

```tsx
import { HomeIcon, UserIcon, SettingsIcon } from "tinyglyphs/react";

<HomeIcon />                        // Default: 16px, currentColor
<UserIcon size={24} />              // Custom size
<SettingsIcon color="#3b82f6" />    // Custom color

Styling

// With Tailwind CSS
<HeartIcon className="w-6 h-6 text-red-500 hover:text-red-600" />

// With custom CSS
<HeartIcon className="my-icon" />
.my-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #ef4444;
  transition: color 0.2s;
}

.my-icon:hover {
  color: #dc2626;
}

Interactive Icons

<button onClick={() => console.log("Liked!")}>
  <HeartIcon size={20} className="hover:text-red-500" />
</button>

Dynamic Properties

const [liked, setLiked] = useState(false);

<HeartIcon
  size={24}
  color={liked ? "#ef4444" : "#6b7280"}
  onClick={() => setLiked(!liked)}
  className="cursor-pointer transition-colors"
/>;

Performance

Individual icons are small when tree-shaken. Only import what you use:

// Good - only HeartIcon is bundled
import { HeartIcon } from "tinyglyphs/react";

// Avoid - imports entire library
import * as Icons from "tinyglyphs/react";

License

MIT © Ankur Chauhan