I will be moving to .com TLD soon in January 2027. Please stay updated by following @azukashiic on X!
Temporary files upload solution with 1-hour expiration (powered by tmpfiles.org)
/tmp/fup is a minimalist, terminal-styled web app for sharing files temporarily. You drop in a file and get a shareable link straight away, and the file expires automatically after 1 hour. There's no account, no sign-up and no backend to run: uploads go directly from the browser to the tmpfiles.org API.
filesize) and a live "expires in N minutes" countdown./tmp/fup).FilePond posts each file to the tmpfiles.org upload endpoint. When an upload finishes, the app reads the returned URL, sets an expiry time one hour ahead and adds the file to a reactive list:
const processFile = (_: any, progress: any) => {
const serverId = JSON.parse(progress.serverId);
const expiredAt = new Date();
expiredAt.setHours(expiredAt.getHours() + 1);
files.push({
fileName: progress.filename,
fileSize: filesize(progress.fileSize, { base: 10 }),
fileType: progress.fileType,
url: serverId.data.url,
expiredAt: expiredAt.toISOString(),
});
};
A watcher saves each new entry to a cookie under a random file_<nanoid> key. On page load, the app reads every matching cookie back in, so the list survives a refresh. Because vue-cookies is set up with expires: '1h', the browser deletes those entries on its own when the files expire.
tmpfiles.org returns a link to a preview page. To build a direct download link, the app inserts /dl/ into the URL path:
function injectDownloadPath(originalUrl: string): string {
const url = new URL(originalUrl);
const segments = url.pathname.split('/').filter(Boolean);
url.pathname = '/' + ['dl', ...segments].join('/');
return url.href;
}
| Layer | Tools |
|---|---|
| Framework | Vue 3 Composition API (TypeScript) |
| Build | Vite 5, vue-tsc type checking |
| Styling | Tailwind CSS 3 + daisyUI (black theme) |
| Uploads | FilePond (vue-filepond) with image-preview and file-size plugins |
| Storage | tmpfiles.org API (files), vue-cookies (file list) |
| Utilities | nanoid, filesize, Iconify |
| Tooling | Bun, Prettier, Renovate |
Your file list exists only in your own browser's cookies, so other browsers and devices can't see it. Anyone who has a file's link can open it until it expires.