FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
wolf

wolf

FileDumpThing

Share files with a paste!
Public
Like
10
FileDumpThing
Home
Code
7
backend
2
cli
2
frontend
3
shared
2
.vtignore
README.md
deno.json
Branches
1
Pull requests
Remixes
5
History
Environment variables
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
4/20/2025
Viewing readonly version of main branch: v59
View latest version
README.md

File Dumper App

This app allows you to easily share files and text snippets by pasting or uploading them. It's built with React on the frontend and Hono on the backend.

Features

  • Paste text or images directly into the app
  • Upload files through the file input
  • Get shareable links instantly
  • Links are automatically copied to your clipboard
  • Preview images and text content
  • CLI tool for uploading files directly from your terminal

How It Works

  1. The app uses Val Town's blob storage to store uploaded files and text
  2. When you paste or upload content, it's sent to the server and stored
  3. A unique URL is generated that can be shared with others
  4. The content can be accessed directly through the generated URL

Project Structure

  • Frontend: React components for the user interface

    • components/FileDumper.tsx: Main component for the file dumper interface
    • components/App.tsx: Root component that renders the FileDumper
    • index.tsx: Entry point for the React application
    • index.html: HTML template
  • Backend: Hono server for handling API requests

    • index.ts: API routes for file uploads and serving stored content
  • Shared: Code shared between frontend and backend

    • utils.ts: Shared types and utility functions
    • mimetype.ts: MIME type detection for various file formats
  • CLI: Command-line interface for file uploads

    • upload.ts: Deno script for uploading content via stdin

CLI Usage

You can use the CLI tool to upload files directly from your terminal:

# Upload a file and get a shareable URL cat path/to/file.jpg | deno run --allow-net https://esm.town/v/wolf/FileDumpThing/cli/upload.ts file.jpg

See the CLI README for more details and examples.

Technical Details

  • Uses 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
  • CLI tool for terminal-based uploads
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.