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 🙏

© 2024 – Pkg Stats / Ryan Hefner

remlink

v1.2.0

Published

A `npm link` equivalent for remote, unpublished npm modules.

Downloads

107

Readme

🔗 remlink

A npm link equivalent for remote, unpublished npm modules.

Overview

Imagine you have a project that uses multiple pieces of functionality that you distribute as separate npm modules. If you're testing changes to one or many of those modules and you want to do an end-to-end test with the parent project (for example, in a CI workflow), you'll need to publish all of the sub-modules and pull them in. This creates a very long feedback loop.

With remlink you can replace every instance of a dependency (i.e. direct or transitive) with an unpublished version of a module, straight from GitHub. This lets you test an open PR without having to make any releases.

Usage

  1. Create a remlink.config.json at the root of the parent project indicating which modules you want to replace and where you want to pull them from.

    {
      "links": [
        {
          "repo": "netlify/build",
          "branch": "feat/test",
          "packages": {
            "@netlify/config": "packages/config",
            "@netlify/build": "packages/build"
          },
          "installCommands": ["npm run build"]
        }
      ]
    }
  2. Run npx remlink

With the file above, we'll replace @netlify/config and @netlify/build with an unpublished version from the feat/test branch on https://github.com/netlify/build.

Under the hood, remlink will pull the branch, run npm install (and any additional commands specified in installCommands), and create a symlink for any instance of the modules found in the dependency tree.

The packages object allows remlink to work with a monorepo, as you can link multiple modules from the same repository.

Using with private repositories

For using remlink on private repositories please set the GITHUB_TOKEN environment variable. The GITHUB_TOKEN can be obtained using the create personal access token under the developer settings

Hint: Don't forget to authorize the token to be able to access the organization