HuggingFaceH4/harbor-visualiser

Space

3

stars

17

commits

1

linked in READMEs

May 28, 2026

updated

docker

README

πŸ€— Hugging Face Harbor Visualiser

A FastAPI Space for browsing Harbor task spec directories β€” the dataset format used by Harbor for agent evaluation + RL environments.

Drop in a Hugging Face dataset id, a GitHub repo, or a local Harbor dataset directory; the viewer renders every task's metadata, instruction, oracle patch, test script, and Dockerfile side-by-side. Large datasets (2k+ tasks) list and open instantly β€” task ids come from a shallow Hub listing and only the opened task's files are fetched, so nothing is bulk-downloaded.

Use it

Open the Space and paste a dataset URI in the input box.

Prefill via URL param:

https://huggingface.co/spaces/AdithyaSK/harbor-visualiser?dataset=<owner>/<dataset>

Inputs accepted:

FormSource
owner/nameHF Hub dataset (default)
hf://owner/nameHF Hub (explicit)
hf://owner/name@<rev>HF Hub revision pin
gh://owner/repoGitHub repo
gh://owner/repo@<ref>GitHub at branch / tag / SHA
https://github.com/owner/repoFull GitHub URL

Run locally

pip install -r requirements.txt
uvicorn app:app --port 7860
# β†’ http://127.0.0.1:7860

What it shows per task

TabSource file
Overviewparsed task.toml ([task], [metadata]) + [metadata.repo2env] if present
Instructioninstruction.md
Patch (oracle)solution/patch.diff
test.shtests/test.sh
Dockerfileenvironment/Dockerfile
solve.shsolution/solve.sh (when present)
Raw task.tomlfull file

Dataset layout it expects (Harbor's standard)

Either of these:

# Layout A β€” flat (what Repo2RLEnv emits + most git repos use)
<dataset-root>/
β”œβ”€β”€ <task-id>/
β”‚   β”œβ”€β”€ task.toml
β”‚   β”œβ”€β”€ instruction.md
β”‚   β”œβ”€β”€ solution/
β”‚   β”‚   β”œβ”€β”€ patch.diff
β”‚   β”‚   └── solve.sh
β”‚   β”œβ”€β”€ tests/test.sh
β”‚   └── environment/Dockerfile
└── <task-id>/...

# Layout B β€” nested (what `repo2rlenv push` stages on the Hub)
<dataset-root>/
β”œβ”€β”€ registry.json
β”œβ”€β”€ README.md
└── tasks/
    └── <task-id>/
        └── ... (same as Layout A)

Stack

  • FastAPI + uvicorn β€” server
  • Vanilla-JS single-page UI (hash-routed) with a Hugging Face theme
  • huggingface_hub β€” Hub listing + per-task download
  • git (system binary) β€” GitHub clone
  • Python stdlib tomllib β€” task.toml parsing

Contributors

HuggingFaceH4/harbor-visualiser

Space

3

stars

17

commits

1

linked in READMEs

May 28, 2026

updated

docker

README

πŸ€— Hugging Face Harbor Visualiser

A FastAPI Space for browsing Harbor task spec directories β€” the dataset format used by Harbor for agent evaluation + RL environments.

Drop in a Hugging Face dataset id, a GitHub repo, or a local Harbor dataset directory; the viewer renders every task's metadata, instruction, oracle patch, test script, and Dockerfile side-by-side. Large datasets (2k+ tasks) list and open instantly β€” task ids come from a shallow Hub listing and only the opened task's files are fetched, so nothing is bulk-downloaded.

Use it

Open the Space and paste a dataset URI in the input box.

Prefill via URL param:

https://huggingface.co/spaces/AdithyaSK/harbor-visualiser?dataset=<owner>/<dataset>

Inputs accepted:

FormSource
owner/nameHF Hub dataset (default)
hf://owner/nameHF Hub (explicit)
hf://owner/name@<rev>HF Hub revision pin
gh://owner/repoGitHub repo
gh://owner/repo@<ref>GitHub at branch / tag / SHA
https://github.com/owner/repoFull GitHub URL

Run locally

pip install -r requirements.txt
uvicorn app:app --port 7860
# β†’ http://127.0.0.1:7860

What it shows per task

TabSource file
Overviewparsed task.toml ([task], [metadata]) + [metadata.repo2env] if present
Instructioninstruction.md
Patch (oracle)solution/patch.diff
test.shtests/test.sh
Dockerfileenvironment/Dockerfile
solve.shsolution/solve.sh (when present)
Raw task.tomlfull file

Dataset layout it expects (Harbor's standard)

Either of these:

# Layout A β€” flat (what Repo2RLEnv emits + most git repos use)
<dataset-root>/
β”œβ”€β”€ <task-id>/
β”‚   β”œβ”€β”€ task.toml
β”‚   β”œβ”€β”€ instruction.md
β”‚   β”œβ”€β”€ solution/
β”‚   β”‚   β”œβ”€β”€ patch.diff
β”‚   β”‚   └── solve.sh
β”‚   β”œβ”€β”€ tests/test.sh
β”‚   └── environment/Dockerfile
└── <task-id>/...

# Layout B β€” nested (what `repo2rlenv push` stages on the Hub)
<dataset-root>/
β”œβ”€β”€ registry.json
β”œβ”€β”€ README.md
└── tasks/
    └── <task-id>/
        └── ... (same as Layout A)

Stack

  • FastAPI + uvicorn β€” server
  • Vanilla-JS single-page UI (hash-routed) with a Hugging Face theme
  • huggingface_hub β€” Hub listing + per-task download
  • git (system binary) β€” GitHub clone
  • Python stdlib tomllib β€” task.toml parsing

Contributors