Getting started
What you need to install a private Pack, and where to find it.
PolyPack serves your Team's private Composer and npm packages and container images, which we call Packs. Package managers talk to your Team's own registry host. For Hopper Digital, whose Team slug is hopper, that is:
https://hopper.pkg.polypack.io
- Composer:
https://hopper.pkg.polypack.io/composer - npm:
https://hopper.pkg.polypack.io/npm/ - Container images:
hopper.cr.polypack.io, a host of its own (see Docker and OCI)
What you need
- The Team's host, as above. Every Team has its own.
- A Token, unless the Pack is public. A Token starts with
polypack_and works on its own Team's host only. Members issue their own under My Tokens; Admins issue Team Tokens for CI and Client Tokens for customers. See Tokens. To publish from GitHub Actions you need none: see Trusted publishing. - The setup lines. Every Pack's page in PolyPack shows them, ready to paste, under Install, Publish and CI. The guides here show the same lines for an example Pack.
On your own machine, the polypack CLI does the last two for you: polypack login signs you in through the browser and sets up npm, Composer and docker.
Guides
Start here
- The polypack CLI: sign a machine in and set up its package managers in one command.
Package managers
- Composer: install a Composer Pack, how releases come from GitHub, and monorepos.
- npm: install and publish npm Packs, dist-tags, deprecating and unpublishing.
- Docker and OCI: push and pull container images and Helm charts, Kubernetes, deleting tags.
- Files: binaries, plugins and builds as versioned Files, with channels and checksums for your own updater.
- RubyGems: private Ruby gems with Bundler and gem, kept apart from rubygems.org by a Gemfile source block.
CI and publishing
- Installing in CI: GitHub Actions, GitLab CI and any other pipeline.
- Trusted publishing: publish from GitHub Actions with no Token stored in GitHub, and how it is kept safe.
- The GitHub Action: trusted publishing in one step, its inputs and versions.
- Signatures and provenance: check that what you install is what was published, and where it was built.
Your customers
- Tokens: kinds, abilities, expiry and revoking.
- Clients and Grants: give your customers only the Packs they paid for.
- Products: sell a set of Packs as one, and give it to a customer in one step.
Automation
- Team API: manage Clients, Grants, Products and Tokens from your own systems.
README badges
A public Pack has a badge of its current version, for its README, like the ones Packagist and npm give. Its Pack page shows the line to paste:

The same path ending in .json answers shields.io's endpoint format, to style the badge with https://img.shields.io/endpoint?url=…. Private Packs have no badge: their badge URL is a 404, as everything about them is to anyone who cannot read them.
If something is refused
A private Pack you cannot read is a 404, exactly as if it did not exist; nobody can probe for a Team's Pack names. A missing or wrong Token is a 401. A Token that cannot do what was asked, such as a read-only Token publishing, is a 403 with a message saying why.