Skip to content
pubscout

at_client

4.0.0, released 2 weeks ago by atsign.org

Client SDK for building apps on the atProtocol with end-to-end encryption.

WASM-ready
$ flutter pub add at_client
Source repository

What it does

Talks to an atSign's personal atServer to transparently handle key management, end-to-end encryption, background sync, notifications, and onboarding/APKAM enrollment. It provides platform-neutral client methods for Dart and Flutter applications.

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

Use it when

  • Building a Dart CLI, server, or IoT program that connects to the atProtocol.
  • Handling secure peer-to-peer data synchronization and messaging through an atServer.

Skip it when

  • Building a Flutter web application, as Flutter web is not supported by atSign onboarding and key storage plugins.
  • Working with standard REST or GraphQL backends that do not use the atProtocol.

Strengths

  • Provides end-to-end encryption and post-quantum cryptography support.
  • Handles complex device onboarding and APKAM enrollment natively.

Weaknesses

  • Flutter web is not supported due to platform storage and onboarding limitations.
  • Requires understanding of atProtocol concepts like atSigns, atServers, and namespaces.

Setup

Kind
Pure Dart
Effort
Medium
Code generation
No
Direct dependencies
16

Requires setting up keys (such as FileAtKeysIo or device keychain), local storage backends like Hive or SQLite, and an atDirectory secondary address finder.

import 'package:at_client/at_client_io.dart';
import 'package:at_client/hive.dart';

final client = await Atsign('@alice').open(
    keys: FileAtKeysIo(filePath: (_) => '/keys/@alice_key.atKeys'),
    storage: HiveAtClientStorage(atSign: '@alice', storagePath: dir, closedByClient: true),
    preference: AtClientPreference()..namespace = 'todos',
    lookUps: secureSocketLookUps(),
    secondaryAddressFinder: CacheableSecondaryAddressFinder('root.atsign.org', 64));

Alternatives

Packages that do the same job and could replace at_client.

Works with

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