22 lines
747 B
Markdown
22 lines
747 B
Markdown
|
|
# Example 06: Observer Dashboard
|
||
|
|
|
||
|
|
Spins up a Shade prekey server with the observer attached, runs Alice ↔ Bob conversations in a loop, and serves the dashboard at `http://localhost:3901/dashboard/`.
|
||
|
|
|
||
|
|
## Run
|
||
|
|
|
||
|
|
```bash
|
||
|
|
cd packages/shade-dashboard && bun run build # build the SPA once
|
||
|
|
cd ../../examples/06-observer-dashboard
|
||
|
|
bun run main.ts
|
||
|
|
```
|
||
|
|
|
||
|
|
Then open `http://localhost:3901/dashboard/` and enter the bearer token printed in the console.
|
||
|
|
|
||
|
|
## What you'll see
|
||
|
|
|
||
|
|
- Identity card with the demo's fingerprint
|
||
|
|
- Live session between Alice and Bob with message counters incrementing
|
||
|
|
- Recent activity feed showing every X3DH handshake, encryption, and ratchet step
|
||
|
|
- Prekey stock decreasing as Alice consumes them
|
||
|
|
- Server stats updating in real time
|