# 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 2642
# self = https://watcher.sour.is?uri=https://twtxt.net/user/adi/twtxt.txt&offset=1242
# next = https://watcher.sour.is?uri=https://twtxt.net/user/adi/twtxt.txt&offset=1342
# prev = https://watcher.sour.is?uri=https://twtxt.net/user/adi/twtxt.txt&offset=1142
@eldersnake \n\n> haven't posted any new articles on there since February of this year, and hope to change that soon. \n\nWould be nice if, don't make a goal out of it, I myself had about 2-3 months of https://mkws.sh being down, started with https://openbsd.amsterdam server crashing and losing all my data. (had backups).\n\nAlso these 2-3 months drank like I never did in my life (had fun). Man, had some nights and mornings and days. Great summer!
@eldersnake \n\n> haven't posted any new articles on there since February of this year, and hope to change that soon. \n\nWould be nice if, don't make a goal out of it, I myself had about 2-3 months of https://mkws.sh being down, started with https://openbsd.amsterdam server crashing and losing all my data. (had backups).\n\nAlso these 2-3 months drank like I never I did in my life (had fun). Man, had some nights and mornings and days. Great summer!
@eldersnake

> haven't posted any new articles on there since February of this year, and hope to change that soon.

Would be nice if, don't make a goal out of it, I myself had about 2-3 months of https://mkws.sh being down, started with https://openbsd.amsterdam server crashing and losing all my data. (had backups).

Also these 2-3 months drank like I never did in my life (had fun). Man, had some nights and mornings and days. Great summer!
@prologic And closed! 😢
https://mkws.sh/ @eldersnake @jlj There, worked a little bit on the links. Thanks for using mkws and thanks for contributing! πŸ™πŸ™‡β€β™€οΈ Next up are the sponsor links.
https://mkws.sh/ @eldersnake @jlj There, worked a little bit on the links. Thanks for using mkws and thanks for contributing! πŸ™πŸ™‡β€β™‚οΈ Next up are the sponsor links.
https://mkws.sh/ @eldersnake @jlj There, worked a little bit on the links. Thanks for using mkws and thanks for contributing! πŸ™πŸ™‡β€β™‚οΈ Next up are the sponsor links.
https://mkws.sh/ @eldersnake @jlj There, worked a little bit on the links. Thanks for using mkws and thanks for contributing! πŸ™πŸ™‡β€β™€οΈ
https://mkws.sh/ @eldersnake @jlj There, worked a little bit on the links. Thanks for using mkws and thanks for contributing! πŸ™πŸ™‡β€β™€οΈ
https://mkws.sh/ @eldersnake @jlj There, worked a little bit on the links.
@mckinley @lohn @eldersnake Yeah, live.js is pretty cool.
@mckinley https://mkws.sh is pretty designed to last, have to solve fonts and images.
@jlj Thanks for the mention!
@prologic @movq Yeah, @mckinley was front page on Hacker News and Lobsters.
@lohn @prologic

> I recompiled. Better don’t put bash where they made for dash. It’s running like a charm now.
About the frontmatter, the problem is the arrays.

No arrays in POSIX sh, I remember reading somewhere about parsing frontmatter with POSIX sh, don't remember where tho.
@lohn @prologic \n\n> I recompiled. Better don’t put bash where they made for dash. It’s running like a charm now.\nAbout the frontmatter, the problem is the arrays.\n\nNo arrays in POSIX sh, I remember reading somewhere about parsing frontmatter with POSIX sh, don't remember where tho.
> Hope to be in site list soon too.\n\n100% sure you'll be on the list if you get your site up. Thanks for playing with mkws! 😁\n\n> I’m very proud to be there. \n\nIt's cool, no need to be proud! πŸ˜‰
> Hope to be in site list soon too.

100% sure you'll be on the list if you get your site up. Thanks for playing with mkws! 😁

> I’m very proud to be there.

It's cool, no need to be proud! πŸ˜‰
@lohn @prologic There are ways to parse frontmatter in POSIX sh but if you prefer bash, assuming you're not breaking anything, symlink /bin/bash to /bin/sh. If not, build your own pp https://mkws.sh/pp/pp.c
@lohn @eldersnake I really have to package dv, live.js, https.go nicely some day.
@lohn @prologic Symlink bash to sh.
@lohn @prologic Glad you're doing that, how does it feel @lohn?
@lohn @prologic Glad you're doing that, how does it feel, how is it working for you, any issues @lohn
Morning! β˜•
Btw guys, you can pipe the list of files being generated to anything you prefer by doing:\n\n $ bin/mkws https://example.com | cut -d' ' -f2\n s.css\n index.html\n sitemap.xml\n\nWho needs plugins, right? 😎
Btw guys, you can pipe the list of files being generated to anything you prefer by doing:

$ bin/mkws https://example.com | cut -d' ' -f2
s.css
index.html
sitemap.xml

Who needs plugins, right? 😎
@jlj You can take a look here for some mkws related stuff https://twtxt.net/search?tag=c6kechq @lohn I believe I answered all your questions in a single thread, I was beat 😴 last night and felt excited you were asking me questions. Thread per question would have been great.
@jIj You can take a look here for some mkws related stuff https://twtxt.net/search?tag=c6kechq @lohn, I believe I answered all your questions in a single thread, I was beat 😴 last night and felt excited you were asking me questions. Thread per question would have been great.
I still have to add a couple of testimonials to https://mkws.sh. Believe I'll trim @eldersnake's.
@mckinley

> Hey, thank you for sharing my blog post around. I’m glad you liked it.

I neither like it nor dislike it, I agree with your opinion that HTML and CSS aren't fit for developing apps. Also, I had a link in there. πŸ˜‹
@mckinley \n\n> Hey, thank you for sharing my blog post around. I’m glad you liked it.\n\nI neither like it nor dislike it, I agree with your opinion that HTML and CSS aren't fit for developing apps. Also, I had a link in there. πŸ˜‹
@mckinley You could store subreddits in cookies.
> Stand Against Hatred\n\nThese words are so hypocritical, how can you understand something you're against of? Neither for nor against. What hatred? Why escape hatred? I'm not your enemy, I'm not *against* you.
> Stand Against Hatred

These words are so hypocritical, how can you understand something you're against of? Neither for nor against. What hatred? Why escape hatred? I'm not your enemy, I'm not *against* you.
@mckinley I have to get one of those "designed to last" links.
@mckinley Would the use of cookies for that be considered "tracking"? I don't believe so.
@mckinley It's not necessarly about teddit not being more modern, it's more about the proportions I guess and spacing?
@mckinley Not bad, any way to configure subreddits for the front page?
@mckinley Theme could be better.
Also, am considering using the site's directory name as the default name so you could just type bin/mkws instead of bin/mkws https://example.com, assuming you have the source files in an example.com directory.
I'm also considering also removing <link rel=icon href=/favicon.ico type=image/x-icon> but @mckinley has something to say about it https://mckinley.cc/blog/20210824.html πŸ˜‹
@mckinley What's _teddit_?
πŸ˜‹ > πŸ˜›
@jlj Thanks! Also https://twtxt.net/twt/62afapa πŸ˜‹
@jlj Thanks! Also https://twtxt.net/twt/62afapa πŸ˜›
I got Reddit Premium for submitting your article @mckinley, was that you?
So I do have to add initial-scale=1 to the default layout https://css-tricks.com/probably-use-initial-scale1/
@prologic Yeah, but hold on, I overdosed on HTML and CSS. A break would be nice.
@prologic For instance you could render a username and avatar semantically speaking as.




username

=
@prologic For instance you could render a username and avatar semantically speaking as.\n\n
\n \n
\n username\n \n
=
@prologic That would be the general idea!
@prologic The classes are required and the structure but not the tags.
@adi @prologic But maybe I could work with the HTML before them and bake microformats in more semantically while keeping stuff simple? Did the HTML get more complex with the addition of mf2? Did you add tags without affecting functionality there?
@adi @prologic \n\n> I think you want the version before I added mf2 support? πŸ€” Shall I just make that a configuration option?\n\nNeah, I'd rather have microformats by default.
@adi @prologic

> I think you want the version before I added mf2 support? πŸ€” Shall I just make that a configuration option?

Neah, I'd rather have microformats by default.
@adi @prologic While still keeping the microformats?
@prologic Yeah, but maybe we could put those on semantic elements as much as possible?
@mckinley Yup, got it, 2nd "social". 😁
@prologic Less tags I believe, more semantic, less divs, less spans more semantic elements like figures, figcaptions for instance.
@mckinley I don't believe so, is that I read "anti-social social media" as "anti social media social media" because https://twtxt.net/ is not "antisocial"/"anti-social" but twtxt would be as you put.
@mckinley I don't believe so, is that I read "anti-social" as "anti social social"... media.
I'm going to host a yarn instance at https://c.mkws.sh for community purposes but I have to work on yarn's HTML output as I believe it could be better and skin it accordingly.
@prologic @mckinley @jlj @anth @prologic As you prefer/feel/have time. πŸ˜‹
@anth @jlj @mckinley That CSS text-shadow looks pretty cool!
@maya

> Twtxt’s original spec is like taking a 140 character long string of text, loading it into a cannon, and shooting it off into space.

That would be "antisocial" as I wrote it and what you ment by "anti-social".

Yeah, twxt and https://twtxt.net/ kinda overlap. I would say yarn would be "anti social media social media", as joke, truth is I personally am neither anti nor pro anything.
@maya \n\n> Twtxt’s original spec is like taking a 140 character long string of text, loading it into a cannon, and shooting it off into space.\n\nThat would be "antisocial" as I wrote it and what you ment by "anti-social".\n\nYeah, twxt and https://twtxt.net/ kinda overlap. I would say yarn would be "anti social media social media", as joke, truth is I personally am neither anti nor pro anything.
@jlj 😁, glad you're having fun, just saw https://nfld.uk/, looking cool! 😎\n\n> Now I need some content. ;-)\n\nWouldn't worry about that, I constantly get content ideas for both of my sites while not actively looking for them.\n\n> Built with mkws.sh\n\nCould you update this link so it would say just \n\n> Built with mkws\n\nI would say mkws is the name of the program and mkws.sh is the name of the web site?
@jlj 😁, glad you're having fun, just saw https://nfld.uk/, looking cool! 😎

> Now I need some content. ;-)

Wouldn't worry about that, I constantly get content ideas for both of my sites while not actively looking for them.

> Built with mkws.sh

Could you update this link so it would say just

> Built with mkws

I would say mkws is the name of the program and mkws.sh is the name of the web site?
@jlj 😁, happy you're having fun, just saw https://nfld.uk/, looking cool! 😎\n\n> Now I need some content. ;-)\n\nWouldn't worry about that, I constantly get content ideas for both of my sites while not actively looking for them.\n\n> Built with mkws.sh\n\nCould you update this link so it would say just \n\n> Built with mkws\n\nI would say mkws is the name of the program and mkws.sh is the name of the web site?
@prologic @mckinley Yeah, article was good! 😁
@prologic https://mckinley.cc/blog/20210831.html

> I've recently become active again on twtxt.net, the platform that puts the "social" in "anti-social social media".

It's not antisocial to be clear. Maybe it would be better put as "anti social media social media". 😁
@prologic https://mckinley.cc/blog/20210831.html\n\n> I've recently become active again on twtxt.net, the platform that puts the "social" in "anti-social social media".\n\nIt's not antisocial to be clear. Maybe it would be better put as "anti social media social media". 😁
@mckinley I didn't say you were 1st, highest was 3rd I believe.
@prologic https://lobste.rs/s/poxwde/documents_are_not_programs, https://news.ycombinator.com/item?id=28378789
@naveen @trevcan @jpinto @nathias @zain @anup @hesam @johnbiggs @wearsthefoxhat @xn @sebas1969 @namikis @mario @sb @prologic @manbart @mckinley was frontpage on Hacker News and Lobsters.
@adi @prologic @mkws @archerships is following @mkws but not me. ☹
@prologic @mkws Delete it? πŸ˜› Is that a bug or feature?
@adi @mckinley It was good content!
@mckinley 😁
@mckinley Good comment here https://www.reddit.com/r/programming/comments/pfwkaw/documents_programs/hb7x3x3/?utm_source=reddit&utm_medium=web2x&context=3
@adi @mkws @prologic
@anup hello, @anup!πŸ‘‹
Good writing @mckinley!
That @mkws was my feed, I rather post as myself, buy can't delete that user.
@adi @mckinley Yup, that's exactly the problem, treating documents as "apps". _Forcefully_ treating documents as "apps" I may even say.
@adi @mckinley I'm also in it! 😁
Morning! Reading @mckinley's blog post over β˜•, it starts well!.
@lohn @eldersnake @adi Stuff has some comments and may be a little broken (from the unpublished stuff I showed you) because I added selectively serving .gz, .br, uncompressed files tonight so it's a good idea to fix some scripts.
@adi @lohn @eldersnake Linting https://mkws.sh/bin/precommit, deploy script https://mkws.sh/bin/up.
@adi @lohn @eldersnake Before I go, I have some other stuff you could look at at https://mkws.sh/bin/dv, _dev_ script, starts a simple webserver https://mkws.sh/https/https.go, uses https://livejs.com/ for live reloading and https://eradman.com/entrproject/ for file monitoring.
@adi @lohn @eldersnake Thanks for the questions @lohn! Looking forward to continuing the conversation, but I'm out for tonight as I'm beat! πŸ›ŒπŸ˜΄
@adi @lohn @eldersnake \n\n> A common practice in SSG is to separate the code/content/siteready. As I understand now, #mkws puts almost everything in the root dir. There is a way to separate those things?\n\nYou could do, assuming mkws is in your $PATH, do something like:\n\n MKWSTHEMEDIR=/path/to/share/dir mkws https://example.com /path/to/src/dir\n\nIt would get you the output in the current directory tho.\n\nYou could also just output elsewhere from bin/mkws.\n\nI however recommend publishing the sources also, keeping sensitive info in ENV vars.=
@adi @lohn @eldersnake

> A common practice in SSG is to separate the code/content/siteready. As I understand now, #mkws puts almost everything in the root dir. There is a way to separate those things?

You could do, assuming mkws is in your $PATH, do something like:

MKWSTHEMEDIR=/path/to/share/dir mkws https://example.com /path/to/src/dir

It would get you the output in the current directory tho.

You could also just output elsewhere from bin/mkws.

I however recommend publishing the sources also, keeping sensitive info in ENV vars.=
@adi @eldersnake @lohn \n\n> Any thing about internationalization? Make #mkws runs in multiple languages and generate multilanguage content?\n\nDidn't get to that yet! It's not that hard! You could use the https://www.gnu.org/software/gettext/ utilities. I, personally, would/will write a CLI version of https://man.openbsd.org/catgets
@adi @eldersnake @lohn

> Any thing about internationalization? Make #mkws runs in multiple languages and generate multilanguage content?

Didn't get to that yet! It's not that hard! You could use the https://www.gnu.org/software/gettext/ utilities. I, personally, would/will write a CLI version of https://man.openbsd.org/catgets
@lohn \n\n> I learned a lot of Hugo looking as other’s solutions. Do you have some other theme option for #mkws?\n\nFor now I have all the source files also on https://mkws.sh/ and https://adi.onl (s/html/upphtml/g in urls, e.g. https://mkws.sh/index.html https://mkws.sh/index.upphtml, https://mkws.sh/docs.upphtml) maybe @eldersnake could also give you his sources, he was also very satisfied, the other weren't so brave. πŸ˜›\n\nI recommend distributing the sources of the website, you can hide sensitive information in environment variables.
@lohn

> I learned a lot of Hugo looking as other’s solutions. Do you have some other theme option for #mkws?

For now I have all the source files also on https://mkws.sh/ and https://adi.onl (s/html/upphtml/g in urls, e.g. https://mkws.sh/index.html https://mkws.sh/index.upphtml, https://mkws.sh/docs.upphtml) maybe @eldersnake could also give you his sources, he was also very satisfied, the other weren't so brave. πŸ˜›

I recommend distributing the sources of the website, you can hide sensitive information in environment variables.
@lohn
> Almost every thing I think to do I’ll have to mod #mkws mkws.sh file. Is there the expected behavior or am I imagine things?

Not necessarly _expected_ but recommended skips writing config files, do your config in code, and don't restrict your self to /bin/mkws, script the whole thing. There's not much to upgrade in /bin/mkws, if any. I believe any config I'll ever add is Markdown front matter, some variant of it.
@lohn \n> Almost every thing I think to do I’ll have to mod #mkws mkws.sh file. Is there the expected behavior or am I imagine things?\n\nNot necessarly _expected_ but recommended skips writing config files, do your config in code, and don't restrict your self to /bin/mkws, script the whole thing. There's not much to upgrade in /bin/mkws, if any. I believe any config I'll ever add is Markdown front matter, some variant of it.
> There is an out of the box way to #mkws to create posts pages based in a list of Markdown files in a directory? And generate a list of those posts?

And here https://mkws.sh/share/f.upp, and here https://mkws.sh/share/sitemap.uppxml