Registry / http-networking / client

client

JSON →
library0.0.1jsnpmunverified

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.

npm install client
INSTALL
IMPORT
SIG · CLIENT
C
client
http-networkingjavascriptv0.0.1
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Client
const Client = require('client')
import Client from 'client'
Package does not support ESM; CommonJS only.
Client
const { Client } = require('client')
const client = require('client')
Default export is not the Client class; destructure to get it.
config
const { config } = require('client')
const config = require('client/config')
No submodule exports; config is exported from main.

Shows how to require the package, instantiate the client, connect, and send periodic data.

const { Client, config } = require('client'); const client = new Client({ apiKey: process.env.API_KEY ?? '' }); client.connect() .then(() => console.log('Connected')) .catch(err => console.error(err)); setInterval(() => client.send({ temp: 22.5 }), 5000);
Debug
Known issues
gotchaPackage is in early development (pre-1.0.0) — API may change without notice.
fix
Pin to exact version and expect breaking changes.
affects: 0.0.1
breakingRequires Node.js 12+ (engines field is *, but actually needs ES2017 features).
fix
Use Node.js 12 or newer; older versions may fail with syntax errors.
affects: >=0.0.1
gotchaNo default export; must use named exports const { Client } = require('client').
fix
Use destructuring or require('client').Client.
affects: >=0.0.1
gotchaOn Raspberry Pi, GPIO access requires running as root or with sudo.
fix
Run script with sudo or add user to gpio group.
affects: >=0.0.1
Errors
Common errors & fixes
Cannot find module 'client'
Package not installed or installed globally without local node_modules.
fix
Run npm install client --save in project directory, or check NODE_PATH.
TypeError: client.connect is not a function
Using default import instead of named import for Client class.
fix
Use const { Client } = require('client') instead of const Client = require('client').
Error: EACCES: permission denied, open '/sys/class/gpio/export'
User lacks permission to access GPIO on Raspberry Pi.
fix
Run script with sudo, or add user to gpio group and reboot.
Upgrade
Version history
0.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
client — npm install client · libregistry