Skip to main content

GitHub-like local file viewer built with Flask

Project description

HubView — GitHub‑like file viewer (Flask)

A clean, fast, local file viewer with a GitHub‑style UI. Browse folders, preview code with syntax highlighting, render Markdown (tables, task lists, admonitions), show images/video/audio/PDF, and even draw Mermaid diagrams via fenced blocks.

https://github.com/ (UI inspiration only)

TODO

  1. Instructions on running: hubview
    1. 251204

Example Run Code

from hubview import app
app.create_hub(
    root='./',
    host='0.0.0.0',
    port=3000,
    script_ex='.venv/bin/python',
    script_path='./',
    script_log='log.log'
)

Or:

in terminal, type: hubview

Quick start

  1. pip install hubview
  2. hubview --root 'your directory'
  3. open http://127.0.0.1:5000 in your browser.

Features

  • 🗂️ Directory browsing with breadcrumbs
  • 📝 Markdown rendering with pymdown-extensions (tables, details, tasklists, emoji, etc.)
  • 🧠 Mermaid diagrams via fenced blocks:
    mermaid</code> … <code>
  • 🎨 Client-side syntax highlighting using highlight.js
  • 🖼️ Photo/image preview, plus audio/video and PDF embeds
  • 📖 Auto-render README.md (or index.md) at the bottom of each directory
  • 🛡️ Path safety (jailed to a root folder)
  • 🌗 Looks good in light and dark

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hubview-0.7.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hubview-0.7-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file hubview-0.7.tar.gz.

File metadata

  • Download URL: hubview-0.7.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for hubview-0.7.tar.gz
Algorithm Hash digest
SHA256 4fde6dcf932d6dd53570b24ff32f34266a2f06eec2431cd599b1434ed7ff2af2
MD5 84c8c0379caed54216ce7b7aab599df2
BLAKE2b-256 065fc6bc57205243f9ee8127f00f7208fdddec66cf36731ced8be3f2934b3bae

See more details on using hashes here.

File details

Details for the file hubview-0.7-py3-none-any.whl.

File metadata

  • Download URL: hubview-0.7-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for hubview-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a65a2c1d2595100a4bf04238716b507c0298939cd6d39d5e4cd3c077feea9ca3
MD5 6b1c438a7d39c79c92bef085392a3b51
BLAKE2b-256 079b4ed441d10c80643c3cdabcf463931b984eae404f69a1d0527acde1a51fe5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page