Skip to content

Web dashboard: live map + message stream + per-mode counters (--http)#103

Merged
kevinelliott merged 1 commit into
masterfrom
web-dashboard
Jun 12, 2026
Merged

Web dashboard: live map + message stream + per-mode counters (--http)#103
kevinelliott merged 1 commit into
masterfrom
web-dashboard

Conversation

@kevinelliott

Copy link
Copy Markdown
Contributor

What

Task #40 — the second half of the platform pair: --http 0.0.0.0:8080 (any command, or http = in the station config) serves a built-in live dashboard:

  • dark Leaflet map of decoded aircraft (Mode S positions, callsign, alt/speed/squawk, heading-rotated markers) and vessels (AIS, COG-rotated)
  • streaming message panel + per-mode counters
  • page embedded in the binary; one hand-rolled endpoint pair (/, /api/state) following the Prometheus-exporter pattern — no web framework dependency

Security: CDN assets are SRI-pinned (hashes verified against unpkg at build time of this PR); RF-sourced strings (callsigns, vessel names — attacker-controllable over the air) are HTML-escaped before any DOM context.

Tested

Station-mode integration: ADS-B + AIS file replay → /api/state serves the real aircraft (AMC421, full kinematics) and Sacramento AIS base stations with positions; HTML page serves. Full workspace + bench gates green.

Pairs with #102 for the v0.15.0 platform release.

🤖 Generated with Claude Code

Built-in HTTP dashboard (the tar1090 / AIS-catcher-viewer experience,
for every mode at once): a dark Leaflet map of decoded aircraft
(Mode S positions, callsign, altitude/speed/squawk, heading-rotated
markers) and vessels (AIS, COG-rotated), a streaming message panel,
and per-mode totals. Available as --http on every command and http=
in the station config.

- Page embedded in the binary; one hand-rolled HTTP endpoint
  (the Prometheus-exporter pattern): GET / and GET /api/state
- CDN assets SRI-pinned (hashes verified against unpkg);
  RF-sourced strings (callsigns, vessel names) HTML-escaped
- Entities expire after 5 minutes silent; 200-message ring

Integration-tested via station mode: ADS-B + AIS file replay ->
/api/state serves the real aircraft (AMC421 with full kinematics)
and AIS base stations with positions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 12, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@kevinelliott, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 46 minutes and 30 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: cc066420-56b2-4d7c-9ece-e89bf51fe88f

📥 Commits

Reviewing files that changed from the base of the PR and between c50dd15 and dddd0d0.

📒 Files selected for processing (10)
  • README.md
  • contrib/station.example.toml
  • src/commands/scan.rs
  • src/commands/station.rs
  • src/commands/survey.rs
  • src/main.rs
  • src/outputs/assets/dashboard.html
  • src/outputs/http.rs
  • src/outputs/mod.rs
  • src/runtime.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch web-dashboard

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dddd0d0fae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/main.rs
Comment on lines +132 to +135
/// Serve the live web dashboard (map of decoded aircraft/vessels
/// + message stream) on this address (e.g. 0.0.0.0:8080)
#[arg(long)]
http: Option<String>,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Wire --http through extern

Because OutputOpts is flattened into Command::Extern, this new flag is now accepted for xng extern --http ..., but src/commands/extern_cmd.rs::run still only starts console/jsonl/UDP/asf2 tasks and never consumes outputs.http. In that command the dashboard is silently ignored even though the CLI and README advertise --http as an output option, so users wrapping external decoders get no listener or error.

Useful? React with 👍 / 👎.

@kevinelliott kevinelliott merged commit 9b65978 into master Jun 12, 2026
3 checks passed
@kevinelliott kevinelliott deleted the web-dashboard branch June 12, 2026 19:45
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