Search packages, repositories and app categories

Package detailsv0.2.11

fa_hub_client

DAP/1 hub client for flutter_agent_harness: MessagingRepository over a signed WebSocket, FahPlugin wiring delivery via Agent.externalSteeringSource.

AndroidiOSLinuxmacOSWindows
30-day downloads
37.5K
Likes
0
Pub points
140

Install package

flutter pub add fa_hub_client

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The fa_hub_client package enables Flutter applications to communicate with a DAP/1 hub via a signed WebSocket, facilitating secure messaging through the MessagingRepository. It integrates with Agent.externalSteeringSource using FahPlugin for seamless delivery of agent-driven actions. Designed for use within the flutter_agent_harness ecosystem, it supports cross-platform development across Android, iOS, Linux, macOS, and Windows. The package simplifies real-time, authenticated communication between Flutter apps and agent hubs.

Use cases

  • Real-time agent communication
  • Secure messaging over WebSocket
  • Cross-platform agent integration
  • Automated steering via external sources
  • Integration with flutter_agent_harness

Key features

  • Signed WebSocket connections
  • MessagingRepository interface
  • FahPlugin for steering delivery
  • Cross-platform support
  • Built for DAP/1 hub compatibility

Suitable for

  • Developers using flutter_agent_harness
  • Applications requiring agent-based workflows
  • Projects needing secure real-time messaging
  • Cross-platform agent clients
  • DAP/1 hub-connected systems

Considerations

  • Requires DAP/1 hub infrastructure
  • Dependent on flutter_agent_harness
  • Limited to agent-driven interaction patterns
  • Needs proper signing for WebSocket handshake
  • Not suitable for general-purpose HTTP requests

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

fa_hub_client

CI Release License: MIT pub pub points

DAP/1 hub client for flutter_agent_harness: a MessagingRepository over a signed WebSocket, delivered into the agent loop via Agent.externalSteeringSource.

Install

dart pub add fa_hub_client

or in pubspec.yaml:

dependencies:
  fa_hub_client: ^0.2.0

Usage

import 'package:fa_hub_client/fa_hub_client.dart';

final plugin = HubPlugin();
plugin.register(context); // reads context.config['hub']
await plugin.start();     // loads identity, connects, starts inbox delivery
agent.externalSteeringSource = plugin.externalSteeringSource;

// later
await plugin.inviteTo('peer-name');            // dap_invite
await plugin.connectTo('hub.example.com');     // dap_connect
await plugin.status();                         // dap_status snapshot
await plugin.peers();                          // dap_peers list

Configuration

Zero-config by default; resolution order is environment > ~/.dap/config.json

built-in defaults (ws://127.0.0.1:8787/ws, identity ~/.dap/keys/fah/<name>.key, channels ~/.dap/channels.json).

Env var Purpose
DAP_HUB_URL Hub WebSocket URL
DAP_AGENT_NAME Display name / identity
DAP_KEY_PATH Signing key file
DAP_CHANNELS_FILE Channel store location
DAP_CONFIG_FILE Config file location (default ~/.dap/config.json)
DAP_MASTER_SECRET Hub master secret — first-connect enrollment
DAP_CLIENT_SECRET Hub-issued client secret (or enrolled once via master; also clientSecret in config)

First connect to a new hub needs DAP_MASTER_SECRET set (enrolls once, then the issued client secret is stored in ~/.dap/config.json).

Protocol

DAP protocol documentation lives in the dap repo.

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package

No data available yet.

Rankings