Blob Admin

Hand-crafted server-rendered Hono JSX. Back to basics.

Features

  • File Management: Upload, view, edit, and delete blob files
  • Authentication: Secure access with lastlogin middleware
  • File Type Support:
    • Images: Display inline with preview
    • Text Files: Editable in textarea with syntax highlighting
    • JSON Files: Interactive JSON viewer with collapsible nodes and edit capability
    • Binary Files: Metadata view with download option
  • JSON Detection: Automatically detects JSON files by:
    • .json file extension
    • Files under 100KB that parse as valid JSON
  • Public Files: Support for public file hosting via __public/ prefix
  • Search & Pagination: Browse files with prefix search and pagination

JSON Viewer

The JSON viewer provides:

  • Collapsible/expandable object and array nodes
  • Syntax highlighting
  • Copy functionality
  • Edit mode with JSON validation
  • Error handling for invalid JSON

Todo

  • Make a seperate val for hosting public files?
  • Explain how the public folder works
  • Button to move blobs into or out of the public folder
  • Merge this back to the orignal
  • Ability to rename blobs