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 glass 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 small glass cubes and files are thin translucent tiles, 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 tens of thousands of files. Nothing is built until it is needed: the 3D view only sets up what is inside open folders, and the panel builds a folder's rows the first time it is opened. All cubes and all tiles are two instanced draw calls whose animation runs on the GPU, and only the labels that matter (the open folder, its path, its files) are on screen. Tested on a tree of 34,000 files in 2,900 folders.
  • 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.
  • Light and dark themes. The page follows the viewer's system setting, and a toolbar button switches between them (the choice is remembered). --theme sets the default.
  • 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] [--theme T] [--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
--theme auto|light|dark default theme for viewers who haven't picked one with the toggle (default auto: follow the system)
--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 four generated regions: the <title>, the theme tag, 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.4.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.4.0
File Size Uploaded Provenance Actions
index_browser-0.4.0.tar.gz 30.2 kB With provenance Details for index_browser-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 60.8 kB

Release files / index_browser-0.4.0.tar.gz

Download URL index_browser-0.4.0.tar.gz
Size 30.2 kB
Tags Source
SHA-256 checksum
How to use checksums
69628dc52c087bff2fd9addc4c1f601d335787e536a8fe6d0a1cb8821a91fa06
BLAKE2b-256 checksum
How to use checksums
019dc3129a0d09223550008536b04107ac9e133d055a612150f8146f72ec4866
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.4.0-py3-none-any.whl

Download URL index_browser-0.4.0-py3-none-any.whl
Size 30.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
789bfe88a5e1092ae199a1967ad7cd5e9b20f28ab0c10403c1d9c0268fa3761a
BLAKE2b-256 checksum
How to use checksums
aa1999340a7d071cd0073f0eec9e32813db8a67b1dc4daad3143c6ec75730995
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.4.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.4.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