#[jdpinto1]Just a thought from an amateur: for static sites hosted on GitHub, would it be possible / a good idea for a webmention endpoint to simply add new webmentions to a JSON file on the site’s repository and push changes as they come?
#[jdpinto1]webmention.io keeps all webmention data on its own site, which a bit of JavaScript on a static site can call and parse through—that’s my current set-up and it works well. I think webmention.herokuapp.com, which is specifically geared towards static sites, works the same. But keeping all the webmention data in the repository itself would provide much more flexibility, create automatic backups of webmentions, and—most importantly—would
#[jdpinto1]Has this been tried before? Or is there a problem with it that I haven’t thought of?
coolboy joined the channel
#[jdpinto1]I imagine a single JSON file with all of the site’s webmentions could get too large to load quickly, but the data could be kept in a separate JSON file for each page that receives webmentions. That way, the browser would only have to load the data for the specific page it’s on.
#aaronpkI don't know if that exact approach has been done, but there are several versions of webmention processing thingies for static sites
#ZegnatMuch like how there is a Micropub-to-GitHub bridge, I imagine a Webmention one is very possible too. I am not sure if there is enough of a standard way for storing Webmentions that it would make sense as a service though
#aaronpkbut yeah it totally depends on how the static site wants to store that data
[frank] joined the channel
#[frank]Talking about webmentions, are there scripts or repos with a possibility to receive a notification when I receive a webmention? I know I can use webhooks but I have no idea how to integrate this in the Heroku setup I use now.
[Vincent] and edgardini joined the channel
#ZegnatI think some people have experimented with things like Pushbullet and/or similar services to get push notifications
#ZegnatNot sure any of it was published as open source projects
#[Vincent][jdpinto1] I store webmentions locally from Webmention.io My Heroku server receives the POST from webmention.io and turns it in to a JSON file, I store in my repo. When my website rebuilds I rebuild the webmentions each time.
#[Vincent]I stored them separately (rather than in one file) because there were complicated race conditions if a site sent you multiple mentions at once. You would be updating the file to add the first mention while the second/third etc would try to access the file and fail. I didn’t want to build a complicated queue system to manage this, so I store each mention based on their ID and use the webemention datestamp as the file location.
stevestreza joined the channel
#[Vincent]In a nutshell, yes you can do it. And it’s simpler to store them locally one per JSON file. 🙂
#[jdpinto1][Vincent] Excellent! I knew someone must already be doing this! I’ll have to take a look at your setup when I have the time and maybe ask you some questions. Thanks! 👍🙃
dustyweb, KartikPrabhu, [schmarty] and [jgmac1106] joined the channel; dustyweb left the channel
#[jgmac1106]!tell snarfed best repo for brig.gy want to change the directions in wordpress to A say use HTML widget and put the link to widget under the link they have to copy
#ZegnatI hope snarfed has a better time trying to parse that sentence than me, [jgmac1106] ;)
#[jgmac1106]sorry...meaning after watching 30 people install it. I want to change the directions based on user feedback. A: You should use the custom html and not the text widget. B: the liobe of code to copy should be above "Next Step Click this link
#[jgmac1106]So so many people click the link before copying the line and then be like, "Now what do I do?"
#LoqiStatamic is a commercial flat-file CMS built on PHP, with Antlers templating, and YAML + Markdown for storing articles and pages (YAML for metadata, Markdown for the content), but no known IndieWeb building blocks support yet, nor IndieWeb examples https://indieweb.org/statamatic
KartikPrabhu, [metbril], [schmarty], benwerd and leg joined the channel
#Loqisnarfed: [jgmac1106] left you a message 3 hours, 38 minutes ago: best repo for brig.gy want to change the directions in wordpress to A say use HTML widget and put the link to widget under the link they have to copy