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

@lexoyo/npm-deploy-trusted-publisher

v1.0.9

Published

A minimal TypeScript package ready to publish on npm

Readme

@silexlabs/my-package

A minimal TypeScript package ready to publish on npm with OIDC authentication.

Features

  • TypeScript support with declaration files
  • Automated publishing via GitHub Actions
  • OIDC authentication (no npm tokens needed)
  • Automatic npm tag management (latest/next)
  • Provenance attestation enabled

Prerequisites

Before publishing, configure npm Trusted Publisher:

  1. Go to npmjs.com and log in
  2. Navigate to your package (create it first if needed, or it will be created on first publish)
  3. Go to Settings > Publishing access
  4. Click "Add provider" under "Trusted Publishers"
  5. Fill in:
    • Provider: GitHub Actions
    • Repository: your-username/your-repo
    • Workflow: publish.yml
    • Environment: (leave empty)

Installation

npm install

Build

npm run build

Testing the Publication Workflow

1. Initialize Git Repository

git init
git add .
git commit -m "Initial commit"

2. Create GitHub Repository

Create a new repository on GitHub (must match the one configured in npm Trusted Publisher).

git remote add origin https://github.com/your-username/your-repo.git
git push -u origin main

3. Create and Push a Tag

For a stable release (will be tagged as latest on npm):

git tag v1.0.0
git push origin v1.0.0

For a pre-release (will be tagged as next on npm):

git tag v1.0.0-beta.1
git push origin v1.0.0-beta.1

4. Monitor the Workflow

  1. Go to your GitHub repository
  2. Click on "Actions" tab
  3. Watch the "Publish to npm" workflow run
  4. Once completed, check your package on npmjs.com

Version Tag Management

The workflow automatically determines the npm dist-tag:

  • latest: For stable versions (e.g., v1.0.0, v2.1.3)
  • next: For pre-releases containing: alpha, beta, rc, or next (e.g., v1.0.0-beta.1, v2.0.0-rc.1)

Usage (After Publishing)

import { greet } from '@silexlabs/my-package';

console.log(greet('World')); // "Hello, World!"

Development

  1. Make your changes in src/
  2. Build: npm run build
  3. Test locally
  4. Commit and push
  5. Create a tag and push to trigger publication

License

MIT