Skip to content

Conversation

@Clawue884
Copy link

Summary

This pull request introduces a unified full-stack architecture for Door by
combining backend services and frontend delivery into a single Node.js service.

The goal is to provide real-time Pi Network monitoring with a lightweight,
auditable, and easy-to-deploy structure aligned with Pi ecosystem principles.


Key Features

  • Unified Node.js server serving:
    • HTTP static frontend
    • WebSocket real-time stream
  • Real-time ledger monitoring (poll-based, read-only)
  • Live network metrics broadcast to frontend
  • Zero external frontend build dependency (Vue via CDN)
  • Simple, auditable, single-service design

Architecture

  • Backend: Node.js + TypeScript
  • Realtime: WebSocket
  • Frontend: Vue 3 (served directly by backend)
  • Pattern: Unified Full-Stack Monorepo (single service)

Files Added

  • src/server.ts – HTTP + WebSocket server
  • src/monitor.ts – Ledger polling logic
  • src/types.ts – Shared data types
  • package.json – Unified service dependencies
  • web/index.html – Realtime frontend dashboard

Motivation

This change prepares Door to evolve from a static analytics dashboard into a
real-time network intelligence tool, while keeping the codebase simple,
transparent, and easy to audit by the Pi community.


Notes

  • Read-only access (no transaction signing)
  • No protocol changes
  • Safe for public deployment

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.

1 participant