Skip to content
A TypeScript implementation of the JACDAC protocol
TypeScript HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
debug
jacdac
node
samples
tools
utils
webusb
.gitignore
.travis.yml
LICENSE
README.md
package.json
server.js

README.md

JACDAC TypeScript Layer Build Status

This library is a TypeScript implementation of the JACDAC (Joint Asynchronous Communications; Device Agnostic Control) protocol.

Live Demos

Samples

Simply open the sample from disk in a WebUSB enabled browser.

  • /samples/console.html - logs all JACDAC console messages to the JavaScript console
  • /samples/device-list.html - displays the current list of devices

Use chrome://device-log/ to see the WebUSB log on your device.

Building jacdac-ts

Builds require node and npm, these must be installed prior to use.

Within jacdac-ts there are a number of sub projects that can be optionally built.

  1. jacdac – the core files for the jacdac control layer
  2. webusb - a webusb interface for consuming messages via usb from a JACDAC device.
  3. debug - debug views for decoding packets from services, and the debug service used to introspect packets sent on the bus.
  4. node - a node interface to ajcdac-ts that uses Web sockets to simulate the jacdac bus.
  5. samples - simple samples that use the deployed jacdac libraries to operate.
  6. tools - project folders for the web based JACDAC debugger and device configurer.

jacdac-ts

To build the entirety of jacdac-ts, run the following build steps from the root directory:

  • npm install
  • npm run build

Node test library

To build and run the node based jacdac test suite, run the following build steps from ./node:

npm install
npm run build
npm run tests

NPM

npm install --save @jacdac/jacdac-ts

publishing

npm install
npm version patch
git push origin master
npm run build
npm publish

Use in Browser

Various services provide a CDN cache over NPM.

jsDelivr

// latest version
https://cdn.jsdelivr.net/npm/@jacdac/jacdac-ts/built/jacdac.js
// specific version (0.0.6)
https://cdn.jsdelivr.net/npm/@jacdac/jacdac-ts@0.0.6/built/jacdac.js

License

MIT

You can’t perform that action at this time.