1.2 KiB
note: this readme has been extensively edited since i initially posted it on tilde.town. there are no longer any ambitions to replace bbj with this project
bink
serverless microblogging for tilde.town
object logic
each system user that chooses to use bink will have a folder in their home directory called .bink/
, which will be populated by items named after the epoch-nanoseconds time of creation. the contents of each item are plaintext, and that is the post.
from the path where the object is stored, ex. /home/nebula/.bink/1745182221128478782
, the user who posted the item and the time it was produced can be inferred. each post object therefore has 3 pieces of data: the post body, the exact time the post was produced, and the user who posted it. the client will iterate over system files by using the /home/**/.bink/*
glob, collecting all of the user objects without using a central server like bbj
potential flaws
- scales poorly: client will need to implement some sort of pagination logic if many thousands of posts exist, or the program will be very slow. every file on the system must be iterated with each subsequent update. in 10 years of use, this serverless approach may become cumbersome.