# 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 1
# self = https://watcher.sour.is/conv/gqh5osa
💡 Pro zs Tip: Need a way to include "dynamic" content or other files? Here's a simple "include" plugin you can use:


$ cat .zs/include.sh
#!/bin/sh

if [ ! $# = 1 ]; then
  printf "Usage: %s <file>\\n" "$(basename "$0")"
  exit 0
fi

fn="${ZS_OUTDIR}/$1"

if [ -f "${ZS_OUTDIR}/$1" ]; then
  cat "${ZS_OUTDIR}/$1"
else
  echo "error: file not found ${ZS_OUTDIR}/$1"
fi


Usage: {{ include.sh twtxt.txt }} (as used by the Yarn.social site and to include a full-example feed in the "Manually" section (Thanks to @autiomaa for this feedback! 🙇‍♂️) #Yarn.social #zs #static-site #static-site-generator