# 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 172
# self = https://watcher.sour.is?uri=https://envs.net/~duriny/twtxt.txt&offset=72
I see that the competition for twtr is rapidly growing ;) I'll have to rush to get v0.2 out soon...
fuck.
Russia just invaded Ukraine....
давай не будем говорить об этом :thumbsup:
Thank you, thank you! (My immune system did all the hard work, all I did was wait in a line for a bit lol)
The covid booster was a pain but I'm back up to a fully operational battlestation!
@novaburst thanks for taking interest in twtr! :) I am currently working to have twtr integrate with any yarn.social pod, but it won't be released until v0.2.0. I'm currently recovering from my boster shot, but in the meantime, twtr v0.1.x is fully cappable of posting to any yarn pod through creative use of the curl command and the pre/post tweet hooks :)
@novaburst thanks for taking interest in twtr! :) I am currently working to have twtr integrate with any yarn.social pod, but it won't be released until v0.2.0. I'm currently recovering from my booster shot, but in the meantime, twtr v0.1.x is fully capable of posting to any yarn pod through creative use of the curl command and the pre/post tweet hooks :)
Lets find out :)
@prologic https://git.mills.io/yarnsocial/go-client/pulls/2
Banger!! Thanks :D
Yes please :D, let me know if you need my help for testing or anything :)
I do like the idea of go.yarn.social/client, I'm always a fan of vanity import paths since they say "This isn't just a toy project I uploaded to GitHub"
.......well I feel like a right ninny, good thing I didn't finish my package to do exactly that XD, thank you, I'll use git.mills.io/yarnsocial/yarn/client instead of reinventing the wheel lol
For now I'm just planning on being able to choose a back end to twtr, e.g. a yarn pod, self hosting via ssh (like I am right now), maybe allowing hosting as a Github Gist, that sort of thing. I haven't taken a look at yarnc yet, but I might take a look now that you mention it :). I'm currently thinking of making the backend available as something like go get duriny.envs.sh/twtr/backend/yarn, but if you think yarnc might have some good overlap, maybe twtr can use go get Yarn.Social/go/api or something?
I hope you don't mind me creating an account on your pod? I do plan on removing the test tweets after myself once I'm done :)
I'm creating a wrapper for the Yarn.Social API as a back end to twtr, so twtr users can use a yarn pod as a twtxt.txt host. Makes it easy to be able to tweet from the command line and the browser (and presumably the mobile app?) all at once :)
I love it XD
Oh split it out for sure, the more the code is broken down into small pieces that do one thing well the better :)
@prologic I've rewritten the parser in twtr aproximiately 4 or 5 times in the past few weeks, I haven't quite worked out how to implement all of the spec extensions yet, so I recokon having a common parser would be fantastic! That being said, for the sake of diversity it's probably also good to have a couple of implementations floating about.
@prologic I've rewritten the parser in twtr approximately 4 or 5 times in the past few weeks, I haven't quite worked out how to implement all of the spec extensions yet, so I reckon having a common parser would be fantastic! That being said, for the sake of diversity it's probably also good to have a couple of implementations floating about.
@adi https://mkws.sh/pp.html looks pretty cool, does it support non /bin/sh shells, like could I configure it to use /bin/mksh?
huh, neat
pp as in the perl compiler/packager thingy? Yeah you can run any shell script in a server side CGI, as long as the permissions and PATH are all correct. Although envs.net already supports perl for CGI, so you could just use <!--#include virtual="cgi-bin/foo.pl" --> rather than calling pp
As I said, I'm clearly biased ;)
Personally I think <!--#include virtual=cgi-bin/fortune.sh--> is the simplest, but I'm an envs.neter, I'm clearly biased :D
Oh damn sprunge.us has syntax highlighting!!! http://sprunge.us/qi3eGf?html
@carsten If you're interested in the source of my home page: http://sprunge.us/qi3eGf
@carsten If you're interesed in the source of my home page: http://sprunge.us/qi3eGf
@carsten you're on the right track :) check out https://help.envs.net/website
Ah sorry @david I missed your twt lol. Yeah I don't think its the difference in the running version, non of the intermediary code changes stand out either. Could be a caching/config issue? I know @prologic's pod takes longer to pick up my twts than netbros does, maybe the twtxt.net cache just lost those twts?
strangely the actually commits don't show a significant code change that could break this, one is a CSS change and the other is a Makefile change :/
I think it might be that the two pods are on a different commit, I'll note them here for reference, netbros.com is on 0.13.0@278fda8, and twtxt.net is on 0.13.0@ee35b5c
@prologic I noticed this the other day as well, the https://netbros.com pod shows the full thread (yarn?) for #zzd4quq, but https://twtxt.net doesn't: https://netbros.com/conv/zzd4quq vs https://twtxt.net/conv/zzd4quq
No problem :D
Should be good now @prologic, cc @twtr_news
@prologic good catch! I nearly forgot
Follow https://duriny.envs.sh/twtr/news.txt for future updates :)
twtr@v0.1.0 has been released! https://git.envs.net/duriny/twtr/releases/tag/v0.1.0, feedback wellcome :D
twtr@v0.1.0 has been released! https://git.envs.net/duriny/twtr/releases/tag/v0.1.0, feedback welcome :D
I can't say for sure, but it looks like they might share the same identity as https://github.com/3x and/or https://bdn.sh/
@adi I like the look of https://mkws.sh, I might use it to manage https://envs.net/~duriny someday :)
Oh, looks like I missed a lot over night lol. I sshed into envs, zs isn't installed, but like @carsten says, @<~creme https://envs.net/~creme/twtxt.txt> is a good guy.
No problem, tag me in any issues on git.mills.io and I'll take a crack at it :)
@adi what you don't see is the 15 or so times I have twtr tweet "I hope this works..." in my shell history lol
@prologic that would definitely be interesting! I'm hoping to have a (mostly) workable v0.1 release in the next day or two, I'd be happy to help out in the community :), what would you want help with?
@prologic that would definetely be interesting! I'm hoping to have a (mostly) workable v0.1 release in the next day or two, I'd be happy to help out in the community :), what would you want help with?
Good luck @screem :)
@david Oh did you mean what my current hook is? I'm currently using scp to copy a local twtxt.txt file to the https://envs.net server. Check out my twtxt config in my dotfiles :) https://git.envs.net/duriny/dotfiles/src/branch/main/.config/twtxt/config
The hook is described in the original twtxt client's config section, https://twtxt.readthedocs.io/en/latest/user/configuration.html Since twtr aims to be backwards compatable with it this was a must. For those who are interested in the guts of twtr, this is the code the runs the hook: https://git.envs.net/duriny/twtr/src/commit/ace5da5447fa91d7706b09cbae2042cebd642c90/main.go#L807-L823
Hello World! This is the first tweet written using the pre/post hook functionality of twtr! I hope it works! :D
Tea might help, I'm already pretty exhausted, lets see where some jumping jacks take me
I haven't slept in two days :/
@movq 0.0 what happened to unicomp?!! I bought my model M from them a few years back, I love those guys
@movq I've got good news for you my ergo loving friend, there *is* as split buckling springs keyboard :D https://www.youtube.com/watch?v=oNnW4wED4uU
One possible way to use twtxt for private messages would be using http authentication, then it's private to anyone who's allowed to see the twtxt.txt file, otherwise the it returns 401 Unauthorized. That's not exactly an easy solution since both parties need to agree on authentication, and no client is set up for that, but it at least is self-hosted and decentralised :D
Ohh beat me to the punch, I've starred you on GitHub as well, the more clients we have the better :)
@fastidious would it be a good idea to add support for the pronouns field to yarn?
Thanks @lyse, will do :)
No worries mate, I've added a # pronouns = field to my twtxt.txt, should have thought to do that earlier
I was afraid of that :/
@fastidious Please let me know if it does end up working, it would be a really useful feature since I type out all my mentions by hand :D
@fastidious Actually my https://pronoun.is/they no biggie :)
@lyse No, I'm confined to my little corner of the internet here. @prologic would it be possible to support http headers as well? I think that the Go vanity imports style is clever :), just a little limiting to self-hosters like me :/
@prologic would it be possible to add this on non-root pages? I host my twtxt.txt on envs.net, which is a shared tilde, I don't control root page, and even if I did, that meta tag would only work for my one twtxt file. I wouldn't want to rob my fellow envs.neters of being able to use yarn :/
I haven't set up an automation for this (twtr is still WIP), but I thought I'd share. I like the idea, maybe I'll post a git push hook :)
I was thinking about how to best create a news twtwt.txt for twtr, and I've developed a way to format git commit logs as a twtxt file: git log --format="%aI%x09%ae: %s"
I just found a neat vim plugin that highlights twtxt files, https://github.com/JervisTetch/twtxt.vim
I might leave input validation for later, maybe I'll add an --html option to twtr to make it easier :)
Good catch on that typo @lyse, thanks :)
@darch I just checked out http://darch.dk/twtxt/, very nice!
source for anyone who's interested: https://envs.sh/EqV.sh
for example @prologic's feed renders here https://envs.net/~duriny/cgi-bin/twtxt.sh?file=https://twtxt.net/user/prologic/twtxt.txt
I've updated my twtxt-to-html renderer, it now works with arbitrary feeds :D, see https://envs.net/~duriny/cgi-bin/twtxt.sh?file=https://envs.net/~duriny/twtxt.txt, you can replace the 'file=' parameter with your own twtxt.txt=
I'm going AFK for a while, @prologic let me know if your interested in my script and I'll make a repo for it :)
@fastidious The sed regex is a little messy but I managed, https://envs.sh/Eq7.sh
As it happens I just added thread support to my script, its up on my home page now ;)
to be honest I didn't think anybody would ever find my twtxt feed so the fact that it is getting picked up on twtxt.net automatically is kind of amazing lol
@prologic No pod yet XD, just a redirect to https://twtxt.net, but its good to know that it's allowed :)
Heres the script I use https://envs.sh/Eq8.sh, it's just few lines of shell that spits out HTML, you can see it running here or on my home page (with better css)
I also have script that renders my twts to my home page, I can post it if anybody is interested :)
I've added a links/ section to my website, e.g. my twtxt.net pseudo-account is at https://envs.net/~duriny/links/twtxt.net/
The twtr repo on GitHub is just a mirror, checkout the upstream at https://git.envs.net/duriny/twtr :)
It would be really cool to get some publicity for twtr, thanks! I'll have to make that v0.0.1 release soon lol
@prologic I'm using twtr to type this right now
@prologic twtr should be compatible with Yarn.Social out of the box :)
@prologic I did create a Yarn.Social account but I don't want to manage two feeds lol
@fastidious note that the Go import path is duriny.envs.sh/twtr :)
@fastidious https://github.com/duriny/twtr is a mirror of https://git.envs.net/duriny/twtr
@prologic twtr is a rewrite of https://github.com/buckket/twtxt in Go :)
While not even remotely close to a v1 release, twtr is starting to take shape, I might tag v0.0.1 soon :D
It's a good day for a haircut
I sometimes wonder if the JWST will see the wreckage of an Inter Galactic empire in the distant past of our universe
I just discovered that you can write Go documentation to look and feel like a manpage
The go import path for "duriny.envs.sh/twtr" is now up and running! :)
I'm reorganizing https://duriny.envs.sh/go/twtxt at https://duriny.envs.sh/twtr
I'm starting a new project, checkout https://duriny.envs.sh/go/twtxt
It's a shame that the twtxt client is broken as of python 3.9, :/
New home page is up now: https://envs.net/~duriny
Hello World!