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

@postal-music/icons

v0.1.16

Published

Shared design system for Postal — icons and tokens for React and React Native

Readme

@postal-music/icons

Shared icon library for Postal — React (web) and React Native, from one source.

Each icon lives as a pair: FooIcon.web.tsx and FooIcon.native.tsx. At build time tsup resolves the platform extension and emits two bundles (dist/index.* for web, dist/index.native.* for native). Consumers import from a single specifier; bundlers/Metro pick the right entry via the exports map in package.json.

Publishing

Published to npm as a public scoped package under the @postal-music org.

Prerequisites

  • npm login with publish rights on the @postal-music org:
    npm whoami                       # should print your npm username
    npm access list packages @postal-music   # should list @postal-music/icons
    If not logged in: npm login.
  • Clean working tree in this package (packages/postal-icons). package.json has "files": ["dist", "src"], so only those are shipped — but a dirty src/ will still go out.

Release workflow

Run all commands from packages/postal-icons.

  1. Make sure the build is current.

    npm run build

    This runs tsup (web + native bundles), tsc -p tsconfig.build.json (types into dist/types), then scripts/strip-web-suffix.mjs (renames *.web.d.ts*.d.ts so the declarations match the exports map).

  2. Bump the version. Pick one:

    npm version patch    # 0.1.7 → 0.1.8  (icon added, bug fix)
    npm version minor    # 0.1.7 → 0.2.0  (new category, API addition)
    npm version major    # 0.1.7 → 1.0.0  (breaking rename/removal)

    This rewrites package.json and creates a git commit + tag in this sub-repo (postal-icons is its own git repo — see the monorepo CLAUDE.md).

  3. Publish.

    npm publish

    publishConfig.access is already public, so no --access public flag needed.

  4. Push the version commit and tag.

    git push && git push --tags
  5. Verify.

    npm view @postal-music/icons version

Dry run

Before publishing, inspect exactly what will be shipped:

npm pack --dry-run

This lists every file that would land in the tarball without touching the registry. Make sure dist/ looks complete and nothing sensitive snuck in.

Bumping consumers

After publish, update the @postal-music/icons dependency in any consuming package (postal-ac-frontend, postal-admin, postal-mobile, postal-desktop, …) and run their respective install.

Adding an icon

  1. Drop the SVG into the right category under src/icons/<category>/:
    • FooIcon.web.tsx — uses <svg> / <path>, stroke currentColor.
    • FooIcon.native.tsx — uses react-native-svg's <Svg> / <Path>, same path data.
  2. Export it from that category's index.ts in alphabetical position.
  3. Run npm run build to confirm both bundles compile.

Use currentColor for strokes/fills so consumers can theme via CSS / color prop. Keep the source viewBox (usually 0 0 18 18 or 0 0 24 24); don't rescale paths.