Skip to content
/ wapb Public

Yep, this is a pastebin. I know, I know. Oh well.

Notifications You must be signed in to change notification settings

pzl/wapb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What, Another Paste bin?

wapb - Yep, another pastebin. I hate this. There are so many clones, it's stupid.

At least it's a small utility, so it's rebuilding a wheel instead of an entire car.

I primarily use this as a paste-able handoff utility from phone to computer. I no longer want to email myself links. Paste from phone, fetch from computer. Without an app (so, browser-accessible from the phone). I looked at a solid list of clones, but found that the intersection of features I needed was not met by any one tool. Those features being:

  • Single Binary distributable, without runtime requirements (goodbye python, ruby, php)
  • Persistent storage
  • Ability to set self-destroy timers
  • Web UI
  • Listing / discovery

Close Contenders

  • mkaczanowski/pastebin meets a lot of this, but is missing file upload, and listing entries.
  • raftario/filite also meets much of this, but without timers. It's also going through a rewrite by it's author at time of writing.
  • prologic/pastebin uses entirely in-memory caching for storage. Reboot will lose it all

Nice-to-have features, but not mission-critical

  • File upload
  • API
  • syntax highlighting

NON Targeted features

This is intended to be on a local network deployment, in a semi-trusted environment. So some features are out-of-scope:

  • Encryption of contents
  • Login / Authorization

Now that the motivation section is out of the way, here's what is left of the product:

Single binary, web assets bundled inside. Has a web interface and an open HTTP API. Storage is configurable. Point it to a directory path, and a persistent store will be used there. Or pass the flag with no argument (empty string) for an in-memory data store. Since that option just came free with the DB I used.

About

Yep, this is a pastebin. I know, I know. Oh well.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published