Public
Like
10
FileDumpThing
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.
Viewing readonly version of main branch: v20View latest version
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.
- 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
- The app uses Val Town's blob storage to store uploaded files and text
- When you paste or upload content, it's sent to the server and stored
- A unique URL is generated that can be shared with others
- The content can be accessed directly through the generated URL
-
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 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
- 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