@chrysalis-api/focus

0.0.15 • Public • Published

@chrysalis/focus

This is the heart of the Chrysalis libraries, the one thing that binds everything together. It implements the Focus protocol used by Kaleidoscope for bi-directional communication, and on top of that, it provides hooks and methods to build complex applications on top.

import Focus from "@chrysalis/focus";
import { Model01 } from "@chrysalis/hardware-keyboardio-model01";

let focus = new Focus();
focus.open(Model01).then(() => {
  focus.command("help").then((response) => {
    console.log(response);
  });
});

Readme

Keywords

Package Sidebar

Install

npm i @chrysalis-api/focus

Weekly Downloads

3

Version

0.0.15

License

GPL-3.0-only

Unpacked Size

16.3 kB

Total Files

8

Last publish

Collaborators

  • algernon