Skip to main content

React Hooks

@bitsocial/bitsocial-react-hooks gives React apps a hooks API for the Bitsocial protocol: feeds, comments, communities, author profiles, accounts, and publishing, without a central server. 5chan and Seedit are built on it.

The library has its own documentation site, updated with every release: hooks.bitsocial.net.

Installation​

npm install @bitsocial/bitsocial-react-hooks

The package supports React 16.8 and later.

Where to start​

  • Quickstart: render your first community feed.
  • Concepts: how feeds, local accounts, shared state, and publishing fit together.
  • API reference: every hook with its options and return values.
  • Playground: edit live examples that run on simulated content.
  • Build with AI: llms.txt and Markdown versions of every page for coding agents.