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

@microature/publisher-npm-release-plugin

v0.1.0

Published

NPM release asset plugin for @microature/publisher - uploads npm packages to git releases

Readme

@microature/publisher-npm-release-plugin

NPM release asset plugin for @microature/publisher.

Purpose: Uploads NPM packages (.tgz) to git releases as downloadable assets, not to npm registry.

Installation

npm install @microature/publisher-npm-release-plugin

Usage

import { Publisher } from '@microature/publisher'
import { NpmReleasePlugin } from '@microature/publisher-npm-release-plugin'

const publisher = new Publisher(config)

// Register the plugin
const npmReleasePlugin = new NpmReleasePlugin()
publisher.registerPlugin('npm-assets', npmReleasePlugin)

// Plugin will automatically:
// 1. Detect version from package.json
// 2. Build project (if build script exists)
// 3. Create .tgz package
// 4. Upload to git release as asset

What This Plugin Does

Version Detection

  • Reads package.json → version field
  • Suggests git tag name (e.g., v1.2.3)

Asset Preparation

  • Runs npm run build (if script exists)
  • Runs npm run prepublishOnly (if script exists)
  • Creates .tgz package with npm pack

Release Upload

  • Uploads .tgz file to GitLab/GitHub release as asset
  • Users can download and install with: npm install <asset-url>

Configuration

{
  gitHosting: {
    type: 'gitlab',  // or 'github'
    token: 'your-gitlab-token',
    projectId: 'project-id',     // for GitLab
    apiUrl: 'https://gitlab.com' // optional, for self-hosted
  }
}

Features

  • ✅ Automatic version detection from package.json
  • ✅ Project building before packaging
  • ✅ NPM tarball creation
  • ✅ GitLab release asset upload
  • ✅ GitHub support (planned)
  • ✅ Cleanup of temporary files

Package Flow

  1. Detect: Read version from package.json
  2. Build: Run build scripts if they exist
  3. Package: Create .tgz with npm pack
  4. Upload: Attach to git release as downloadable asset
  5. Cleanup: Remove temporary .tgz file

Difference from NPM Publishing

This plugin does NOT:

  • ❌ Publish to npm registry
  • ❌ Require npm authentication
  • ❌ Use npm publish

This plugin does:

  • ✅ Create git release assets
  • ✅ Enable git-based package distribution
  • ✅ Allow installation via direct URLs

Installation from Git Release

Users can install packages directly from git releases:

# Download from release assets
npm install https://gitlab.com/org/project/-/releases/v1.2.3/downloads/package-1.2.3.tgz

Requirements

  • Node.js >= 18.0.0
  • Git repository with remote configured
  • GitLab or GitHub API access

License

MIT