feat(dashboard): Integrate Braidpool Node RPC into WebSocket Server by priyashuu · Pull Request #427 · braidpool/braidpool · GitHub
Skip to content

feat(dashboard): Integrate Braidpool Node RPC into WebSocket Server#427

Merged
mcelrath merged 12 commits into
devfrom
backend_integration
May 8, 2026
Merged

feat(dashboard): Integrate Braidpool Node RPC into WebSocket Server#427
mcelrath merged 12 commits into
devfrom
backend_integration

Conversation

@priyashuu

@priyashuu priyashuu commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds real-time Braidpool node data streaming to the dashboard via WebSocket, enabling the frontend to display bead/braid statistics from the Braidpool node.

  • Fetched Data:
    Method Description
    getbraidinfo Braid metadata
    getpeerinfo Connected peers
    gethighestworkpathbycount(50) Main chain beads
    getcohortbyid Retrieves beads belonging to a specific cohort
    getparents Fetches parent relationships for each bead

@priyashuu priyashuu requested a review from zaidmstrr as a code owner April 13, 2026 05:43
Copilot AI review requested due to automatic review settings April 13, 2026 05:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Integrates Braidpool node RPC polling into the existing dashboard WebSocket server so the frontend can receive periodic braid/bead statistics and metadata.

Changes:

  • Added a new Braidpool RPC fetcher that aggregates multiple JSON-RPC methods (fetchBraidpoolBeadInfo).
  • Added a new WebSocket broadcast (braidpool_bead_info) on the existing 30s interval.
  • Wired the new fetcher into dashboard/api/server.js via a new import and interval call.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 9 comments.

File Description
dashboard/api/server.js Imports the new Braidpool fetcher and broadcasts Braidpool bead/braid info over WebSocket on the existing interval.
dashboard/api/braidpool/utils/fetchbeadinfo.js Implements JSON-RPC calls (with retries) to gather Braidpool node data into a single structured result.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dashboard/api/server.js
Comment thread dashboard/api/server.js
Comment thread dashboard/api/server.js Outdated
Comment thread dashboard/api/braidpool/utils/fetchbeadinfo.js Outdated
Comment thread dashboard/api/braidpool/utils/fetchbeadinfo.js Outdated
Comment thread dashboard/api/server.js Outdated
Comment thread dashboard/api/braidpool/utils/fetchbeadinfo.js
Comment thread dashboard/api/braidpool/utils/fetchbeadinfo.js Outdated
Comment thread dashboard/api/server.js
priyashuu and others added 5 commits April 13, 2026 11:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dashboard/api/server.js Outdated
Comment thread dashboard/api/server.js
Comment thread dashboard/api/server.js
Comment thread dashboard/api/server.js Outdated
Comment thread dashboard/api/braidpool/utils/fetchbeadinfo.js
Comment thread dashboard/api/braidpool/utils/fetchbeadinfo.js
Comment thread dashboard/api/braidpool/utils/fetchbeadinfo.js
Comment thread dashboard/api/braidpool/utils/fetchbeadinfo.js

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread dashboard/api/server.js
Comment thread dashboard/api/braidpool/utils/fetchbeadinfo.js
Comment thread dashboard/api/.env.example Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Sansh2356 Sansh2356 mentioned this pull request Apr 19, 2026
37 tasks
@Sansh2356 Sansh2356 linked an issue Apr 19, 2026 that may be closed by this pull request
@mcelrath mcelrath merged commit 9df3290 into dev May 8, 2026
14 checks passed
@mcelrath mcelrath deleted the backend_integration branch May 8, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API integration on top of rpc-server

3 participants