Runtime example
Use the Runtime package (@hangtime/grip-connect-runtime) from Node.js, Bun, or Deno for scripts, data logging, or headless testing.
Source
Stack
Pattern
- Import
FrezDynofrom@hangtime/grip-connect-runtime. - Create the device, set
notify()(and optionallyactive()). - Connect, stream, and call
download()to save the captured session. - Run the script on a machine with Bluetooth and a paired/supported device.
See Platforms: Runtime for install and usage notes, or Platforms: CLI for the ready-made command-line tool.
Run
From the repo root:
sh
npm install
cp examples/runtime/.env.example examples/runtime/.env
# Add FREZ_ACCESS_KEY to .env.
npm run start --workspace ./examples/runtimeEnsure Bluetooth is available and the device is in range.