Why I Built Cosmos: A Package Manager for the Broken Edge
- Last Updated: May 5, 2025
Ray Thomas
- Last Updated: May 5, 2025
When you're building for embedded Linux, recovery environments, or edge devices out in the wild, things eventually break. Systems fail. Dependencies disappear. Networks go down. Sometimes you're staring at a shell prompt on a device that barely boots and has no internet access. And you still need to install software.
That's where this started.
I'm a developer working in the IoT and embedded systems space, and I kept running into the same problem: traditional package managers weren't built for this. They're great on full-blown distros, but they rely on assumptions—shell access, runtime dependencies, dynamic linking, internet connectivity—that simply don't hold up on edge nodes or in recovery environments.
So I built Cosmos.
Cosmos is a minimalist, offline-first package manager designed for when your system is on fire—or when you're working with systems that can't afford the bloat of traditional distros. Written in Rust, musl-compatible, and fully static, Cosmos doesn't need a shell, a scripting runtime, or even internet access. It's designed for environments where everything else has failed—or never existed in the first place.
Cosmos isn't trying to be APT, Pacman, DNF, or Nix. It's built for a different job:
python3 -m http.server
. No internet? No problem.Package Builder Included (Stellar): You can define a new package, fetch its source, and build it with one command using stellar
. No Makefiles, no YAML DSLs, no mystery.
Cosmos was built to solve the exact problems we see in embedded development and edge IoT workflows:
apk
in minimal buildsWhether you're trying to recover a device or building one that should never need recovery, Cosmos has your back.
This project wasn’t built as a hypothetical. It was written by someone who's had to fix broken systems with tarballs and sheer force of will. The first version of Cosmos was built in a 3-day sprint and evolved into a structured, extensible system over a week.
And yes—it's already usable.
Cosmos is open source (MIT), actively maintained, and structured for long-term reliability. If you're working in embedded Linux, IoT recovery, or minimal system bootstrapping, give it a look.
It might save your future self from a long weekend of regret.
The Most Comprehensive IoT Newsletter for Enterprises
Showcasing the highest-quality content, resources, news, and insights from the world of the Internet of Things. Subscribe to remain informed and up-to-date.
New Podcast Episode
Related Articles