How eupston/crystalring works
Project type and purpose
• This is “CrystalRing,” an Electron-based desktop application built with React (renderer) and a Node/Electron main process, paired with a standalone Go gRPC server and MongoDB.
• Its goal is real-time, high-quality peer-to-peer audio calls using WebRTC for connection setup and gRPC for uncompressed audio streaming, with call records saved in MongoDB.
File structure
• Top-level Electron config and scripts (.erb folder, webpack configs, ESLint, packaging scripts).
• “src/” holds the Electron renderer (React, TypeScript) and main process code:
• src/main.dev.ts, src/main.prod.js (Electron entry points)
• src/App.tsx, Components, network (WebRTC client wrappers), db (Mongo connection & models)
• src/menu.ts (Electron menu)
• “proto/” and “server/” implement the gRPC service in Go:
• proto/*.proto + generated Go/JS/TS bindings
• server/server.go + services/audiostreamer/audiostreamer.go
• Packaging and build scripts for Electron, plus Go module files (go.mod, go.sum).
README for additional insights
• Confirms Electron + React desktop UI, MongoDB for persistence, WebRTC for peer discovery/connection, gRPC for audio streaming.