#dev 2022-02-01

2022-02-01 UTC
jacky and Seirdy joined the channel
#
[tantek]
what is offline first
#
Loqi
offline first is a method of developing a website that once a user has visited it once on their device, it will always provide at least some content (posts) and or features (like creating posts) when they revisit even when offline without internet access, using technologies like Service Workers and Local Storage https://indieweb.org/offline_first
#
[tantek]
offline first << Example of a game (Wordle) that is built to work offline until 2026: https://twitter.com/mcclure111/status/1488275144069898240
#
@mcclure111
Hm. Interesting. Just saved a copy of Wordle as "Web Page (Complete)" to my downloads folder, unplugged my computer from the Internet and my local Wordle worked fine. Only problem was the play history didn't carry over (because different localstorage domain) https://twitter.com/ilianathewitch/status/1488272612790730754
(twitter.com/_/status/1488275144069898240)
#
Loqi
ok, I added "Example of a game (Wordle) that is built to work offline until 2026: https://twitter.com/mcclure111/status/1488275144069898240" to the "See Also" section of /offline_first https://indieweb.org/wiki/index.php?diff=79433&oldid=78548
#
[tantek]
aaronpk, there are techniques for exporting from an app that is at one domain and having another iframe it and import that information
#
[tantek]
so it's theoretically possible that the "Web Page (Complete)" copy could import play history
#
[tantek]
it takes some code on both ends
Seirdy, zachburau[d], angelo, gRegor, jacky, KartikPrabhu1, bg2 and [aciccarello] joined the channel
#
capjamesg[d]
Can a h-feed, in the current state of the spec, include a feed of anything other than h-entry objects?
jamietanna joined the channel
#
jamietanna
I have `h-feed`s including `h-measure` or `h-event`s, so either my `h-feed` isn't compliant, or it's OK? :D
#
capjamesg[d]
We had a discussion about this a while ago but I cannot remember the outcome.
#
capjamesg[d]
I discussed it in the context of h-events in a feed.
#
sknebel
but in practice I'm sure many do it
#
Loqi
[dshanske] #3 Do Not Restrict H-Feed to Only Contain H-Entry
#
sknebel
and its more a "we should fix the spec to match practice"?
#
capjamesg[d]
I thought that was the case.
#
capjamesg[d]
I think I might skip implied h-feed parsing in indieweb-utils then as I shall have to accommodate for all h-* types.
#
capjamesg[d]
(That is not to say I will not come back to it though).
Loqi and oxo111999 joined the channel
#
capjamesg[d]
[tantek] Re: coffee/cafes. How about a MediaWiki? Categories could be used to "tag" cafes. There would be a page that listed certain tags that should be used (i.e. Open Early, Offers Speciality Coffee, Accepts Reusable Cups) and can be tagged on any page.
#
capjamesg[d]
This way, the editing interface / linking / everything is already built to start.
doubleloop[m], reed, npd[m], diegov, rommudoh[m], nekr0z, Abhas[m], samwilson, zack[m], mambang[m], [jackjamieson], marksuth[d], LaBcasse[m], EvanBoehs[m], jamietanna[m], binyamin[m], unrelentingtech, kandr3s[m], ermahgerddavid[m, kinduff, juanchipro[m], micahrl[m], Matt[m]12 and jacky joined the channel
#
kinduff
Hello, I'm consuming the webmention.io webhook calls and I noticed that when a web mention gets deleted, the notification arrives just with a source, target and a deleted flag. Is there a way to determine the ID of the web mention that was deleted? Using the source can be tricky.
#
kinduff
Sorry if this is not the right place to ask
#
jacky
kinduff: no it's the right place!
rommudoh[m], nekr0z, reed, Abhas[m], samwilson, LaBcasse[m], zack[m], doubleloop[m], diegov, EvanBoehs[m], npd[m], mambang[m], micahrl[m], binyamin[m], jamietanna[m], unrelentingtech, kandr3s[m], ermahgerddavid[m, Matt[m] and juanchipro[m] joined the channel
#
jacky
so IIRC the idea is that the receiver would determine that kind of information (like taking a target and determining what would be needed there)
#
aaronpk
the source and target URL uniquely identify the webmention, so you can store the two URLs yourself if you are trying to map them to an ID
#
kinduff
aaronpk: how open would you be to add return the ID here just for the info? https://github.com/aaronpk/webmention.io/blob/daea65e326ef55475c4c4b0a87c7615162a09d8f/controllers/controller.rb#L126, I can do a PR
#
jacky
kinduff: I'll note that relying on an external ID here would make your Webmention logic very specific to webmention.io
#
jacky
and conventionally, consumers of Webmention endpoints avoid that so they can use whichever one they'd like
#
[snarfed]
jacky++
#
Loqi
jacky has 20 karma in this channel over the last year (61 in all channels)
#
kinduff
makes ense
#
kinduff
* makes sense
jacky, Guest6, KartikPrabhu and oxo111999 joined the channel
#
@TerribleMia
Ever since @css/@robinrendle wrote about "Weird Browsers" I've been trying to imagine a browser that helps non-technical folks: - create a basic personal site, not locked to a platform? - wire up indieweb stuff like webmentions/rss? - follow friends? etc https://css-tricks.com/newsletter/273-weird-browsers/
(twitter.com/_/status/1488582497382408197)
#
[manton]
@capjamesg Neat. Of course, if this starts to get a lot of data in it, we’re going to need an API for other apps to query it… 🙂
#
capjamesg[d]
HTML is my API 🙂
#
oxo111999
does it have to be a full browser or could it just be a plugin?
#
oxo111999
making a browser and getting ppl to adopt it is a lot
#
sknebel
what is archive?
#
Loqi
archive in the context of the indieweb refers to date-grouped (often monthly) sets of posts (AKA personal historical archives, a common form of temporal navigation), but can sometimes mean archival copy, a copy of a web page made (often by someone other than the author) at a particular point in time https://indieweb.org/archive
#
sknebel
what is archiving?
#
Loqi
archive in the context of the indieweb refers to date-grouped (often monthly) sets of posts (AKA personal historical archives, a common form of temporal navigation), but can sometimes mean archival copy, a copy of a web page made (often by someone other than the author) at a particular point in time https://indieweb.org/archiving
#
sknebel
archival copy << https://github.com/iipc/warc2html tool to turn a [[WARC]] recording into standalone static files
#
Loqi
ok, I added "https://github.com/iipc/warc2html tool to turn a [[WARC]] recording into standalone static files" to the "See Also" section of /archival_copy https://indieweb.org/wiki/index.php?diff=79439&oldid=78044
#
[tantek]
capjamesg[d]++ congrats! and clever domain! 😂
#
Loqi
capjamesg[d] has 24 karma in this channel over the last year (67 in all channels)
#
[tantek]
now quickly before you get a bunch of rando spam accounts, set it up to only do IndieAuth login (same as IndieWeb wiki)
#
[tantek]
because the point here isn't to grow a silo (with a bunch of new accounts), the point is to collaborate on a prototype to figure out how this would work on the IndieWeb with people eventually posting everything to their own site and the "browsing" site being "only" an aggregator/cache
#
[tantek]
as an immediate measure, turn off email account creation ASAP
#
[tantek]
even before you get the IndieAuth sign-in setup
#
[tantek]
for other customizations to the MediaWiki you almost certainly want
#
capjamesg[d]
That’s a good link sknebel. Good to know that sort of tool exists.
#
sknebel
yeah, that part has always been a struggle when dealing with WARC
#
capjamesg[d]
[tantek] good suggestions! I’m done for the day but will work on them soon.
#
capjamesg[d]
I also want to stub out a wiki page to experiment a bit with format / what I want to share.
#
capjamesg[d]
In terms of syndicating from one’s website I wonder how that could work.
#
[tantek]
capjamesg[d] understandable. Wanted to warn you about the email / account sign-up thing before you got overwhelmed with spam sign-ups. Might want to take care of that one thing.
#
capjamesg[d]
Maybe the wiki can accept web mentions and create pages from new h-entries with a syndication link?
#
capjamesg[d]
And for actual place pages, those would be aggregates of personal stories w/ high level info too.
#
sknebel
that'd be doable to script
#
sknebel
editing MW automatically is annoying due to the markup language, but creating pages or adding stuff to sections etc is doable
#
capjamesg[d]
The place pages can be made using the Mediawiki editor and all of the reviews / recommendations from websites can be programmatic.
#
capjamesg[d]
(Note: anyone can assist with this! Just let me know and I’ll get you set up.)
#
[tantek]
all of them should be syndicatable
#
[tantek]
capjamesg[d], some folks do have their own place pages
#
[tantek]
what is a venue
#
Loqi
A venue is a named location or address/geo that is typically used for checkins https://indieweb.org/venue
#
capjamesg[d]
How would one edit those pages?
#
[tantek]
ideally any "content" (whether place, review, comment) should be something that can be syndicated in from a personal site
#
[tantek]
collaborative venue editing is definitely an interesting challenge!
#
[tantek]
there are two examples offhand that are worth looking at IMO (they have different useful features)
#
[tantek]
OSM place editing, and Foursquare/Swarm venue editing
#
capjamesg[d]
I’ll also need to draft up a page or two on what a good entry would look like / what sorts of things reviews vs. places should include.
#
[tantek]
both have *different* abilities to edit depending on who is doing the editing
#
[tantek]
before drafting up those pages on what's good, better to actually draft a few good entries 🙂
#
[tantek]
document from existing behavior, not a priori
#
capjamesg[d]
I shall also have to find a logo to represent this project.
#
capjamesg[d]
The MediaWiki default isn't exactly ideal 🙂
#
capjamesg[d]
Absolutely 🙂
#
capjamesg[d]
Registrations are disabled btw.
#
[tantek]
nice work 🙂
#
capjamesg[d]
[tantek] I have a script that creates a new page on the wiki. now to add some mf2 magic to parse a h-entry and turn it into a wiki page.
#
capjamesg[d]
(These are testing pages. I'll delete them when ready.)
#
capjamesg[d]
webmention.io supports webhooks right?
#
Zegnat
As in, them sending webhooks to you for receiving webmentions? Yes
#
Zegnat
Or at least, it is in the source, haha
jacky and gRegor joined the channel
#
capjamesg[d]
[tantek] the editing feature could work by someone copying the page source onto their website with the changes they want to make.
#
capjamesg[d]
The webmention hook would then tell my script that the page is an edit request, not a create request, and replace the page contents.
#
capjamesg[d]
aaronpk how does web sign in work on the IndieWeb wiki?
#
capjamesg[d]
[tantek] and maybe the script could recognize h-reviews too and tag pages as appropriate.
#
[tantek]
capjamesg[d], yes there are some existing ideas about how to make /edit posts work using IndieWeb posts and Webmention.
#
[tantek]
some of them are roughly as you describe, with an edit being a complete replacement
#
[tantek]
what is edit
#
Loqi
An edit (AKA diff, change) is a special type of reply that indicates a set of suggested changes to the post it is replying to. A collection of (presumably related) suggested edits in open source is often called a patch or pull request https://indieweb.org/edit
#
[tantek]
Have a read through https://indieweb.org/edit#Brainstorming in particular and feel free to add a new section with your suggestion too! "someone copying the page source onto their website with the changes they want to make"
#
capjamesg[d]
I also wonder if it is worth grouping reviews under separate pages.
#
Loqi
[vouch] vouch-proxy: an SSO and OAuth / OIDC login solution for Nginx using the auth_request module
#
aaronpk
sknebel beat me to it
#
aaronpk
i need to rename that mediawiki extension
#
capjamesg[d]
Thanks sknebel.
#
capjamesg[d]
That explains how the SSO part works that’s mentioned in the IndieWeb extension.
#
capjamesg[d]
Thank you!
kubie joined the channel
#
[tantek]
sknebel, aaronpk, can you add that to https://indieweb.org/mediawiki-customization ? Currently there is no mention of "IndieAuth" on that page so no way for someone to figure out how to implement IndieAuth sign-in on their MediaWiki in the same way we do
#
jacky
looks like IndieWeb PWAs can get more mainline functionality with push notifications https://www.macrumors.com/2022/02/01/ios-15-4-apple-support-web-based-notifications/
#
jacky
aaronpk: maybe monocle getting a service worker to auto refresh every so often and alert on new items? :)
#
capjamesg[d]
I saw that!
#
capjamesg[d]
That is so exciting!
#
capjamesg[d]
I think my reader is the only thing other than texts that I would allow notifications for.
#
aaronpk
omg i was just talking about that the other day
#
capjamesg[d]
It’s still very early though it looks.
#
capjamesg[d]
1- It's a disabled-by-default experiment at this time
#
capjamesg[d]
“You read that right. For years, the most requested feature may finally arrive in iOS and iPadOS: Web Push and Web Notifications. But there are some catches:
#
capjamesg[d]
2- The APIs are there, but they are not working”
#
aaronpk
i do feel like at the point it hits the public betas it's not going to be long at all
#
aaronpk
relatively speaking
#
jacky
that'd make sense - I can't imagine it being too much to iron out
#
[tantek]
capjamesg[d] interesting test page! Starting with the URL, instead of using a blog post name/title (which can easily collide), use the path instead, e.g. the same way IndieNews does it, e.g. note the URL design here: https://news.indieweb.org/en/boffosocko.com/2022/01/28/indiewebcamp-personal-libraries-pop-up-session/
#
capjamesg[d]
This is a big deal in the PWA world.
#
Loqi
PWA has 1 karma over the last year
#
capjamesg[d]
One karma? Wow.
#
[tantek]
meh, "PWA" isn't great framing
#
[tantek]
how about you know, just WebApp?
#
aaronpk
when apple ships that i will absolutely add push notifications to monocle
#
aaronpk
although technically that would be a better thing for the microsub server to do...which is a weird architectural split for this
#
[tantek]
if you're going to say "progressive", you darn well better mean you have GREAT progressive enhancement support (and right now PWA does not mean that, so it's deceptive at best)
#
[tantek]
what is progressive enhancement
#
Loqi
progressive enhancement is the web development practice of building web pages, sites, apps so they are at least readable, and preferably allow for most if not all interactions, from any kind of browser, and optionally take advantage of additional capabilities (like various CSS & JS features) when available https://indieweb.org/progressive_enhancement
#
capjamesg[d]
That’s a good idea [tantek] re: URLs.
#
capjamesg[d]
I had never thought about that tantek.
#
capjamesg[d]
You’ve got to have progressive enhancement.
#
capjamesg[d]
I really hope there is a day where you can make a web app feel entirely native to the iPhone.
#
[tantek]
yeah I'd consider posting that as a PWA hot take but really I've been so good about NOT starting Twitter drama
#
capjamesg[d]
(Of course not expecting every SDK to be on the web)
#
[tantek]
capjamesg[d], wondering where to capture that aspect of URL design (besides on /URL_design ) so that folks building aggregator-like things like IndieNews would be able to re-use it as a design building block
#
[tantek]
maybe I should start a hot-takes.txt file to dump these thoughts into so if I end up coming back to the same hot take several times, then maybe its re-use utility would be greater than its snark amplification downside.
#
capjamesg[d]
rel=“hot-takes”
#
capjamesg[d]
href=“hot-takes.txt”
#
[tantek]
^ why a drafts folder needs at least one level of subfolder
kubie joined the channel
#
[tantek]
aaronpk, do you have a verb for what you call it when IndieNews "pulls a post in" from someone else's site (whether by web-mention or other mechanism)? like "syndicating-in" ?
#
capjamesg[d]
There is also a matter of licensing. Is it reasonable to say that any post submitted will be licensed under the Creative Commons? Or should there be disclaimer about “unless another license is stated above.”
#
aaronpk
it's not really full syndication since it doesn't replicate the contents of the post
#
[tantek]
"full" isn't necessary. E.g. POSSEing to Twitter does not always (rarely?) replicate the entire contents of a post
#
[tantek]
even "just" RSS is not "full" syndication since RSS feeds with partial content are definitely a well established / common thing
#
[KevinMarks]
That was the original point, yes.
#
[tantek]
so Really Short then instead of Really Simple?
#
[tantek]
or was it: Really, Short Syndication
#
[tantek]
KevinMarks it wasn't until "1.0" that it got the other expansion of "RDF Site Summary" indicating "summary" in contrast to "full"
#
[KevinMarks]
Right, but it was description rather than content originally
#
[tantek]
apologizes for falling for RSS history bait
oxo111999, sp1ff and tetov-irc joined the channel