@odiak/progress-monitor

Simple progress monitor for any programs

Usage no npm install needed!

<script type="module">
  import odiakProgressMonitor from 'https://cdn.skypack.dev/@odiak/progress-monitor';
</script>

README

Progress Monitor

This is a simple tool that visualize progress of any program on browser.

Example

How to use

# Install
npm install -g @odiak/progress-monitor

# Execute with pipe
your-program | progress-monitor

# Open printed URL on your browser to see progress

All you need to do is let your program to print JSON in one line on each step of process.

Format of JSON to output is here and here is its example below (they're pretty printed, but actual JSON must be one-line):

{
  "variant": "experiment 1",
  "metric": "error",
  "value": { "test": 0.0321, "train": 0.0188 },
  "epoch": 11,
  "n_epochs": 400
}
{
  "variant": "experiment 1",
  "metric": "time",
  "value": 0.313,
  "epoch": 11,
  "n_epochs": 400
}

License

MIT