Easily share files and text snippets by pasting or uploading them. Built with React & Hono.
There's also a companion CLI tool!
Install the CLI tool globally:
deno install -grAf -n=fdt https://esm.town/v/wolf/FileDumpThing/cli/upload.ts
Then use it to quickly upload files:
# Upload a file and get a shareable URL cat path/to/file.jpg | fdt file.jpg # Upload text from clipboard pbpaste | fdt notes.txt
See the CLI README for more details and examples.
Frontend: React components for the user interface
components/FileDumper.tsx
: Main component for the file dumper interfacecomponents/App.tsx
: Root component that renders the FileDumperindex.tsx
: Entry point for the React applicationindex.html
: HTML templateBackend: Hono server for handling API requests
index.ts
: API routes for file uploads and serving stored contentapi.ts
: API endpoints for file uploadsShared: Code shared between frontend and backend
utils.ts
: Shared types and utility functionsmimetype.ts
: MIME type detection for various file formatsCLI: Command-line interface for file uploads
upload.ts
: Deno script for uploading content via stdinUses Val Town's blob storage for file persistence
Built with TypeScript for type safety
React for the frontend UI
Hono for the backend API
Supports various file types with appropriate MIME type detection
Smart content detection (checks for null bytes and UTF-8 validity)
CLI tool for terminal-based uploads