at_contact
4.0.0, released 2 weeks ago by atsign.org
Dart library for persisting and managing contacts on the atPlatform.
WASM-ready
What it does
Provides CRUD operations for contacts stored in a decentralized personal data store. It uses at_client for communication and ensures end‑to‑end encryption.
AI-written summary of version 4.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to store contacts without a traditional backend
- You want encrypted, user‑controlled data storage
- You are already using at_client in your app
Skip it when
- You need a cloud‑based contact sync like Firebase
- You require advanced UI widgets for contacts
Strengths
- Zero‑config backend, fully encrypted
- Easy integration with at_client
- Supports multiple platforms
Weaknesses
- No UI components
- Limited to atPlatform ecosystem
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add dependency, run dart pub add at_contact, instantiate AtContactsImpl with AtClientManager
```dart
import 'package:at_contact/at_contact.dart';
final atClient = AtClientManager.getInstance().atClient;
final contacts = AtContactsImpl(atClient, atClient.getCurrentAtSign());
final contact = AtContact()
..atSign = '@example'
..createdOn = DateTime.now()
..type = ContactType.Individual;
await contacts.add(contact);
```Works with
Packages commonly used together with at_contact: ones it builds on, ones built on it, and its own family.
- uuidat_contact depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- intlat_contact depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- at_utilsat_contact depends on itUtility library for Atsign Protocol projects with atSign helpers and logging.
- at_clientat_contact depends on itClient SDK for building apps on the atProtocol with end-to-end encryption.
- at_lookupSame familyCore commands implementation for communicating with an Atsign secondary server.
- at_commonsSame familyFoundational types, protocol verb builders, and utilities for the Atsign Protocol SDK.
- at_server_statusSame familyCheck the status of an atRoot server and its atServer for a given @sign.
- at_contacts_flutterBuilt on at_contactA Flutter plugin to manage contacts for an atSign using the atPlatform.