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

@frontendxlab/medicons

v1.1.1

Published

Original hospital-specific SVG icons as React components

Readme

@frontendxlab/medicons

Optional local React package for the Hospital Clinical Icons SVG pack.

Includes 219 named icon components, 18 category entrypoints, per-icon entrypoints, TypeScript source, ESM JavaScript and declaration files. React 18-19 is declared as a peer dependency; React is not bundled. This package has not been published to npm as part of generating this archive.

Install from the extracted folder:

npm install /absolute/path/to/hospital-icons/react
import { CardiologyIcon } from "@frontendxlab/medicons/specialties/cardiology";

<CardiologyIcon size={48} variant="duotone" title="Cardiology" />
<CardiologyIcon size={48} animation="beam" duration={3} title="Cardiology" />

Import tiers and bundle size

Three tiers, smallest first. Prefer the single-icon path for the smallest bundle.

// Tier 1 - single icon (smallest, one module + shared core)
import { CardiologyIcon } from "@frontendxlab/medicons/specialties/cardiology";

// Tier 2 - category entrypoint (only that category's icons)
import { CardiologyIcon } from "@frontendxlab/medicons/specialties";

// Tier 3 - full root (relies on bundler tree-shaking; avoid `import *`)
import { CardiologyIcon } from "@frontendxlab/medicons";

Bundler guidance: named imports (import { X }) tree-shake cleanly from any tier because the package sets "sideEffects": false, ships ESM only, keeps index.ts as pure re-exports with no side effects, and category files re-export directly from per-icon files (no barrel chains). The shared core.ts holds only a module-level css string constant plus pure functions, so it is side-effect free. Never use namespace imports (import * from "@frontendxlab/medicons"); they defeat tree-shaking and pull in all 219 icons.

Measured with esbuild (bundle, minify, react external, one icon):

| Entry | Size | Gzip | Modules | |---|---|---|---| | Single icon .../specialties/cardiology | 3,176 B | 1,549 B | 3 | | Category @frontendxlab/medicons/specialties | 3,176 B | 1,549 B | 3 | | Root named import { CardiologyIcon } | 3,176 B | 1,557 B | 3 | | Root namespace import * | 124,072 B | 23,771 B | 222 |

Named imports cost the same at every tier (39x smaller than namespace import). Single-icon and category paths are immune to bundlers with weak tree-shaking; use them when bundle size is critical.

Static variants: outline, solid, duotone. filled is an alias for solid. Beam is available for the 60 icons marked supportsBeam in the parent manifest. Components without a beam path remain static when beam is requested.

The components forward SVG props and refs. They use useId for solid-mask isolation and include client-component directives. Raw SVGs in the parent package are the alternative for pages requiring no component JavaScript.

TypeScript-to-ESM transpilation was checked. A complete React application, full typechecking against installed React definitions, and hydration were not tested here. Run the application's normal integration and type checks.

See the parent README for styling, accessibility, animation, validation and clinical-usage notes. The included MIT license applies to these original files.