# I am the Watcher. I am your guide through this vast new twtiverse.
# 
# Usage:
#     https://watcher.sour.is/api/plain/users              View list of users and latest twt date.
#     https://watcher.sour.is/api/plain/twt                View all twts.
#     https://watcher.sour.is/api/plain/mentions?uri=:uri  View all mentions for uri.
#     https://watcher.sour.is/api/plain/conv/:hash         View all twts for a conversation subject.
# 
# Options:
#     uri     Filter to show a specific users twts.
#     offset  Start index for quey.
#     limit   Count of items to return (going back in time).
# 
# twt range = 1 12
# self = https://watcher.sour.is/conv/ndck4vq
@quark @stigatle We have 2 ppand awk scripts that do that. You could put them under CGI.
@adi Speaking of CGI, pp etc, have you any more thoughts of pp under CGI? I know it will make some web devs faint with the idea from a security standpoint but I'm sure that wouldn't be too hard to solve with isolation or something.
@eldersnake It would be as safe as shell script under CGI, it could be done in a safe matter. Put it under a chroot and it's safer. Didn't get a chance to build anything with it lately. It would suffer from the same problems as CGI in general (slowness).
@eldersnake I personally would prefer having that problem and there's a cool way to fix it
@adi Yeah it's funny some people would think it's crazy to use CGI in this simple way yet at the same time not worry about the numerous badly written PHP sites out there that are far more vulnerable .
@eldersnake It's not crazy at all.
@eldersnake Btw, did you see http://shell.cs.pomona.edu/shtepper for shell debugging?
@adi \n> It’s not crazy at all.\n\nI know it's not, I just found it amusing when someone on tildes.net that time compared the idea to risking dying in a car crash 😛
@adi Interesting. Looks like it could be handy. Also be interested if there was something like that off-line. Also something like Shellcheck that doesn't require a mountain of Haskell dependencies too would be cool, if you know of one.
@eldersnake I would say that's an exaggeration.
@eldersnake Yeah, regarding Shellcheck, one of my issues also, it the single tool of its kind as far as I'm aware.
@eldersnake \n\n> The Shtepper is a web-based visualization tool for symbolically running POSIX shell scripts. While available online, you can also run a local version of the Shtepper using the smoosh-web Docker image\n\nhttps://github.com/mgree/smoosh#using-the-sh\n\nThis is the best we have