@bridgething/client
v0.12.1
Published
Typed client SDK a bridgething webapp uses to talk to the on-device daemon on a Spotify Car Thing.
Maintainers
Readme
@bridgething/client
The SDK a bridgething webapp uses to talk to the daemon on a Spotify Car Thing.
bun add @bridgething/clientimport { BridgethingClient } from '@bridgething/client';
const client = new BridgethingClient();
client.player.onSnapshot(msg => render(msg.state));
client.player.skipNext();The client connects on construction and reconnects on its own. Every method has hover docs.
@bridgething/client/settings is the API for a webapp's settings page, which
runs in the companion app or the desktop app:
import { settings } from '@bridgething/client/settings';
await settings.config.set('city', 'Detroit');Scaffold a webapp with the client preinstalled:
bun create bridgething my-app