{"id":18221,"library":"client","title":"Continuum Bridge Client","description":"The Continuum Bridge Client package is a development library for Raspberry Pi devices interacting with the Continuum Bridge platform (stable version 0.0.1, early development stage). It provides tools to interface with bridge components, handling communication and data exchange. Differentiators include minimal dependencies and direct Raspberry Pi GPIO integration. Release cadence is irregular as it's a prototype. Alternatives include platform-specific SDKs like AWS IoT or Azure IoT Edge.","status":"active","version":"0.0.1","language":"javascript","source_language":"en","source_url":"git://github.com/ContinuumBridge/client","tags":["javascript"],"install":[{"cmd":"npm install client","lang":"bash","label":"npm"},{"cmd":"yarn add client","lang":"bash","label":"yarn"},{"cmd":"pnpm add client","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Package does not support ESM; CommonJS only.","wrong":"import Client from 'client'","symbol":"Client","correct":"const Client = require('client')"},{"note":"Default export is not the Client class; destructure to get it.","wrong":"const client = require('client')","symbol":"Client","correct":"const { Client } = require('client')"},{"note":"No submodule exports; config is exported from main.","wrong":"const config = require('client/config')","symbol":"config","correct":"const { config } = require('client')"}],"quickstart":{"code":"const { Client, config } = require('client');\nconst client = new Client({ apiKey: process.env.API_KEY ?? '' });\nclient.connect()\n  .then(() => console.log('Connected'))\n  .catch(err => console.error(err));\nsetInterval(() => client.send({ temp: 22.5 }), 5000);","lang":"javascript","description":"Shows how to require the package, instantiate the client, connect, and send periodic data."},"warnings":[{"fix":"Pin to exact version and expect breaking changes.","message":"Package is in early development (pre-1.0.0) — API may change without notice.","severity":"gotcha","affected_versions":"0.0.1"},{"fix":"Use Node.js 12 or newer; older versions may fail with syntax errors.","message":"Requires Node.js 12+ (engines field is *, but actually needs ES2017 features).","severity":"breaking","affected_versions":">=0.0.1"},{"fix":"Use destructuring or require('client').Client.","message":"No default export; must use named exports const { Client } = require('client').","severity":"gotcha","affected_versions":">=0.0.1"},{"fix":"Run script with sudo or add user to gpio group.","message":"On Raspberry Pi, GPIO access requires running as root or with sudo.","severity":"gotcha","affected_versions":">=0.0.1"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run npm install client --save in project directory, or check NODE_PATH.","cause":"Package not installed or installed globally without local node_modules.","error":"Cannot find module 'client'"},{"fix":"Use const { Client } = require('client') instead of const Client = require('client').","cause":"Using default import instead of named import for Client class.","error":"TypeError: client.connect is not a function"},{"fix":"Run script with sudo, or add user to gpio group and reboot.","cause":"User lacks permission to access GPIO on Raspberry Pi.","error":"Error: EACCES: permission denied, open '/sys/class/gpio/export'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}