Company
Date Published
Author
Kyle Harrison
Word count
528
Language
English
Hacker News points
None

Summary

With the introduction of the Package Activity API and accompanying CLI command, users can now easily check their repository for packages' activity status or view them individually. This allows users to save on storage costs by eliminating inactive packages and retaining only those that derive value from storing and distributing via Cloudsmith. Automated retention/lifetime rules are available on the Velocity plan and above, enabling automatic management of storage for packages by deleting or moving packages outside of defined retention rules. The rules can be based on package downloads, size, or days, making it easier to identify inactive packages and automate their removal. Users can explore these metrics using the CLI command or implementing a programmatic solution using the API, and get started quickly by querying total active/inactive packages for their repository.