{"id":50124396,"url":"https://github.com/buckaroo-data/buckaroo-tauri","last_synced_at":"2026-05-23T19:02:19.602Z","repository":{"id":356747832,"uuid":"1233881453","full_name":"buckaroo-data/buckaroo-tauri","owner":"buckaroo-data","description":"Tauri 2 plugin + JS adapter for embedding buckaroo (DataFrame viewer) inside a desktop app. Webview ↔ Rust IPC ↔ Python sidecar.","archived":false,"fork":false,"pushed_at":"2026-05-09T14:02:03.000Z","size":281,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-09T16:06:39.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/buckaroo-data.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-09T13:25:56.000Z","updated_at":"2026-05-09T14:02:07.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/buckaroo-data/buckaroo-tauri","commit_stats":null,"previous_names":["buckaroo-data/buckaroo-tauri"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/buckaroo-data/buckaroo-tauri","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buckaroo-data%2Fbuckaroo-tauri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buckaroo-data%2Fbuckaroo-tauri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buckaroo-data%2Fbuckaroo-tauri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buckaroo-data%2Fbuckaroo-tauri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buckaroo-data","download_url":"https://codeload.github.com/buckaroo-data/buckaroo-tauri/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buckaroo-data%2Fbuckaroo-tauri/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33408490,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T18:09:33.147Z","status":"ssl_error","status_checked_at":"2026-05-23T18:09:31.380Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-23T19:02:15.037Z","updated_at":"2026-05-23T19:02:19.592Z","avatar_url":"https://github.com/buckaroo-data.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# buckaroo-tauri\n\nEmbed [buckaroo](https://github.com/buckaroo-data/buckaroo) — a DataFrame viewer widget — inside a [Tauri 2](https://tauri.app/) desktop app.\n\n\u003e **Status: preview.** End-to-end working on macOS aarch64. Architecture validated against ~100k-row real datasets. Public API may shift before 1.0.\n\n## Architecture\n\n```\nwebview ──invoke()/listen()── Rust plugin ──ws://127.0.0.1:N── python -m buckaroo.server\n                              (this repo)                       (user-supplied)\n```\n\nThe webview never opens a WebSocket. It talks to Rust via Tauri IPC; Rust talks to a user-supplied Python sidecar over an internal localhost WebSocket. CSP, cross-origin, and firewall concerns disappear by construction.\n\n## Repository layout\n\n| Path | What | Publishes as |\n|---|---|---|\n| `crates/buckaroo-tauri/` | The Rust plugin: spawns Python, parses handshake, IPC commands, event relay, supervised restarts | `buckaroo-tauri` on crates.io |\n| `packages/buckaroo-tauri-adapter/` | TS/JS adapter — `TauriIPCModel` implementing buckaroo's `IModel` against Tauri IPC; binary parquet frame decoder | `buckaroo-tauri-adapter` on npm |\n| `examples/tauri-app/` | Minimal canonical host showing the integration | not published |\n| `docs/embedding-guide.md` | User-facing embedding guide (architecture, quick start, signing, troubleshooting) | |\n| `docs/PLAN.md` | The architectural plan — decisions, rationale, alternatives considered | |\n| `docs/SPIKE_NOTES.md` | Running log of design alternatives prototyped during the spike | |\n\n## Quick start\n\n### Prerequisites\n\n- Rust 1.77+ with `cargo`\n- Node 18+ with `pnpm`\n- A Python 3.11+ environment with buckaroo installed:\n  ```\n  pip install 'buckaroo[xorq]'   # or [pandas] / [polars]\n  ```\n\n### Run the example app\n\n```bash\ncd examples/tauri-app\npnpm install\n\n# Optional: copy the prebuilt JS bundle from your buckaroo install so the\n# example mounts the real React grid (otherwise the example shows a vanilla\n# state-display fallback).\nPY_BUCKAROO=$(python3 -c \"import buckaroo, os; print(os.path.dirname(buckaroo.__file__))\")\ncp $PY_BUCKAROO/static/tauri.js  src/tauri.js\ncp $PY_BUCKAROO/static/tauri.css src/tauri.css\n\n# Headless verification — autoload a parquet, log every stage:\nPATH=/path/to/your/venv/bin:$PATH \\\nBUCKAROO_AUTOLOAD_PARQUET=/abs/path/to/file.parquet \\\nRUST_LOG=info pnpm tauri dev\n```\n\nWhat you should see in the logs:\n\n```\n[buckaroo-tauri] sidecar start attempt=1\n[buckaroo-tauri] resolve_python: derived from `which buckaroo-server`: ...\n[buckaroo-tauri] sidecar listening on 127.0.0.1:NNNNN\n[buckaroo-tauri] autoload /load ok: session=... rows=NNN\n[buckaroo-tauri] internal WS open to ws://...\n[buckaroo-tauri] relay msg type=initial_state bytes=NNNN\n[buckaroo-tauri] relay infinite_resp + binary (NNNNN parquet bytes)\n```\n\n### Embed in your own Tauri app\n\n`Cargo.toml`:\n```toml\n[dependencies]\ntauri = \"2\"\ntauri-plugin-shell = \"2\"\nbuckaroo-tauri = \"0.13\"\n```\n\n`src-tauri/src/lib.rs`:\n```rust\nfn run() {\n    tauri::Builder::default()\n        .plugin(tauri_plugin_shell::init())\n        .plugin(buckaroo_tauri::init(buckaroo_tauri::BuckarooConfig::xorq()))\n        .run(tauri::generate_context!())\n        .expect(\"...\");\n}\n```\n\nPermission file (`src-tauri/capabilities/default.json`):\n```json\n{\n  \"permissions\": [\"core:default\", \"shell:default\", \"buckaroo-tauri:default\"]\n}\n```\n\nSee [`docs/embedding-guide.md`](docs/embedding-guide.md) for the full integration recipe including macOS hardened-runtime entitlements and Windows code-signing setup.\n\n## What needs the host buckaroo PR\n\nThe Python-side handshake contract this plugin depends on (`BUCKAROO_PORT=\u003cn\u003e` stdout line, `--stdio-control` flag, `protocol_version` field, server-mint sessionId, `buckaroo-server` console script) lands in [buckaroo PR #717](https://github.com/buckaroo-data/buckaroo/pull/717). Until that ships, point at a buckaroo install built from the PR branch.\n\n## Status / roadmap\n\nWhat works:\n- Rust plugin spawns Python via `tauri-plugin-shell`, parses handshake, supervises restarts\n- Internal WebSocket from Rust to Python; webview never sees the port\n- IPC commands: `buckaroo_health`, `buckaroo_load_path`, `buckaroo_send`, `buckaroo_pick_file` (stub)\n- Events: `buckaroo:sidecar_ready`, `buckaroo:sidecar_failed`, `buckaroo:msg`\n- Binary parquet frame pairing: `infinite_resp` JSON + binary frame combined into one event with `data_b64` injected; JS adapter decodes back to `DataView` matching `WebSocketModel`'s contract\n- Python auto-discovery via `which buckaroo-server`\n- Tauri 2 permission system properly wired\n- macOS aarch64 verified end-to-end with 100k-row real data\n\nWhat's deferred:\n- Native file dialog (`buckaroo_pick_file` is a stub; integrate `tauri-plugin-dialog`)\n- Multi-window — current state holds one WS connection; needs per-webview map\n- Auto-update wiring in the example app\n- Windows + aarch64-linux platform validation\n- Playwright CI for the example\n\nSee [`docs/SPIKE_NOTES.md`](docs/SPIKE_NOTES.md) for alternatives considered, including approaches to the deferred items.\n\n## License\n\nBSD-3-Clause. Same as buckaroo.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuckaroo-data%2Fbuckaroo-tauri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuckaroo-data%2Fbuckaroo-tauri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuckaroo-data%2Fbuckaroo-tauri/lists"}