npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

conduyt-js

v0.2.1

Published

CONDUYT protocol SDK for JavaScript/TypeScript — host-side hardware control

Readme

conduyt-js

npm

CONDUYT protocol SDK for JavaScript and TypeScript. Host-side hardware control over Serial, BLE, MQTT, WebSocket, or TCP.

Install

npm install conduyt-js

Quick Start

import { ConduytDevice } from 'conduyt-js'
import { SerialTransport } from 'conduyt-js/transports/serial'

const device = await ConduytDevice.connect(
  new SerialTransport({ path: '/dev/ttyUSB0' })
)

// Pin control
await device.pin(13).mode('output')
await device.pin(13).write(1)
const value = await device.pin(A0).read('analog')

// Pin subscription (async iterable)
for await (const reading of device.pin(A0).subscribe({ mode: 'analog', intervalMs: 100 })) {
  console.log(reading)
}

await device.disconnect()

Module Usage

import { ConduytServo } from 'conduyt-js/modules/servo'

const servo = new ConduytServo(device)
await servo.attach(9)
await servo.write(90)

I2C

const i2c = device.i2c()
await i2c.write(0x3C, new Uint8Array([0x00, 0xAE]))
const data = await i2c.readReg(0x68, 0x75, 1)

API Reference

ConduytDevice

| Method | Returns | Description | |--------|---------|-------------| | ConduytDevice.connect(transport) | Promise<ConduytDevice> | Connect and run HELLO handshake | | connect() | Promise<HelloResp> | Manual connect, returns capabilities | | disconnect() | Promise<void> | Close connection | | ping() | Promise<void> | Ping/pong roundtrip | | reset() | Promise<void> | Reset device state, clear subscriptions | | pin(num) | PinProxy | Pin control object | | datastream(name) | DatastreamProxy | Datastream control object | | module(name) | ModuleProxy | Module control object | | i2c(bus?) | I2CProxy | I2C bus control | | on(event, handler) | void | Event listener |

PinProxy

| Method | Returns | Description | |--------|---------|-------------| | mode(mode) | Promise<void> | Set pin mode: 'input', 'output', 'pwm', 'analog', 'input_pullup' | | write(value) | Promise<void> | Digital/PWM write | | read(mode?) | Promise<number> | Digital or analog read | | subscribe(options) | AsyncIterable<number> | Subscribe to pin changes |

Errors

| Class | When | |-------|------| | ConduytNAKError | Device rejected a command | | ConduytTimeoutError | No response within timeout | | ConduytDisconnectedError | Transport disconnected mid-operation | | ConduytCapabilityError | Pin or feature not supported by device |

Transports

| Transport | Import | Use Case | |-----------|--------|----------| | SerialTransport | conduyt-js/transports/serial | Node.js USB/UART | | WebSerialTransport | conduyt-js/transports/web-serial | Browser Web Serial API | | BLETransport | conduyt-js/transports/ble | Bluetooth Low Energy | | MQTTTransport | conduyt-js/transports/mqtt | MQTT broker relay | | WebSocketTransport | conduyt-js/transports/websocket | WebSocket connection | | CLASPTransport | conduyt-js/transports/clasp | CLASP tunnel | | MockTransport | conduyt-js/transports/mock | Testing |

Modules

| Module | Import | Hardware | |--------|--------|----------| | ConduytServo | conduyt-js/modules/servo | Hobby servos | | ConduytNeoPixel | conduyt-js/modules/neopixel | WS2812/SK6812 LEDs | | ConduytDHT | conduyt-js/modules/dht | DHT11/DHT22 sensors | | ConduytOLED | conduyt-js/modules/oled | SSD1306 OLED displays | | ConduytStepper | conduyt-js/modules/stepper | Stepper motors | | ConduytEncoder | conduyt-js/modules/encoder | Rotary encoders | | ConduytPID | conduyt-js/modules/pid | PID controller |

Reconnection

import { ReconnectTransport } from 'conduyt-js'
import { SerialTransport } from 'conduyt-js/transports/serial'

const transport = new ReconnectTransport(
  new SerialTransport({ path: '/dev/ttyUSB0' }),
  { maxAttempts: 10, initialDelay: 500 }
)
const device = await ConduytDevice.connect(transport)

Requirements

  • Node.js >= 18.0.0
  • TypeScript >= 5.7 (optional)

License

MIT. Copyright (c) 2026 LumenCanvas.