at_commons
5.25.0, released 2 weeks ago by atsign.org
Foundational types, protocol verb builders, and utilities for the Atsign Protocol SDK.
What it does
Provides core types like AtKey representation, metadata configurations, validation for atSigns, exception hierarchies, and wire-format protocol verb builders. It is a pure-Dart utility library used across other atPlatform components.
AI-written summary of version 5.25.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to construct an AtKey by hand in lower-level Atsign code.
- You are building or parsing Atsign protocol wire-format verbs directly.
- You need to handle Atsign-specific exception hierarchies.
Skip it when
- You are writing a standard Flutter application and can use higher-level client packages instead.
- You do not use the Atsign protocol in your project.
Strengths
- Pure-Dart implementation with no client-specific dependencies.
- Provides robust static factory methods for key shapes (self, shared, public, local).
Weaknesses
- Too low-level for most standard application developers who should use at_client instead.
- Niche domain-specific utility library.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 3
Add the dependency to your pubspec.yaml file.
AtKey shared = (AtKey.shared('phone', namespace: 'myapp', sharedBy: '@alice')..sharedWith('@bob')).build();Alternatives
Packages that do the same job and could replace at_commons.
- belatuk_http_server
Utility classes that simplify building Dart server‑side HTTP services with HttpServer.
73Compare
Works with
Packages commonly used together with at_commons: ones it builds on, ones built on it, and its own family.
- uuidat_commons depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- json_annotationat_commons depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- at_server_statusSame familyCheck the status of an atRoot server and its atServer for a given @sign.
- at_contactSame familyDart library for persisting and managing contacts on the atPlatform.
- at_contacts_flutterSame familyA Flutter plugin to manage contacts for an atSign using the atPlatform.
- at_lookupBuilt on at_commonsCore commands implementation for communicating with an Atsign secondary server.
- at_utilsBuilt on at_commonsUtility library for Atsign Protocol projects with atSign helpers and logging.
- at_clientBuilt on at_commonsClient SDK for building apps on the atProtocol with end-to-end encryption.