SDKS

Everything we ship, documented.

Nine npm packages, the mobile and native Carrier SDKs, and the reference applications built on them. Each has its own page with install steps, a quickstart that was run, and an API reference read from the source.

npm packages

Node.js 20+ · TypeScript0.1.172

@decentnetwork/peer

Pure TypeScript Carrier peer: self-generated identity, friends, DHT discovery, direct/relay transport, messages, files and Express offline delivery. Wire-compatible with the Beagle apps and the native SDKs.

npm install @decentnetwork/peer
Node.js 20+ · browser0.2.18

@decentnetwork/peer-webrtc

Audio/video call signaling over Carrier, wire-compatible with the iOS and Android Beagle apps. Bring your own RTCPeerConnection and transport.

npm install @decentnetwork/peer-webrtc
Node.js 20+ · browser0.1.3

@decentnetwork/chat-components

Interactive forms inside chat messages: a shared schema between an agent that asks and a client that renders. No HTML, URLs or scripts.

npm install @decentnetwork/chat-components
macOS · Linux · Windows (WSL2)0.1.316

@decentnetwork/lan

Private virtual LAN over Peer transport: 10.86.x.x addresses, names, ACLs, files, proxy and a local console. CLI: agentnet.

npm install -g @decentnetwork/lan
Node.js 20+ · no root0.1.16

@decentnetwork/dora

DHCP-style naming for AgentNet (Discover, Offer, Request, Acknowledge). Runs as a normal Carrier peer without admin rights.

npm install -g @decentnetwork/dora
Node.js 20+ · desktop0.1.132

@decentnetwork/beagle

P2P chat, file transfer and calls for regular users on the Decent Network, as a CLI and local desktop app. No admin privilege required.

npm install -g @decentnetwork/beagle
browser bundle0.2.40

@decentnetwork/beagle-ui

The Beagle chat UI without the machine it runs on — shared by the desktop install and the browser build.

npm install @decentnetwork/beagle-ui
browser0.1.2

@decentnetwork/beagle-connect

Sign in with Beagle from a website: identity, friend requests and app launches.

npm install @decentnetwork/beagle-connect
Node.js0.1.2

@decentnetwork/billing-client

Typed client for the Decent Network billing service: nodes call hold / capture / release and never speak raw HTTP or compute prices.

npm install @decentnetwork/billing-client

Mobile + native Carrier SDKs

Android · Java6.0.4

Android Carrier SDK

JNI wrapper for Carrier on Android: identity, friends, messages with receipts, Express offline delivery, files and sessions. The public coordinate is the 2022 upstream build; the 16 KB-aligned builds Beagle ships are not published yet.

implementation 'org.elastos:carrier:6.0.4'
Android · Java/Kotlinwebrtc-0.0.4

Android WebRTC SDK

One-to-one audio, video and data-channel calls between Carrier friends on Android, with signaling over Carrier. The JitPack build is not 16 KB-aligned; the builds Beagle ships are not published yet.

implementation 'com.github.0xli:Elastos.NET.WebRTC.Android.SDK:webrtc-0.0.4'
iOS · Swift6.1.0

Swift Carrier SDK

Swift API over the native Carrier library for iOS: identity and signatures, friends, messages with receipts, Express offline delivery, groups, files and sessions. Add it with Swift Package Manager.

.package(url: "https://github.com/0xli/Elastos.CarrierClassic.Swift", exact: "6.1.0")
iOS · Swiftpreview · not public

iOS WebRTC SDK

Preview: audio/video calls for iOS on WebRTC, with signaling over Carrier — the call stack inside Beagle Chat for iOS. Source is not public yet and nothing is published.

macOS · Linux · iOS · Android6.1.0

Carrier Native SDK (C/C++)

The C library the mobile SDKs wrap: identity, friends, messages with receipts, Express offline delivery, invites, groups, file transfer and sessions. Source release v6.1.0, built with CMake.

git clone --branch v6.1.0 https://github.com/0xli/Elastos.NET.Carrier.Native.SDK.git

Applications + support

appsguide

Reference applications

AgentNet CLI, Beagle desktop, beagle-web, Beagle Chat for iOS and Android, and the browser extension — and which SDK each one is built on.

supportguide

Developer support

Free help through GitHub issues, and how to reach us for technical support and integration help.