Skip to content
pubscout

snapd

0.7.8, released 3 weeks ago by canonical.com

A Dart client for communicating with the snapd daemon on Linux systems.

$ flutter pub add snapd
Source repository

What it does

Provides a client interface to interact with snapd on Linux. It allows developers to query, search, install, refresh, revert, and manage snaps and their connections. It also provides methods to inspect system information and manage snapd tasks.

AI-written summary of version 0.7.8, based on the package's README and metadata. Report an inaccuracy

Use it when

  • Building Linux desktop applications or app stores that need to manage or inspect snap packages.
  • Integrating snap package installation, removal, or update status into a Linux utility.

Skip it when

  • Developing for non-Linux platforms such as Android, iOS, Windows, macOS, or web.
  • Targeting Linux distributions or systems where snapd is not installed or supported.

Strengths

  • Official-style client supporting a wide range of snapd daemon APIs including connections, categories, and revisions.
  • Simple asynchronous API via SnapdClient.

Weaknesses

  • Strictly tied to the Linux platform and the snapd service.
  • Documentation and examples in the README are minimal.

Setup

Kind
Pure Dart
Effort
Low
Code generation
Yes (build_runner)
Direct dependencies
6

Requires the snapd daemon running on the host Linux system.

import 'package:snapd/snapd.dart';

void main() async {
  var client = SnapdClient();
  var snaps = await client.getSnaps();
  print(snaps);
  client.close();
}

Alternatives

Packages that do the same job and could replace snapd.

Works with

Packages commonly used together with snapd: ones it builds on, ones built on it, and its own family.