Edit this page on GitHub ↗

Getting started

Requirements

The demo needs no API key and makes no network requests.

Install and run the demo

git clone https://github.com/HugoXK/janus.git
cd janus
uv sync --extra dev
uv run janus demo

Or with make:

make install
make demo

The demo walks one full loop on a toy sample:

as_of:                 2026-01-15T00:00:00+00:00
observations visible:  20 (future row excluded)
current RSI(14):       85.5
prediction:            P(up over 1M) = 0.65
prediction settled:    True
brier score:           0.1175
expected calib. error: 0.3333

The numbers demonstrate the mechanics, not skill. A future row is excluded on purpose: the as-of cut is the first thing to verify.

Open the console

uv run janus serve --port 8801
# http://127.0.0.1:8801/

The console is a no-build page: plain HTML, CSS, and JavaScript, no CDN and no bundler. It is read-only and calls only the documented /api/* routes.

The masthead carries the as of time. The left page is what was believed then; the right page is what the ledger expected next. Choosing a ticker re-reads both pages at that instant, so the date is part of the question rather than chrome around it.

Command-line quickstart

janus brief AAPL --json
janus snapshot AAPL --as-of 2026-01-02T00:00:00+00:00 --out snap.json
janus consensus import snapshot.json
janus consensus show ACME --as-of 2026-02-02T00:00:00+00:00 --metric eps --json

consensus reads take --mode published|observed; published is the default.

Run the tests

uv run pytest

A plain pip fallback

python3 -m venv .venv
. .venv/bin/activate
pip install -e ".[dev]"
janus demo

Where the data comes from

The adapter contract is small on purpose. Shipped or planned sources include Tiingo, yfinance, SEC EDGAR, FRED/ALFRED, GDELT, and RSS. Free data is the default. A missing source is a fact about the record, not an invitation to interpolate.

Next