Skip to content

Haxroomie is an API and CLI to run headless HaxBall rooms without GUI.

Notifications You must be signed in to change notification settings

morko/haxroomie

Repository files navigation

haxroomie

Discord

Haxroomie is set of tools run headless HaxBall rooms without GUI.

Rooms can be run

With haxroomie you can

  • run rooms without desktop environment
  • run multiple rooms with ease
  • use a modular plugin manager made by saviola
  • monitor and control rooms from command line
  • use the API to create an interface to run rooms

If you are looking to how to run rooms in your VPS then you probably want haxroomie-cli.

This repository is a monorepo containing the main API haxroomie-core and interfaces using the API.

Links

Contributing and Development

  1. Clone/fork the repository.
  2. Install main dependencies
npm install
  1. Install dependencies and create links between the subpackages (handled by lerna).
npm run bootstrap
  1. haxroomie-cli can be run from projects root.
npm start

I accept well documented pull request to master branch.

Debugging

To enable more extensive logging for development, you can set environment variable NODE_ENV=development.

For even more extensive logging you can enable Puppeteers debug logs by setting environment variable DEBUG="puppeteer:*". See more about debugging puppeteer at https://developers.google.com/web/tools/puppeteer/debugging.

Version Control

Development is done on the master branch and publishing to npm is also done from master. If major update happens, then the old version will be branched and new version will continue as master. Feature branches are highly engouraced.

Running tests

Tests can be ran with npm test in the projects root, but they require a token for the HaxBall room. The token(s) is loaded from environmental variables. e.g.

HR_TEST_TOKEN1="thr1.AAAAAF3nhJtzT2JftBYPmA.gBZ2x1ST7HU"
HR_TEST_TOKEN2="thr1.AAAAAF3nlPdWTSwonQ8zXw.KUYmmWsmPysfdaQ"

Currently you only need one test token, but in the future there might be some tests for multiple rooms.

Publishing

Publishing to npm is handled by lerna can be done with

npm run publish

This will build docs, format the JavaScript using linter, bump versions and publish all packages under ./packages.

About

Haxroomie is an API and CLI to run headless HaxBall rooms without GUI.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •