whoswhip 7810b637c3 fix: upload file button being disabled in certain cases
if you upload something then go back to the home page using the browser back button it would still show it's being uploaded/disabled
2026-12-04 14:50:37 -05:00
2026-11-22 22:08:12 -05:00
2026-11-24 13:29:27 -05:00
2026-11-22 22:08:12 -05:00
2026-11-24 13:29:27 -05:00
2026-11-22 22:08:12 -05:00
2026-11-22 22:08:12 -05:00
2026-11-14 16:39:47 -05:00
2026-12-04 11:22:11 -05:00

minibin

im using this project to learn go, it may not be the best

minibin is a simple file and paste hosting service written in Go

it's not really that simple but whatever

i will try my best to make it easy to customize and deploy, but this is a personal project and made using my own preferences, so you may need to change the tos/privacy policy/faq etc to fit your needs

goals:

  • fast
  • simple api/usage
  • secure (as much as possible)
  • moderable (reports, mime type filtering, hash ban, etc)
  • complete no javascript support

roadmap/todo

  • max total storage usage

  • size based expiry

    • exclusions if below a certain size (like 5mb)
  • prometheus metrics

  • admin panel

    • tui like 0x0.st? web panel with tui like shortcuts
    • auth options
      • user & pass - cloudflare acces
    • local access from a specifc ip or range only
  • ASN blocking via geolite2

  • upload endpoint

  • upload content endpoint

    • update last accessed at
      • use a memory cache and batch commit to database to keep performance
    • add cache control header
  • delete content endpoints

  • return a page for nojs clients, such as on delete or upload

    • need to return one on failures as well 💔💔💔
  • normalize mime types (like html)

    • converts specific mime types to text/plain to prevent rendering
  • filter mime types config

    • prevents uploads with specific mime types
  • switch mime type detection library

  • ratelimits

  • simplify rendering & serving pages (too much duplicate code rn)

  • reports

    • PoW challenges/captchas
      • switch to argon2id instead of sha256
    • javascript required

misc goals

  • link to this git repo on home page
  • maybe keep nojs and js on the same page?
    • just use javascript to enhance the experience, like progress, drag and drop
  • shareX config download handlers (automatically create based off of config)
  • add a config option to put the endpoint on another path, such as /f/{id}
    • allowing more specific caching options through reverse proxies like cloudflare

contributing

if you, for some reason, want to contribute then generate a patch with git format-patch HEAD~1 and email it to me (contact@whoswhip.dev), start the subject line with [PATCH] minibin

if you need to send a revised version then include the version at the end of the subject line, such as [PATCH] minibin v2

license

minibin is licensed under GPL-3.0

mirrors/source

S
Description
simple file and paste hosting service
Readme GPL-3.0
622 KiB
Languages
Go 65.5%
HTML 20.2%
CSS 7.4%
JavaScript 6.9%