Introducing: node-snapd

Alan Meekins
ROSHub
Published in
2 min readJul 16, 2019

node-snapd provides nodejs bindings for interacting with the snapd management daemon

The technical team here at RosHub has been very excited about the future of Linux packaging solutions. The next generation of packing tools promises to provide isolation between applications, granular permissions controls and our personal favorite new benefit: super simple installations and updates.

One of the leading modernized packaging solutions is Snapcraft, built by Canonical.

We’ve really enjoyed working with Snaps and the Snapcraft store so we decided to build some nodejs bindings for interacting with Snap packages. You can find it on npm and github.

The Snap format and Snapcraft App Store are Canonical’s answer for modern Linux packaging

At RosHub, we spend a lot of time working with nodejs and Ubuntu. The release of NodeJS and NPM as a Snap package is an important step in Snapcraft’s growth.

Wanting to get in on the fun we built node-snapd which provides nodejs bindings for interacting with the snapd management daemon:

With node-snapd, you can now easily introspect the Snapd host and the installed Snap packages. When run with elevated permissions you can also install and configure applications in the system. This solution offers unprecedented programmatic package management:

The node-snapd package is just getting started and is a little experimental so we’d love to make it available and hear your feedback. Stay tuned for more documentation and examples.

--

--