Skip to main content

index-browser

Turn any directory of files into an interactive 3D index.html for the files: talks, papers, figures and media. Folders are wireframe cubes that fan out into their files when clicked. Click a file to open it in a new tab. A side panel adds search, type filters and a plain list.

Made for static hosting such as GitHub Pages: one self-contained HTML file, no build step, and no runtime dependencies (three.js loads from a CDN).

pip install index-browser          # or: uv tool install index-browser / pipx install index-browser

cd my-site/public
index-browser                      # writes ./index.html for everything below .
index-browser --serve              # …and previews it at http://127.0.0.1:8000

Live example: https://matplo.github.io/publix/

What you get

  • A tree you fly through (three.js). Folders are wireframe cubes and files are square outlines, coloured by type. The top-level folders sit on a common surface around the root. Click a folder and its contents fan out in a plane perpendicular to the one it sits in, pointing away from the centre, and the camera flies to face it. Sub-folders fan out again, at right angles to their parent.
  • Stays fast with thousands of files. Every cube and square is drawn in two instanced draw calls, and only the labels that matter (the open folder, its path, its files) are on screen.
  • Side panel with live search (/ to focus), type filters (HTML · PDF · Image · Video · …), and sizes and dates. It stays in sync with the 3D view.
  • Deep links. index.html#talks/2026 opens with that folder unfolded.
  • Graceful fallbacks. Without WebGL you get a plain list. With JavaScript off you get a static <ul> of links. The page honours prefers-reduced-motion, and on a phone the panel becomes a bottom sheet.
  • Dates from git. Inside a git repo each file shows its last commit date (works in CI, where file times are meaningless). Otherwise it uses modification times.

Usage

index-browser [DIR] [-o FILE] [-t TITLE] [-x GLOB ...] [--link URL] [--fresh] [--check] [--serve]
option
DIR directory to index (default .)
-o, --output FILE where to write the page (default DIR/index.html)
-t, --title TITLE page title (default: the directory's name)
-x, --exclude GLOB skip names or DIR-relative paths matching GLOB (repeatable). Dot-files, __pycache__ and node_modules are always skipped
--link URL / --link-text a link in the panel footer, e.g. your repo
--no-git use modification times, not commit dates
--fresh rewrite the page from the bundled template (see below)
--check write nothing; exit 1 if the page is missing or stale
--serve [--port N] serve DIR locally after building

Re-running and hand edits

The page has three generated regions: the <title>, a JSON data block and the no-JS list. Re-running index-browser rewrites only those, so you can restyle the page by hand and keep refreshing it. After upgrading index-browser, run with --fresh to pick up the new page design; this discards hand edits. index-browser never overwrites an index.html it didn't create unless you pass --fresh.

GitHub Pages

Generate the index in the deploy workflow so it never goes stale:

      - uses: actions/checkout@v4
        with:
          fetch-depth: 0            # full history → per-file commit dates
      - run: pipx run index-browser public --link "https://github.com/${{ github.repository }}"
      - uses: actions/upload-pages-artifact@v3
        with:
          path: ./public

Python API

from index_browser import build

res = build("public", title="Talks", excludes=["drafts/*"])
print(res.output, res.files, res.changed)

License

MIT

Metadata

Release files for index-browser 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for index-browser 0.2.0
File Size Uploaded Provenance Actions
index_browser-0.2.0.tar.gz 26.2 kB With provenance Details for index_browser-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for index-browser 0.2.0
File Interpreter ABI Platform Actions
index_browser-0.2.0-py3-none-any.whl Python 3 none any Details for index_browser-0.2.0-py3-none-any.whl

Total release size: 53.0 kB

Release files / index_browser-0.2.0.tar.gz

Download URL index_browser-0.2.0.tar.gz
Size 26.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b995dcce086ff04a64accf37c73545914848fd7b86077cde0a44d8177e797092
BLAKE2b-256 checksum
How to use checksums
d4e8866e66389d7b0fab502079fe56840ed18fe3e79c18e5410f1427faf5382d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / index_browser-0.2.0-py3-none-any.whl

Download URL index_browser-0.2.0-py3-none-any.whl
Size 26.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8f45c47c266dc1b318eae558cc81bfa4d188e91433be2eecd3437fbe55576802
BLAKE2b-256 checksum
How to use checksums
0e7387608172173d9cd3c44f7c68c642deb31fcb2b36f0683710a0d2b5c79ee3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for index-browser 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for index_browser-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page