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

@unlimitechcloud/devlink

v1.0.5

Published

Local package development and linking tool with namespace support

Readme

@unlimitechcloud/devlink

A modern local package development and linking tool with namespace support, designed for monorepos and multi-project workflows.

npm version License: MIT

Why DevLink?

When developing multiple packages locally, you need a way to test changes across projects without publishing to npm. DevLink provides:

  • Namespace isolation - Different projects can use different versions or variants of the same package without conflicts
  • Multi-version support - Test multiple versions of the same package simultaneously across different projects
  • Automatic consumer updates - Push changes to all dependent projects with one command
  • Declarative configuration - Define dependencies in a config file, not CLI flags

Installation

# Global installation (recommended)
npm install -g @unlimitechcloud/devlink

# Or use with npx
npx @unlimitechcloud/devlink <command>

Quick Start

1. Publish Your Library

cd my-library
devlink publish

This copies your package to the DevLink store (~/.devlink/namespaces/global/).

2. Configure Your Consumer Project

Create devlink.config.mjs in your project root:

export default {
  packages: {
    "@myorg/my-library": { dev: "1.0.0" },
    "@myorg/utils": { dev: "2.0.0" },
  },
  dev: () => ({
    manager: "store",
    namespaces: ["global"],
  }),
};

3. Install from Store

cd my-project
devlink install --dev

DevLink copies the packages from the store to your node_modules.

4. Push Updates

After making changes to your library:

cd my-library
devlink push

This publishes the new version AND automatically updates all consumer projects.

Commands Reference

| Command | Description | Common Options | |---------|-------------|----------------| | publish | Publish package to the store | -n, --namespace | | push | Publish and update all consumers | -n, --namespace | | install | Install packages from store | --dev, --prod, -n | | list | List packages in store | -n, -p, --flat | | resolve | Debug package resolution | -n, --namespaces | | consumers | List/manage consumer projects | --prune | | remove | Remove packages or namespaces | -n, --namespace | | verify | Check store integrity | --fix | | prune | Remove orphaned packages | --dry-run | | docs | Display embedded documentation | <topic> |

Command Details

devlink publish

Publishes the current package to the DevLink store.

devlink publish                    # Publish to global namespace
devlink publish -n feature-v2      # Publish to feature-v2 namespace
devlink publish --repo ~/custom    # Use custom store location

devlink push

Publishes and automatically updates all consumer projects that use this package.

devlink push                       # Publish and update consumers
devlink push -n feature-v2         # Push to specific namespace

devlink install

Installs packages from the store based on your devlink.config.mjs.

devlink install                    # Install using default mode
devlink install --dev              # Force dev mode
devlink install --prod             # Force prod mode
devlink install -n feature,global  # Override namespace precedence
devlink install --dev --npm        # Run npm install first, then DevLink
devlink install --dev --npm --run-scripts  # Allow npm scripts to run

devlink list

Lists all packages in the store.

devlink list                       # Tree view by namespace
devlink list --flat                # Flat output (for scripting)
devlink list -n global             # Filter by namespace
devlink list -p @myorg             # Filter by scope
devlink list -p @myorg/core        # Filter by package

devlink resolve

Shows how packages would be resolved given namespace precedence.

devlink resolve @myorg/[email protected]
devlink resolve @myorg/[email protected] -n feature,global

devlink consumers

Lists projects that have installed packages from the store.

devlink consumers                  # List all consumers
devlink consumers -p @myorg/core   # Filter by package
devlink consumers --prune          # Remove dead projects

devlink remove

Removes packages, versions, or entire namespaces.

devlink remove @myorg/[email protected]   # Remove specific version
devlink remove @myorg/core         # Remove all versions
devlink remove feature-v2          # Remove entire namespace

devlink docs

Access embedded documentation from the CLI.

devlink docs                       # Show documentation tree
devlink docs agents                # AI agent guide
devlink docs store/namespaces      # Specific topic

Configuration

devlink.config.mjs

export default {
  // Packages to manage
  packages: {
    "@myorg/core": { 
      dev: "1.0.0",      // Version for dev mode
      prod: "1.0.0"      // Version for prod mode (optional)
    },
    "@myorg/utils": { dev: "2.0.0" },
  },
  
  // Dev mode configuration
  dev: () => ({
    manager: "store",              // Use DevLink store
    namespaces: ["feature", "global"],  // Namespace precedence
    peerOptional: ["@myorg/*"],    // Transform to optional peers
  }),
  
  // Prod mode configuration (optional)
  prod: () => ({
    manager: "npm",                // Use npm registry
  }),
};

peerOptional

When your packages have internal dependencies (e.g., @myorg/core depends on @myorg/utils), npm will try to resolve them from the registry during npm install. If these packages aren't published yet, npm fails.

The peerOptional option solves this by transforming matching dependencies to optional peer dependencies in the copied packages. This tells npm not to resolve them from the registry.

dev: () => ({
  manager: "store",
  peerOptional: ["@myorg/*"],  // All @myorg packages become optional peers
})

Note: Only the copies in node_modules are modified. The original packages in the store remain unchanged.

Global Options

--repo <path>     # Use custom store location (default: ~/.devlink)
-h, --help        # Show help
-v, --version     # Show version

Environment variable: DEVLINK_REPO can also set the store location.

Namespaces

Namespaces allow different projects to use different variants of the same package without conflicts. Each namespace is an isolated context in the store:

# Feature branch development
devlink publish -n feature-auth

# Team-specific packages
devlink publish -n team-platform

# Environment-specific
devlink publish -n staging

Use cases:

  • Test experimental changes in one project while others use stable versions
  • Multiple developers working on different features of the same package
  • A/B testing different implementations

Resolution follows namespace precedence:

namespaces: ["feature-auth", "global"]
// First looks in feature-auth, falls back to global

Example Workflows

Feature Branch Development

# Developer A: Working on auth feature
cd packages/auth
devlink publish -n feature-auth

# Developer B: Testing auth changes
# devlink.config.mjs: namespaces: ["feature-auth", "global"]
devlink install --dev

# After feature is merged
devlink publish                    # Publish to global
devlink remove feature-auth        # Clean up

Monorepo Development

# Publish all packages
cd packages/core && devlink publish
cd packages/utils && devlink publish
cd packages/ui && devlink publish

# Consumer app
cd apps/web
devlink install --dev

# After changes to core
cd packages/core
devlink push                       # Updates apps/web automatically

Using DevLink as Default Install Command

Replace npm install with DevLink during development using npm lifecycle hooks:

{
  "scripts": {
    "predev:install": "echo '🔧 Preparing development environment...'",
    "dev:install": "devlink install --dev --npm",
    "postdev:install": "echo '✅ Development environment ready'"
  }
}

Run npm run dev:install to:

  1. Execute preparation tasks (predev:install)
  2. Run npm install + DevLink install (dev:install)
  3. Execute post-install tasks (postdev:install)

This ensures DevLink packages are always installed after npm dependencies, preventing npm from pruning them.

Use with AI Agents

DevLink includes comprehensive documentation for AI coding assistants. The AGENTS.md file provides a self-contained guide that AI agents can use to understand and operate DevLink.

# View the AI agent guide
devlink docs agents

# Or read the file directly
cat AGENTS.md

AI agents can use DevLink to:

  • Publish local packages during development
  • Install dependencies from the local store
  • Push updates to consumer projects
  • Manage namespaces for isolated testing

Store Structure

~/.devlink/
├── namespaces/
│   ├── global/
│   │   └── @myorg/
│   │       └── core/
│   │           └── 1.0.0/
│   │               ├── package.json
│   │               └── dist/
│   └── feature-v2/
│       └── ...
├── registry.json          # Package index
├── installations.json     # Consumer tracking
└── .lock                  # File locking

Documentation

📚 Full Documentation

Feedback

We welcome feedback, suggestions, and ideas for improvement. Please open an issue to share your thoughts.

Note: This project does not accept code contributions via pull requests.

About This Project

This tool was built following the principles defined in the whitepaper "A Formal Definition of AI-First" by Unlimitech Cloud LLC.

📄 Read the Whitepaper | More Whitepapers

The whitepaper provides a formal functional definition that enables seamless integration with AI coding assistants and autonomous agents—making tools like DevLink naturally AI-ready.

This project represents Unlimitech Cloud LLC's commitment to knowledge sharing: contributing frameworks and practical tools that help organizations navigate complex challenges. We believe sharing knowledge openly strengthens the broader ecosystem and creates value for everyone.

License

MIT © Unlimitech Cloud LLC