Skip to content
vulturelyPublic

About

Public snapshot of the VBuddy device software

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Buddy

A local Rust gateway and portable robot runtime, with encrypted storage, parent approval, offline enrolled-speaker recognition and an optional animated onion screen. Backend, device hosts, CLI tools, tests and repository quality tools are Rust. The screen uses Svelte/TypeScript for presentation.

Build and check

Install stable Rust with Clippy/rustfmt, Node.js 24, pnpm 10.25.0, Buf, native ShellCheck and shfmt, and the native compiler/OpenSSL prerequisites. No interpreter environment or generated interpreter client is required.

pnpm install --frozen-lockfile
pnpm setup:hooks
pnpm lint
pnpm verify
pnpm verify:coverage
pnpm verify:mobile

The Cargo workspace shares Cargo.lock; outputs live in ignored target/. pnpm verify checks coding rules, protobufs, isolated/combined Rust features, gateway/device/simulator/native-tooling tests, strict TypeScript/Svelte checks and production builds. Network tests use loopback and OpenSSL. Mobile compilation does not prove physical hardware support.

Native hooks run check-only against the working tree. Install hooks on each clone with pnpm setup:hooks. Lint uses Rust Clippy/rustfmt, native ShellCheck/shfmt and ESLint/Prettier. The Rust coding-rule checker rejects owned interpreter source and architectural violations.

Native devices

crates/fambuddy-device owns portable services and repositories. Linux-specific imports, dependencies, hosts and tests require both the linux feature and Linux target. android and ios compile shared logic; native phone permission/hardware integration remains separate work.

cargo build --release -p fambuddy-device --features linux
./target/release/fambuddy-device --help

The Linux adapter uses native Vosk and Piper libraries, ALSA tools, Opus and FFmpeg. Models are verified against pinned checksums; downloads require an explicit administrator command. No runtime package installation or interpreter fallback occurs. See deployment and security.

Buddy says “I am paired” once after its first authenticated gateway connection and “I am listening now” after a trusted wake phrase. Set voice_feedback to false in the existing agent configuration to disable those cues. Capture permissions, approval and mute rules remain authoritative.

With 4 GB of RAM and a license for it, Buddy answers on the Pi itself with a small pinned model (on-device AI). A child's question is only ever answered there; when it cannot be, Buddy says so and a parent decides, and may choose to ask the cloud. Every answer still needs a parent's approval before it is spoken.

The optional screen shows an animated onion and accepted/spoken conversation. It defaults off and clears private text on mute, disconnection, stale authority and idle expiry. Devices without a graphical display stay headless. Build assets with pnpm display:build.

Build and deploy on Raspberry Pi, Android and iOS

Follow the platform build/deployment guide for prerequisites, exact commands, release downloads, fresh installation and upgrades.

Platform Current output
64-bit Raspberry Pi OS Bookworm or newer Deployable ARM64 hub/device binaries, native speech libraries, screen, systemd bundle and one-command installer
Android ARM64 Portable Rust libraries; native host/FFI/permissions and APK packaging remain to be implemented
iOS ARM64/device or simulator Portable Rust libraries; native host/FFI/permissions and Xcode app packaging remain to be implemented

Build the Pi bundle on your workstation with Docker/Buildx:

bash scripts/build/build-raspberry-pi.sh
# Output: target/raspberry-pi/vbuddy-raspberry-pi-aarch64.tar.gz, fambuddy-pi.sh and SHA256SUMS

Install on any Raspberry Pi

On the Pi (64-bit Raspberry Pi OS Bookworm or newer), one command installs FamBuddy, or upgrades the one already there:

curl -fsSL https://github.com/swavan/vbuddy/releases/latest/download/fambuddy-pi.sh \
  | sudo bash -s -- --app-origin "<PARENT_APP_ORIGIN>"

Set <PARENT_APP_ORIGIN> to your parent application’s HTTPS origin (an upgrade keeps the installed one, so | sudo bash is enough; mute Buddy first). The script checks the board and OS, downloads and verifies the release (which includes the native Vosk/Piper libraries), and hands over to the Rust installer. Rust detects the LAN and hostname, installs or upgrades, and chooses the speaker, microphone, camera, kiosk screen (a connected display and at least 1 GB RAM), Wi-Fi from the screen (NetworkManager) and whether on-device AI is allowed (4 GB RAM), then prints what is on or off and why. Upgrades keep your settings unless you pass --redetect; --screen / --no-screen override the screen.

Board Gets
Pi 5 / Pi 4 / Pi 400 with 4 GB or more Voice, camera, screen when connected, on-device AI (model downloaded and verified by the installer)
Pi 5 / Pi 4 with 1–2 GB, Pi 3 B/B+, Pi 2 v1.2 Voice, camera, screen when connected
Pi Zero 2 W, Pi 3 A+ (512 MB) Voice and camera only
Pi 1, Pi 2 v1.1, Zero, Zero W Refused: 32-bit-only processors

A capable Pi on 32-bit Raspberry Pi OS is told to reinstall the 64-bit OS. Fresh installs start muted with capture off. After that, signed updates can install newer releases when a parent allows it (off by default). Flags, exit codes, redetecting hardware and uninstalling: the guide.

CI and coverage

CI runs on self-hosted, linux for PRs, pushes to main/version tags and manual dispatch. Successful main builds automatically publish versioned Raspberry Pi release assets for the one-command installer; PR builds do not publish. Feature branches use PR runs; a newer run cancels the prior run for the same branch. Tests, builds, lint and coverage are blocking. Report uploads are diagnostic, retain three days and warn if GitHub artifact storage is full.

After checks pass, Docker cross-compiles and ARM64-smoke-tests the Pi archive. v* tag builds publish the archive and checksums as GitHub release assets; PR builds validate without publishing a release; successful main builds publish automatically. The guide explains runner requirements and version tagging.

The Rust coverage gate reads LLVM JSON and the committed scope in crates/fambuddy-quality/coverage-scope.json; each file needs 90% lines and regions. Screen tests enforce 90% per file across lines, branches, functions and statements. Install cargo-llvm-cov 0.9.1 and the Rust llvm-tools-preview component. Reports are build artifacts, never source. Regions are not branch coverage.

Ownership

  • crates/fambuddy: local gateway, encrypted storage, approval policy and owned gateway contract.
  • crates/fambuddy-device: portable device services and gated native hosts.
  • crates/fambud-simulator: independent device/answer simulator.
  • crates/fambuddy-quality: native coding-rule and coverage tools.
  • devices/fambuddy: deployment units and thin native orchestration.
  • contracts/vulture-server: versioned upstream device-facing contracts.
  • vendor/vulture-chat-crypto: shared crypto snapshot with upstream provenance.

Follow AI rules, the coding guide, architecture and import provenance. Keep credentials, models, generated files and build artifacts out of commits. Vulture owns shared cloud contracts and crypto; snapshot updates require exact provenance and compatibility review.

The self-hosted Linux runner also needs ffmpeg, alsa-utils (arecord/aplay) and libopus0 for native codec/ALSA-null integration tests. CI installs missing packages through scripts/setup/setup-native-linux.sh on Debian/Ubuntu, using root or noninteractive sudo. Administrators can preinstall them when runner sudo is unavailable. These tests use synthetic input and the null audio device; they do not require a physical microphone or speaker.

About

Public snapshot of the VBuddy device software

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages