Quick Start

Get started with Tribe Protocol by installing the SDK or running your own node.

Install the SDK

Terminal
npm install @tribe-protocol/sdk

Connect and Register

// Connect to devnet
const provider = new AnchorProvider(connection, wallet, { commitment: "confirmed" });
const tribe = TribeClient.forDevnet(provider);

// Register a Tribe ID
const { tid, txSig } = await tribe.identity.tid.register(recoveryAddress);

// Add an app key for signing messages
await tribe.identity.appKeys.addAppKey(tid, appPubkey, AppKeyScope.Full);

// Publish a tweet
await tribe.tweets.publish(tid, "Hello Tribe!", signingKey);

Run a Tribe Node

Join the network by running a full node via Homebrew. The tribe formula installs the hub and the ER sequencer plus their Postgres databases. The demo UI ships as a separate formula.

brew tap chaalpritam/tribe
brew install --HEAD tribe
tribe start

# Optional: install the demo UI on top
brew install --HEAD tribe-twitter-app
tribe-twitter-app