After admiring a club web page such as, say, http://tilde.club/~barnold/, you want to make a comment to say how wonderful it is.
In your account on club, you create a text file comment.txt saying "Love your page!". Then at a shell prompt you run
$ ~barnold/bin/make-comment comment.txt
which adds the contents of your comment.txt to a comment page, say http://tilde.club/~barnold/comments.html. Since you were logged in at club, your comment is automatically attributed to you.
Does such a thing already exist? If not, is there any show-stopper that makes it infeasible?
Thanks,
Hi there,
On Sat, 28 Jun 2025, barnold@tilde.club wrote:
After admiring a club web page such as, say, http://tilde.club/~barnold/, you want to make a comment to say how wonderful it is.
In your account on club, you create a text file comment.txt saying "Love your page!". Then at a shell prompt you run
$ ~barnold/bin/make-comment comment.txt
which adds the contents of your comment.txt to a comment page, say http://tilde.club/~barnold/comments.html. Since you were logged in at club, your comment is automatically attributed to you.
I'm not aware of anything exactly like this. It's not a bad idea as such, but it'd require some coordination among everyone involved.
- all the users would need to have a comments.html page with the same format - this hypothetical script would have to accept several params: user you are commenting to, maybe url you are commenting about (is it a comment to the page, a blog post...?) - html could make this a bit messy: this script would have to insert some text not at the end of a page, but before any </body> or whatnot
I guess the need to coordinate all of this might be the reason people would most likely set up their own guestbook (that often don't require abandoning the browser to make a comment)
I like the idea of it being "internal" to a particular tilde, and using the username to signify authory directly, but I'm not sure what sort of comitee you'd need to coordinate this
a simpler system would be to have a file somehwere with maybe this format (writable by everyone?):
URL_YOU_ARE_COMMENTING (space) date? (space) user (space) message
and, everyone that wanted to show messages in a page could add a bit of cgi doing "grep (^current_url) /var/www/this/file_that_saves_comments"
... it would have fewer moving parts, maybe
I don't know, I like thinking out loud :D. Maybe there's already something I'm not aware of, let's see
Does such a thing already exist? If not, is there any show-stopper that makes it infeasible?
Thanks,
barnold http://tilde.club/~barnold/ Saigon 17:32 ICT ► 25.0°C ◆ Clouds ◆ 28Km/h W ◆ 94% RH
Regards, jmcs
This is a great use for webmentions, too. I'm now using https://webmention.io for this on a blog, but previously had my own home-rolled script to receive and store them. The mechanic is honestly a lot like barnold's proposal: You can hit a service to make the webmention request (with curl or other method), make your comment and do something like `$ mention comment.txt https://<remote_comment_url>` with a webmention CLI (there are a bunch).
If you don't want to use javascript to display the replies from webmention.io, you can use a cron job to periodically poll, download and build a local store of replies.
alan
On 28 Jun 2025, at 6:48, jmcs wrote:
Hi there,
On Sat, 28 Jun 2025, barnold@tilde.club wrote:
After admiring a club web page such as, say, http://tilde.club/~barnold/ , you want to make a comment to say how wonderful it is.
In your account on club, you create a text file comment.txt saying "Love your page!". Then at a shell prompt you run
$ ~barnold/bin/make-comment comment.txt
which adds the contents of your comment.txt to a comment page, say http://tilde.club/~barnold/comments.html . Since you were logged in at club, your comment is automatically attributed to you.
I'm not aware of anything exactly like this. It's not a bad idea as such, but it'd require some coordination among everyone involved.
- all the users would need to have a comments.html page with the same format
- this hypothetical script would have to accept several params: user
you are commenting to, maybe url you are commenting about (is it a comment to the page, a blog post...?)
- html could make this a bit messy: this script would have to insert some text not at the end of a page, but before any </body> or
whatnot
I guess the need to coordinate all of this might be the reason people would most likely set up their own guestbook (that often don't require abandoning the browser to make a comment)
I like the idea of it being "internal" to a particular tilde, and using the username to signify authory directly, but I'm not sure what sort of comitee you'd need to coordinate this
a simpler system would be to have a file somehwere with maybe this format (writable by everyone?):
URL_YOU_ARE_COMMENTING (space) date? (space) user (space) message
and, everyone that wanted to show messages in a page could add a bit of cgi doing "grep (^current_url) /var/www/this/file_that_saves_comments"
... it would have fewer moving parts, maybe
I don't know, I like thinking out loud :D. Maybe there's already something I'm not aware of, let's see
Does such a thing already exist? If not, is there any show-stopper that makes it infeasible?
Thanks,
barnold http://tilde.club/~barnold/ Saigon 17:32 ICT ► 25.0°C ◆ Clouds ◆ 28Km/h W ◆ 94% RH
Regards, jmcs
Another alternative would be to use email. You could write a script that sends an email formatted in a specific way. E. g. using a subject like "Re: https://tilde.club/~barnold/some-page.html" to comment on "https://tilde.club/~barnold/some-page.html". Then you could provide a script that tilde.club users can invoke like this:
comment https://tilde.club/~barnold/some-page.html <comment.txt
This script would send an email with the correct subject line and receiver address (in this case "barnold@tilde.club" as the page lives below "https://tilde.club/~barnold/") that contains the desired comment as the email body. You could then handle such emails automatically – either via sieve rules or via a cron job – to add those comments to your website. You would be entirely free to add them wherever you want. To a separate "comments.html" page. To the bottom of the page that has been commented on. Or somewhere else entirely. You could also handle comments differently depending on who sent the email in question. You could decide to "trust" comments coming from the tilde.club domain while you decide to review comments coming from other domains. Or maybe you want to keep comments coming from other domains entirely private?
Using email you would essentially provide a (very simple) standard and a single reference implementation. Other people could write other implementations. Maybe some want to add a mailto link like this one to their pages to provide better integration with the commenter's Desktop Environment or Smartphone:
mailto:barnold@tilde.club?subject=Re:%20https:%2F%2Ftilde.club%2F...
Furthermore, by relying on email as the transport medium, the "comment" script mentioned above would automatically work for all tilde.club users. Even for those that did not set up any kind of automated comment handling. Some users (you maybe?) might set up automated comment handling. Users that don't would simply receive comments in their email inbox. They could then add them to their website manually. Or maybe they decide to keep comments private and just read them. Maybe they even reply.
One last note: Commenting in this way would also work just as well for gopherholes and gemini capsules. You would simply change "https" to whatever protocol is used to serve the page in question.
On Sun, 29 Jun 2025, Frank Seifferth wrote:
Another alternative would be to use email. You could write a script that sends an email formatted in a specific way. E. g. using a subject like "Re: https://tilde.club/~barnold/some-page.html" to comment on "https://tilde.club/~barnold/some-page.html". Then you could provide a script that tilde.club users can invoke like this:
[...]
One last note: Commenting in this way would also work just as well for gopherholes and gemini capsules. You would simply change "https" to whatever protocol is used to serve the page in question.
Well, I like this idea as well. It adds very little friction, and as you say, everyone on ~club has already an inbox setup and ready to receive comments (quite likely everyone on other tildes too)
To be honest, I like this idea better than mine :).
On 2025-06-29 17:39 ICT, Frank Seifferth wrote:
Another alternative would be to use email. You could write a script
Yes, that's an appealing idea!
either via sieve rules or via a cron job – to add those comments to your
Oh, I hadn't considered cron. Or incron perhaps, to avoid polling. About sieve, I vaguely knew that in principle sieve rules can invoke programs. But how to set it up... I found
https://doc.dovecot.org/main/core/plugins/sieve_extprograms.html
which I have to confess looks daunting to me. Deepend (I guess) would have to do the configuring and I'd be useless for help.
Furthermore, by relying on email as the transport medium, the "comment" script mentioned above would automatically work for all tilde.club users.
Users that don't would simply receive comments in their email inbox.
A good feature.
One last note: Commenting in this way would also work just as well for gopherholes and gemini capsules. You would simply change "https" to whatever protocol is used to serve the page in question.
Another good feature! Email has nice features for this, for sure.
Thank you for your thoughts.
I just pursued the email-commenting idea a bit further and put together a few quick scripts. Initial testing suggests that the scripts might actually work. For those interested, you can
On 2025-06-30 21:39 ICT, Frank Seifferth wrote:
I just pursued the email-commenting idea a bit further and put together a few quick scripts. Initial testing suggests that the scripts might actually work. For those interested, you can
git clone https://tilde.club/~seifferth/repos/mailcomment/
Thanks!
On 2025-06-29 17:39 ICT, Frank Seifferth wrote:
Another alternative would be to use email.
Inspired by this, I present -
https://tilde.club/~barnold/how-to-comment.html
Please give it a try. I'm curious to see whether it survives use "in the wild". Thanks,
On 2025-07-07 17:00 ICT, barnold@tilde.club wrote:
Inspired by this, I present -
I wrote some notes about the implementaton on https://tilde.club/~barnold/. If you spot a problem, especially a security hole, please let me know!
Thanks,
On 2025-06-28 23:08 ICT, Alan Schussman wrote:
This is a great use for webmentions, too. I'm now using https://webmention.io for this on a blog
I took a look at that and I'm not sure I can understand what it does! If I understood correctly, which is doubtful, it's for this situation,
Alice makes a comment on site B that mentions site A.
Site B has some configuration that sends a "webmention" to site A.
Site A show something on a page saying "we were mentioned on site B".
I'm afraid that might be "above my pay grade", as they say! E.g. I couldn't figure out whether "site" would mean tilde.club or could mean e.g. tilde.club/~barnold.
Thanks for your thoughts.
On 29 Jun 2025, at 18:09, barnold@tilde.club wrote:
On 2025-06-28 23:08 ICT, Alan Schussman wrote:
This is a great use for webmentions, too. I'm now using https://webmention.io for this on a blog
I took a look at that and I'm not sure I can understand what it does! If I understood correctly, which is doubtful, it's for this situation,
Alice makes a comment on site B that mentions site A.
Site B has some configuration that sends a "webmention" to site A.
Site A show something on a page saying "we were mentioned on site B".
That's the gist of it! The comment or reply is just another web page with a link to the target. The link is the way the webmention tool knows what target to assign the webmention to. When site B's webmention service sends a notice to site A's webmention service, that target service does a small amount of validation and then stores the record of the second page site linking back to it.
The easiest way to support webmentions is to use an external service and embed a bit of javascript into your page. When your page loads, that javascript essentially asks the service, "hey, what mentions link to _this page_?" and returns that content in a list.
they say! E.g. I couldn't figure out whether "site" would mean tilde.club or could mean e.g. tilde.club/~barnold.
Either works. All the owner of a page needs to do is include a webmention endpoint in their header that points to the service they're using. After setting up an account at webmention.io, mine is:
``` <link rel="webmention" href="https://webmention.io/prettygoodhat.com/webmention" /> ```
This same endpoint could be used for multiple sites you own, even at different domains. So you could set up just ~barnold/guestbook.html to receive webmentions, or you could include it in the header of every page on your site, if you wanted to receive mentions everywhere. Once you're collecting mentions, displaying them is a little more work. Happy to share the javascript I use to fetch a page's mentions from webmention.io if you're interested.
cheers, Alan
Hello all --
I use Webmentions on my own tilde.club website. https://tilde.club/~artlung/ - I have an include file that caches them. I have it set up so if I see a new one then I'll delete the cache file on tilde.club and do that manually.
Happy to answer questions about that in GitHub if there are any. https://github.com/artlung/artlung-tilde-club
Have a great week,
Joe -- Joe Crawford · Web Developer · +1.805-857-3951 · San Diego · https://artlung.com/
On Sat, Jun 28, 2025 at 9:08 AM Alan Schussman alan@schussman.com wrote:
This is a great use for webmentions, too. I'm now using https://webmention.io for this on a blog, but previously had my own home-rolled script to receive and store them. The mechanic is honestly a lot like barnold's proposal: You can hit a service to make the webmention request (with curl or other method), make your comment and do something like $ mention comment.txt https://<remote_comment_url> with a webmention CLI (there are a bunch).
If you don't want to use javascript to display the replies from webmention.io, you can use a cron job to periodically poll, download and build a local store of replies.
alan
On 28 Jun 2025, at 6:48, jmcs wrote:
Hi there,
On Sat, 28 Jun 2025, barnold@tilde.club wrote:
After admiring a club web page such as, say, http://tilde.club/~barnold/ , you want to make a comment to say how wonderful it is.
In your account on club, you create a text file comment.txt saying "Love your page!". Then at a shell prompt you run
$ ~barnold/bin/make-comment comment.txt
which adds the contents of your comment.txt to a comment page, say http://tilde.club/~barnold/comments.html . Since you were logged in at club, your comment is automatically attributed to you.
I'm not aware of anything exactly like this. It's not a bad idea as such, but it'd require some coordination among everyone involved.
- all the users would need to have a comments.html page with the same
format
- this hypothetical script would have to accept several params: user
you are commenting to, maybe url you are commenting about (is it a comment
to the page, a blog post...?)
- html could make this a bit messy: this script would have to insert
some text not at the end of a page, but before any </body> or whatnot
I guess the need to coordinate all of this might be the reason people would most likely set up their own guestbook (that often don't require abandoning the browser to make a comment)
I like the idea of it being "internal" to a particular tilde, and using the username to signify authory directly, but I'm not sure what sort of comitee you'd need to coordinate this
a simpler system would be to have a file somehwere with maybe this format (writable by everyone?):
URL_YOU_ARE_COMMENTING (space) date? (space) user (space) message
and, everyone that wanted to show messages in a page could add a bit of cgi doing "grep (^current_url) /var/www/this/file_that_saves_comments"
... it would have fewer moving parts, maybe
I don't know, I like thinking out loud :D. Maybe there's already something I'm not aware of, let's see
Does such a thing already exist? If not, is there any show-stopper that makes it infeasible?
Thanks,
-- barnold http://tilde.club/~barnold/ Saigon 17:32 ICT ► 25.0°C ◆ Clouds ◆ 28Km/h W ◆ 94% RH
Regards, jmcs
On 2025-06-28 20:48 ICT, jmcs wrote:
I'm not aware of anything exactly like this. It's not a bad idea as such, but it'd require some coordination among everyone involved.
Oh, that sounds more ambitious than what I had in mind. I was imagining just some script for my own public_html.
- all the users would need to have a comments.html page with the same format
- this hypothetical script would have to accept several params: user you are commenting to, maybe url you are commenting about (is it a comment
to the page, a blog post...?)
- html could make this a bit messy: this script would have to insert some text not at the end of a page, but before any </body> or whatnot
I think a simpler form might be doable, e.g. just a single comment page at ~barnold/comments.html. Taking care of permissions might not be easy. The commenter would write to a "well known" location in their home directory perhaps, e.g. ~jmcs/barnold-comment.txt. Incorporating that comment into my page would have to run as me I think, for safety, so perhaps triggered with a signal. Not sure. Seems like there's no cut-and-dried thing to do this.
Thanks for your thoughts.
So, you can just create the bash script and make it availabe at your home directory so everyone interested will just add the path to use as "mkcomment That is wonderfull" instead of "/home/barnold/bin/make-comment That is wornderfull" and yes everyone interested will need to have an .comments file with chmod 666 and the path to the .comments file chmod 755 and the bash script could be as simple as: #!/bin/bash
# Check if a comment is provided if [ -z "$1" ]; then echo "Usage: make-comment 'Your comment here'" exit 1 fi
# Get the current directory current_dir=$(pwd)
# Define the path to the .comments file comments_file="$current_dir/.comments"
# Append the comment to the .comments file echo "$1" >> "$comments_file"
There are a lot of ways to accomplish it but yeah just do it and people will use it if they want to.
Best regards, hate at tilde
On Sat, Jun 28, 2025 at 05:41:49PM +0700, barnold@tilde.club wrote:
After admiring a club web page such as, say, http://tilde.club/~barnold/, you want to make a comment to say how wonderful it is.
In your account on club, you create a text file comment.txt saying "Love your page!". Then at a shell prompt you run
$ ~barnold/bin/make-comment comment.txt
which adds the contents of your comment.txt to a comment page, say http://tilde.club/~barnold/comments.html. Since you were logged in at club, your comment is automatically attributed to you.
Does such a thing already exist? If not, is there any show-stopper that makes it infeasible?
Thanks,
barnold http://tilde.club/~barnold/ Saigon 17:32 ICT ► 25.0°C ◆ Clouds ◆ 28Km/h W ◆ 94% RH
So I did not read all messages on this thread just the first one and make it as a proof of concept.
Everyone interesred on this just add export PATH="/home/hate/bin:$PATH" alias ht='/home/hate/bin/ht' at the end of ~/.bashrc with your text editor
If you run ht --setup at your webroot dir like ~/public_html people will be able to read it at https://tilde.club/hate/.comments.txt (this is a live demo) or by going to your directory at /home/hate/public_html/.comments.txt (my ~/ is blocked)
Now you will be able to run ht "wonderful it is" on the folder project or any directory you want to and are allowed by the system
If you wish, you can edit the alias line to use another name instead like make-comment as he used as an example.
The ht --setup just deals with the permissions to .comments so people will be able to comment on any project/directory you want and nothing more.
Like chmod 701 to the folder and chmod 755 to the .comments file
This reminds me of twtxt that is just a text file publicly accessible for people to read. On this concept people can write at it as well so keep it in mind
On 17 July 2025 00:36:10 UTC, hate@tilde.club wrote:
There are a lot of ways to accomplish it but yeah just do it and people will use it if they want to.
Best regards, hate at tilde
On Sat, Jun 28, 2025 at 05:41:49PM +0700, barnold@tilde.club wrote:
After admiring a club web page such as, say, http://tilde.club/~barnold/, you want to make a comment to say how wonderful it is.
Does such a thing already exist? If not, is there any show-stopper that makes it infeasible?
Thanks,
barnold http://tilde.club/~barnold/ Saigon 17:32 ICT ► 25.0°C ◆ Clouds ◆ 28Km/h W ◆ 94% RH
----- hate at tilde dot club
Live demo at https://tilde.club/~hate/.comments.txt
After a scarecat fucking around I restricted my ~/ but you can use it with anyone that has run ht --setup and keep it publicly available
my ~/bin/ will stay public so you can still uses the script if you want to
On 17 July 2025 03:00:33 UTC, "Mr. H" hate@tilde.club wrote:
So I did not read all messages on this thread just the first one and make it as a proof of concept.
Everyone interesred on this just add export PATH="/home/hate/bin:$PATH" alias ht='/home/hate/bin/ht' at the end of ~/.bashrc with your text editor
If you run ht --setup at your webroot dir like ~/public_html people will be able to read it at https://tilde.club/hate/.comments.txt (this is a live demo) or by going to your directory at /home/hate/public_html/.comments.txt (my ~/ is blocked)
Now you will be able to run ht "wonderful it is" on the folder project or any directory you want to and are allowed by the system
If you wish, you can edit the alias line to use another name instead like make-comment as he used as an example.
The ht --setup just deals with the permissions to .comments so people will be able to comment on any project/directory you want and nothing more.
Like chmod 701 to the folder and chmod 755 to the .comments file
This reminds me of twtxt that is just a text file publicly accessible for people to read. On this concept people can write at it as well so keep it in mind
On 17 July 2025 00:36:10 UTC, hate@tilde.club wrote:
There are a lot of ways to accomplish it but yeah just do it and people will use it if they want to.
Best regards, hate at tilde
On Sat, Jun 28, 2025 at 05:41:49PM +0700, barnold@tilde.club wrote:
After admiring a club web page such as, say, http://tilde.club/~barnold/, you want to make a comment to say how wonderful it is.
Does such a thing already exist? If not, is there any show-stopper that makes it infeasible?
Thanks,
barnold http://tilde.club/~barnold/ Saigon 17:32 ICT ► 25.0°C ◆ Clouds ◆ 28Km/h W ◆ 94% RH
hate at tilde dot club
----- hate at tilde dot club
tildeclub@lists.tildeverse.org