blob_admin
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
<<<<<<< main This is a lightweight Blob Admin interface to view and debug your Blob data.
Use this button to install the val:
It uses basic authentication with your Val Town API Token as the password (leave the username field blank).
-
/new
- render a page to write a new blob key and value -
/edit/:blob
- render a page to edit a blob (prefilled with the existing content) -
/delete/:blob
- delete a blob and render success - add upload/download buttons
- Use modals for create/upload/edit/view/delete page (htmx ?)
- handle non-textual blobs properly
- use codemirror instead of a textarea for editing text blobs ======= Hand-crafted server-rendered Hono JSX. Back to basics.
- 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
The JSON viewer provides:
- Collapsible/expandable object and array nodes
- Syntax highlighting
- Copy functionality
- Edit mode with JSON validation
- Error handling for invalid JSON
- 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
main