Humans consulting HCH
Switch branches/tags
Nothing to show
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.
src
.babelrc
.eslintignore
.eslintrc
.flowconfig
.gitignore
.npmignore
.npmrc
LICENSE.md
README.md
docker-compose.yml
package.json
yarn.lock

README.md

HCH

This is an implementation of Paul Christiano's HCH in Javascript (NodeJS). It is directly based on the Python implementation of ALBA.

How to use

NPM package

If you would like to use HCH as a library, install the NPM package:

npm install --save hch  # or: yarn add hch

Manual installation

Install from Github using yarn:

git clone https://github.com/oughtinc/hch.git
cd hch
yarn
yarn add readline-sync  # If you want to run example.js
yarn run build

Then:

node build/example.js

See the ALBA README for instructions on how to interact with HCH.

Development

Open bash environment with node:

docker-compose run bash

Build and run example.js:

docker-compose run hch

Build and run example.js in debugger:

docker-compose run --service-ports debug

Run Flow type checker:

docker-compose run flow

Run ESLint:

docker-compose run eslint