Skip to content

About

Decentralized Nostr forum — all Rust. Leptos WASM client + 5 Cloudflare Workers. Passkey auth, Solid pods, trust system, moderation, badges. 469 tests.

Topics

Resources

Contributing

Security policy

Stars

15 stars

Watchers

0 watching

Forks

Latest commit

 

History

1,343 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nostr-rust-forum

A Rust community kit for Nostr messaging, access control and agent governance

Start · Architecture · Governance · Interop · Status · Setup

Build a community where people and agents publish signed events under explicit access rules. The kit supplies forum and retro browser clients, a relay, auth/pod/search/preview workers, shared libraries and operator tools. Branding, zones and deployment values belong in an operator configuration rather than a fork of the protocol implementation.

Use it for a layered community, team discussion, private messaging or a review surface for agent proposals. A signature identifies a key; roles and policy decide what that key may do. It does not by itself prove a human participated or that an approved action happened.

Quick start

Copy the example configuration and read the setup path before provisioning infrastructure:

git clone https://github.com/DreamLab-AI/nostr-rust-forum.git
cd nostr-rust-forum
cp forum.example.toml forum.toml

forum.example.toml describes the configuration sections. Choose the implemented forum deployment profile, then configure hostname, zones, cohorts and the relevant services. The room profile is a roadmap option, not a working alternative today.

For source development, install the Rust/WASM toolchain and Trunk, then build the client:

rustup target add wasm32-unknown-unknown
cargo install trunk
cd crates/nostr-bbs-forum-client
trunk serve

A local client still needs configured worker/relay endpoints for account and messaging operations. SETUP.md covers Cloudflare resources, secrets, bindings, migrations, client builds and DNS. The workspace declares Rust 1.85, while individual dependencies/build tools may impose later requirements; use the lockfile and CI toolchain when reproducing a release.

# From the repository root, with the required native dependencies available:
cargo build --workspace --locked
cargo test --workspace --locked

The standalone community is the first deployment path. Cross-repository runtime integration needs additional configuration and acceptance evidence.

Architecture

flowchart TB
    CONFIG["Operator TOML and deployment bindings"] --> CLIENTS["Forum and retro browser clients"]
    CONFIG --> RELAY["Relay worker: admission, events, zones"]
    CLIENTS -->|"Nostr WebSocket and AUTH"| RELAY
    CLIENTS --> AUTH["Auth worker: identity, membership, governance REST"]
    CLIENTS --> POD["Pod worker: LDP and WAC"]
    CLIENTS --> SEARCH["Search worker"]
    CLIENTS --> PREVIEW["Preview worker"]
    RELAY --> CORE["Core protocol and governance types"]
    AUTH --> CORE
    POD --> CORE
    RELAY -.-> MESH["Mesh transport: configured peer routing"]
    RELAY --> DB["Durable Objects and D1"]
    POD --> R2["Worker-native pod storage"]
    NATIVE["Optional native pod server"] -.-> AUTH
Loading

Source ownership is divided across the workspace manifests, architecture guide and baseline. The core, configuration, mesh and operator tools are distinct from deployed clients/workers. A package release is not a complete community deployment.

Zones and identity

Zones group channels by cohort policy. public, locked and hidden visibility control listing and reading; write permissions are configured separately. The relay enforces access, while clients render the corresponding tiles. TOML, worker bindings and injected browser configuration must agree; duplicated projections are a contract to check, not an automatic guarantee of consistency.

Passkeys, extension signers and configured keys offer different custody paths. NIP-42 authenticates a relay connection and NIP-98 binds an HTTP request. DID document helpers and pod integration have their own feature/licence boundaries. A portable public key does not grant cross-service permissions.

Community capabilities and operator responsibilities
  • Forum topics, nested replies, chat, profiles, direct messages and a retro client share the event substrate.
  • Zones and cohorts separate openly readable areas from restricted groups. Encryption and key distribution add a separate boundary to relay access control.
  • Calendar projection can return full event detail, free/busy information or omission for a viewer. A projected/redacted representation is not the original signed event.
  • Pod routes expose a Worker-compatible Solid tier. Native git-backed capabilities require the separate native pod integration; the Worker cannot run a native git process.
  • Search uses the configured worker/embedding/storage stack. Preview fetching has its own network and SSRF policy.
  • Optional poker, sidestr and governance tools need their corresponding services and configuration; compiling the workspace does not activate every feature.

Read architecture, consumer surfaces, security policy and the operator setup before enabling a surface.

Signed governance

An agent publishes a panel and request. A permitted reviewer inspects the case and signs a response. The mutation owner later reports whether the approved action was applied. These are distinct stages; a relay acknowledgement is not an application receipt.

sequenceDiagram
    participant A as Registered agent
    participant R as Relay and case projection
    participant C as Review client
    participant H as Authorised reviewer
    participant O as Mutation owner
    A->>R: 31400 panel and 31402 request
    R-->>C: Pending case and effective policy tier
    C-->>H: Context and decision surface
    H->>C: Review and sign response
    C->>R: 31403 signed response
    R-->>O: Accepted decision
    O->>O: Apply or refuse the requested change
    O->>R: Application receipt
Loading
Kind Name Publisher Purpose
31400 PanelDefinition Agent Declare a control panel (schema, fields, actions)
31401 PanelState Agent Publish a current panel data snapshot
31402 ActionRequest Agent Request a human decision
31403 ActionResponse Human The signed decision (admin key, or a reviewer for a case delegated to them)
31404 PanelUpdate Agent Incremental state diff
31405 PanelRetired Agent Retire a control panel

The operator's task-property declaration sets the escalation boundary; a request can tighten it. Role and delegation policy govern admission of a response. High/critical cases require the configured human-response path. A cryptographic event alone cannot establish who physically controlled a signing key.

See ADR-2011 and the governance flow diagrams in VisionFlow's estate corpus (NF-06; this repository's diagrams live there, see docs/diagrams/). The documented estate consumer is VisionClaw's ontology-review workflow; universal production use is not established. Application receipts belong to the system that performs the mutation.

Interoperability and deployment profiles

The NIP-17 and NIP-171 work is on main, switched off. The upgrade branch feat/upgrade-phase-0-1 merged into main at a80c572 (2026-11-16). Its NIP-17 overlay and inbox keys ship dormant behind RECIPIENT_KEYS_ENABLED, and its NIP-171 zone key plane dormant behind ZONE_GROUPS_ENABLED; both are off unless an operator sets them to "true".

Standard event formats do not guarantee that any client can join every restricted community. Admission, channel dialect, encryption, key delivery and relay discovery must agree.

Layer Source position Activation boundary
NIP-42 relay admission Implemented; example worker selects AUTH_MODE=nip42 Configure the relay's own URL/aliases and membership policy
Mesh transport Concrete transport and delegation validation exist Peer configuration and a live cross-node run are separate evidence
NIP-17 overlay Implemented on main under ADR-2027, flagged off RECIPIENT_KEYS_ENABLED is off by default
NIP-171 zone key plane Partly implemented on main behind a flag; design remains proposed in ADR-2028 ZONE_GROUPS_ENABLED is off; pre-activation blockers remain
room profile Configuration and roadmap described by ADR-2029 Channel-dialect implementation is not built

The implemented forum profile uses the existing channel dialect. Consult deployment profiles and interop assessments for the transition and recovery constraints. A proposed interoperability layer is not a claim of a completed acceptance session with another app.

Working status

Checked 23 November 2026 against main 4a73a7a. The four published library crates (nostr-bbs-core, -config, -mesh, -rate-limit) are at 1.0.0-beta.20 on crates.io, released together on 22 November. The newest kit tag is v1.0.0-beta.21-rc.3 (fd31193); the workers and the forum and BBS clients are not published and are built from source at a kit commit, and the other crates keep their own manifest versions. The upgrade branch feat/upgrade-phase-0-1 merged at a80c572 (16 November); its NIP-17 overlay and NIP-171 zone key plane ship switched off (see below).

Since 1.0.0-beta.20, main has added relay NIP-09 tombstones and a member deletion gate, incremental deleter-scoped deletion sync in the client, per-identity zone keys, drafts and bookmarks, and cold deep links that report "not found" only after an authenticated relay answer and, in an encrypted zone, after the zone keys arrive. The changelog [Unreleased] section lists them; open follow-ups are in known findings. The operator has exercised the encrypted-zone cold link live on a deployment of fd31193; the rest of that work has not been re-verified live for this page. The decision ledger records decisions, implementation and activation on independent axes.

Where it sits in VisionFlow

VisionFlow owns the estate architecture. This kit owns communication and review surfaces; DreamLab's website consumes selected revisions and supplies its operator overlay. Agentbox runs agents and product-specific bridges; VisionClaw owns knowledge application and mutation paths. solid-pod-rs supplies foundation functionality with tier-specific consumption.

An event signed here does not establish every other service's state. The estate's compatibility and acceptance records describe those seams.

Documentation, credit and licence

Setup · Architecture · Decision ledger · Bulk import · Changelog · Contributing · Security

Application/worker code follows AGPL-3.0-only. nostr-bbs-core declares MIT OR Apache-2.0 from its beta.18 relicense; its default-off did feature adds the Solid dependency and changes the combined dependency obligations. Inspect the actual feature graph and individual manifests rather than applying a blanket licence to every build. LICENSE, core documentation and MAINTAINERS.md carry terms and attribution, including the Solid/JSS lineage of Melvin Carvalho's work.

About

Decentralized Nostr forum — all Rust. Leptos WASM client + 5 Cloudflare Workers. Passkey auth, Solid pods, trust system, moderation, badges. 469 tests.

Topics

Resources

Contributing

Security policy

Stars

15 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages