Skip to main content

Publishing Collections

Learn how to create and publish collections that bundle multiple packages together.

What are Collections?

Collections allow users to install multiple related packages with a single command:
Instead of:

Creating a Collection

Collections are defined in prpm.json using the collections array:

Collection Fields

Required Fields

Optional Fields

Package Entries

Each package in the packages array:

Version Ranges

  • ^1.0.0 - Compatible with 1.x.x (recommended)
  • ~1.2.0 - Compatible with 1.2.x
  • 1.0.0 - Exact version only
  • latest - Always use latest

Required vs Optional

Optional packages can be skipped during installation:

Publishing Collections

Publish All

Publish all packages and collections:

Publish Specific Collection

Publish only one collection:

Collections with Packages

You can define both packages and collections in the same prpm.json:
This allows you to:
  1. Publish your own packages
  2. Create collections that bundle your packages with others from the registry

Collection Categories

Common categories:
  • development - General development setups
  • testing - Testing configurations
  • deployment - Deployment workflows
  • data-science - Data science and ML
  • devops - DevOps and infrastructure
  • design - Design and UI/UX
  • documentation - Documentation tools
  • security - Security patterns
  • performance - Performance optimization

Best Practices

Use Semantic Version Ranges

Not:

Provide Clear Descriptions

Not:

Use Relevant Tags

Add Reasons

Explain why each package is included:

Deprecating Collections

If you need to deprecate a collection (e.g., it’s been superseded by a better alternative), use the deprecate command:

What Happens When You Deprecate

  • The collection is hidden from search results
  • Users who have the collection installed will see a deprecation warning
  • The collection can still be installed directly by name
  • All versions of the collection are marked as deprecated

Who Can Deprecate

Only the collection owner (or organization members for org-owned collections) can deprecate a collection. Admins can also deprecate any collection.

Next Steps

Manifest Reference

Complete schema documentation

Publishing Guide

Learn more about publishing