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

polyci

v0.1.8

Published

Monorepo CI/CD utilities.

Downloads

4,327

Readme

polyci

Generates GitLab CI pipelines for monorepos. Discovers modules under a root directory, creates per-module build, test, release, publish, and deploy jobs, and wires them with conventional-commit-based versioning via semalease.

Installation

npm install
npm run build

Or use via npx polyci when the package is published.

Usage

npx polyci [output] [options]

Example (typical GitLab CI setup):

npx polyci --modules-root modules polyci-pipeline.yml

Options:

| Option | Description | Default | |--------|-------------|---------| | -o, --output <path> | Output pipeline file path | — | | --modules-root <path> | Root directory to scan for modules | ./modules | | --main-branch <name> | Primary branch for release tagging | main | | --version-template <template> | Version template for main branch; placeholders: {version}, {branch}, {increment} | {version} | | --branch-version-template <template> | Version template for non-main branches | {version}-{branch}-{increment} | | --tag-template <template> | Tag template; placeholders: {module}, {version} | {module}-v{version} | | --tag-pattern <pattern> | Tag regex for main branch (passed to semalease) | ^$PLI_MODULE_NAME-v(?<version>...) | | --branch-tag-pattern <pattern> | Tag regex for non-main branches (with ?<increment>) | — | | --cwd <path> | Working directory | current directory |

Description

If there is no new version, publish and deploy finish successfuly doing nothing.

Requirements

  • POLYCI_TOKEN — GitLab OAuth token for pushing tags; must be defined in GitLab CI/CD variables and available to jobs that run the release stage.
  • Module build — Each module must support npm run build and produce output in ./dist.

For docker-service deploy type: a Docker host with Traefik 3.

PLI_ variables

Jobs receive module context via PLI_-prefixed variables, written to polyci.env and sourced between stages.

| Variable | Set by | Description | |----------|--------|-------------| | PLI_MODULE_NAME | build | Module name (directory name under modules-root) | | PLI_MODULE_PATH | build | Path to the module directory | | PLI_MODULE_TYPE | build | Module type (e.g. node-vite, node-express, docker-service) | | PLI_MODULE_VERSION | release | Version string; set only when there is a new release | | PLI_MODULE_TAG | release | Git tag for the module (e.g. module-name-v1.0.0) | | PLI_PACKAGE_NAME | deploy scripts | name from package.json (used by node-docker deploy) | | PLI_INSTANCE_CONTAINER | deploy scripts | {PLI_PACKAGE_NAME}-{CI_COMMIT_BRANCH} for docker-service | | PLI_INSTANCE_DOMAIN | deploy scripts | Domain(s) from package.json; branch-prefixed for non-main |

Recommendations

  • Do not modify the built-in module types (node-vite, node-express, npm-package). Copy and customize a new type under ci/ instead.
  • Avoid heavy setup in release.sh — Module releases run sequentially in a single container; installing extra packages or changing the environment can slow or break the job.

Usage

When a polyci branch is merged into main branch the latest commit is often a polyci release commit. As a result the merge itself is ignored by polyci and the main branch is not published and deployed. To avoid this, just add an ampty commit after merge before you push to the repository.