Langsung ke konten
Skillpedia
API & server (backend)102k Β· #855

ruview-cli-api

Fungsinya

Skill ini menunjukkan cara memakai alat command line RuView, API web-nya, dan versi browser-nya. Skill ini ditujukan bagi developer yang ingin membuat skrip untuk RuView atau menghubungkannya ke perangkat lunak lain.

Kapan dipakai

  • βœ“Saat Anda ingin menjalankan perintah RuView dari skrip atau terminal.
  • βœ“Saat program lain perlu membaca data RuView melalui HTTP.
  • βœ“Saat Anda ingin menjalankan RuView di dalam browser web.

Link skill

https://github.com/ruvnet/RuView/blob/main/plugins/ruview/skills/ruview-cli-api/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/ruvnet/RuView/blob/main/plugins/ruview/skills/ruview-cli-api/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œTunjukkan cara memanggil API RuView dari aplikasi saya agar saya bisa membaca hasil sensing terbaru.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill mendaftar subperintah command line beserta opsinya, lalu menunjukkan cara menjalankan layanan API dan tempat build browser cocok. Setiap opsi disertai deskripsi singkat dan contoh perintah.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

RuView CLI, API & WASM

The programmatic surfaces of RuView β€” the wifi-densepose binary, the HTTP API, and the WebAssembly builds.

1. The wifi-densepose CLI binary (wifi-densepose-cli)

cd v2
cargo run -p wifi-densepose-cli -- --help        # or: cargo build -p wifi-densepose-cli --release  β†’ target/release/wifi-densepose
cargo run -p wifi-densepose-cli -- version

Top-level subcommands: version, and mat (Mass Casualty Assessment Tool).

wifi-densepose mat … β€” disaster survivor detection

Subcommand Purpose Key flags
mat scan [zone] Start scanning for survivors --disaster-type <…>, --sensitivity 0.0–1.0, --max-depth <m>, --continuous, --interval <ms>, --simulate
mat status Current scan status --detailed, --format <…>, --watch
mat zones … Manage scan zones zones list [--active-only], plus add/remove/update
mat survivors List detected survivors with triage status
mat alerts View / manage alerts
mat export Export scan data JSON or CSV

Example:

cargo run -p wifi-densepose-cli -- mat scan rubble-A --disaster-type earthquake --sensitivity 0.7 --max-depth 5 --continuous --interval 2000
cargo run -p wifi-densepose-cli -- mat survivors --format json
cargo run -p wifi-densepose-cli -- mat export --format csv > survivors.csv

Use --simulate for testing without hardware. Background and user guide: docs/wifi-mat-user-guide.md, wifi-densepose-mat crate.

2. REST API (wifi-densepose-api, Axum)

Library crate (v2/crates/wifi-densepose-api/src/lib.rs) β€” the Axum router/handlers; configured via the wifi-densepose-config crate. It's wired into the server binaries (e.g. the sensing server / Docker image), not a standalone cargo run target by itself.

# Easiest way to exercise it: the Docker image exposes the API + dashboard on :3000
docker run -p 3000:3000 ruvnet/wifi-densepose:latest
# Then hit the HTTP endpoints (see the API module / docs for routes) and open http://localhost:3000

# v1 Python service config reference: example.env, pyproject.toml (archive/v1/)

When embedding the API crate in your own binary, take the router from wifi_densepose_api, supply config via wifi-densepose-config, and serve with Axum/Tokio. Keep input validation at the boundary (project rule).

3. WASM / browser & ESP32-WASM3

  • wifi-densepose-wasm β€” compiles the stack to wasm32-unknown-unknown with a JS-friendly API:
    cd v2/crates/wifi-densepose-wasm
    wasm-pack build --target web --features mat        # recommended (produces pkg/)
    cargo build --target wasm32-unknown-unknown --features mat   # plain cargo build
    
    See v2/crates/wifi-densepose-wasm/README.md for the exported surface.
  • wifi-densepose-wasm-edge β€” 60 edge modules (609 tests) that compile to wasm32-unknown-unknown and run on ESP32-S3 via WASM3; shared utils in src/vendor_common.rs. These are the ADR-041 edge-intelligence modules in WASM form.
  • Browser demos: pose-fusion (ADR-059), point-cloud (ADR-094) β€” deployed via GitHub Pages from the WASM build.

4. Where it fits

You want to… Use
Script a survivor scan / export results wifi-densepose mat …
Expose sensing over HTTP wifi-densepose-api (via a server binary / Docker)
Run sensing in a browser wifi-densepose-wasm β†’ wasm-pack build --target web
Run an edge module on an ESP32 in WASM wifi-densepose-wasm-edge + WASM3
A long-running CSI sink + training wifi-densepose-sensing-server (see ruview-applications / ruview-model-training)

Reference

  • Crates: wifi-densepose-cli, wifi-densepose-api, wifi-densepose-config, wifi-densepose-wasm, wifi-densepose-wasm-edge, wifi-densepose-mat
  • ADRs: 041 (edge modules), 059 (live ESP32 pipeline), 094 (point-cloud GitHub Pages)
  • docs/wifi-mat-user-guide.md, docs/edge-modules/, docs/security-audit-wasm-edge-vendor.md
  • Validate after changes: cd v2 && cargo test -p wifi-densepose-cli -p wifi-densepose-api -p wifi-densepose-wasm --no-default-features
Pertanyaan umum

Apa itu perintah mat?

Itu adalah bagian Mass Casualty Assessment dari command line, yang memulai pemindaian, mendaftar zona, dan mengekspor data.

Apakah perlu Rust terpasang?

Contohnya menjalankan command line melalui cargo, jadi alat Rust diperlukan untuk contoh tersebut.

Bisakah saya mengekspor data pemindaian?

Bisa. Skill menunjukkan subperintah ekspor yang menghasilkan JSON atau CSV.

Detail

Deskripsi asli dari pembuat

Use the RuView `wifi-densepose` CLI binary (incl. MAT scan/status/zones/survivors/alerts/export subcommands), the REST API (`wifi-densepose-api`, Axum), and the browser/WASM build (`wifi-densepose-wasm`, `wifi-densepose-wasm-edge`). Use when integrating RuView into another program, scripting it from the shell, exposing it over HTTP, or shipping it to the browser / ESP32-WASM3.

repo: ruvnet/RuView

Popularitas

Bintang GitHub
102k
Peringkat
#855
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa