Alessio Caiazza

Articles tagged 'indieweb'

Media endpoint should allow async processing

Micropub specs allows for a 202 Accepted answer for creating a new h-entry, as explained in 3.3.6 Response:

If the endpoint chooses to process the request asynchronously rather than creating and storing the post immediately, it MUST return an HTTP 202 Accepted status code, and MUST also return the Location header.

But the Media Endpoint only allows for a 201 Created answer, as explained in 3.6.4 Response.

I propose we extend the usage of 202 Accepted to the media endpoint to make static site generators compliant with the spec.

Just to give an example of my setup: my blog is statically generated in CI, and my micropub server is a stateless container that converts incoming requests into git commits, those commits in turn triggers my CI and the blog is published.

With such enviroment it will be not possible to make the image immediately available.

( 5EKG00)

Posting HTML articles with micropub

This article was posted withΒ Quill it’s an IndieWeb tool for publishing.

I used to only post notes with this, but now I implemented also the HTML version.

It supports pre-formatted text

As well as other features like:

  • bullet lists
block quotes
( 5EJF7f)

Sending your first webmention

Yes, this website supports IndieWeb webmentions!

Webmention is a web standard for mentions and conversations across the web, a powerful building block that is used for a growing federated network of comments, likes, reposts, and other rich interactions across the decentralized social web.

This means that in order send a reply you need to publish it on your website first.

This is an example of a very simple reply to this page, if you can publish it somewere online and put your URL in the box at the end of this page, it will eventually appear on my website!

<!doctype html>
<meta charset="utf-8">
<title>My first webmention reply</title>
  <div class="h-entry">
    <!-- change the content with your own info, all fiels are optional -->
    <div class="u-author h-card"> 
      <img src="" class="u-photo" width="40">
      <a href="" class="u-url p-name">Alessio Caiazza</a>
      in reply to:
    <p class="e-content">This is my first webmention!</p>

Don’t know where to start? Take a look at the IndieWeb Getting Started page.

If you don’t have a website yet, you may consider using my GitLab Pages template to quickly create and deploy one.

( 59qCgD)

This is really cool Lorenzo!

I’d like to suggest you take a look at the indieweb movement.

There are new technologies, like webmentions that you could use to implement likes and reply in a federated way.

And a static site like yours (or mine), can leverage as a free backend.

As an example, this reply was posted on my own site, and syndicated here on your Disqus.

( 59X9YE)

sorry for the trouble!

Please don’t feel sorry for this, you made a lot available for free to all of us.

Thanks for checking.

My site is statically generated and I implemented newbase60 deterministic short links with javascript redirects (not the best option).

I have 2 options I can apply easily:

  1. add webmention links in <head> in the shortlink pages, but then will send mentions to my canonical URL or to the permashortlink?
  2. this is more complex to implement, but I could generate a config file that will force the webserver to issue 302 redirects for the permashortlinks.

Will option n. 1 be enough for fixing this?

( 59VH0G)

Hello. My name is Alessio Caiazza. I'm also known as nolith. I love writing code and technology. I'm passionate about production engineering.

This is where I write my thoughts trying to follow IndieWeb principles.

Staff Backend Engineer, Delivery @ GitLab


IU5BON HamRadio callsign

"Il sapere umano appartiene al mondo."

← An IndieWeb Webring πŸ•ΈπŸ’ β†’