Micropub to GitHub
The Micropub protocol is part of the IndieWeb movement.
Requires at least Node.js 6.0.0.
Install it like a normal node.js application and adds the needed configuration through environment variables, either by copying the
.env and filling the values in there or by setting them through any other mechanism.
This project contains a https://yarnpkg.com/ lock file which is a faster and more secure alternative to the npm client.
Micropub endpoint discovery
After a successful deploy the standard endpoint can be found at the
/micropub/main path where you deployed the application, like eg.
If you specified more than one site by using the
MICROPUB_SITES_JSON variable, then each one of those will be available under the name of their key like
- Creation of posts
- Uploading of media
- Replacing an existing post with a new version
- Partial update
- micropub-express – an Express Micropub endpoint that accepts and verifies Micropub requests and calls a callback with a parsed
- format-microformat – a module that takes a
micropubDocumentas its input and then formats filenames, URL:s and file content from that data to a standard format which one then can publish elsewhere. Currently supports just a single Jekyll format.
- github-publish – a module that takes a filename and content and publishes that to a GitHub repository. A useful place to send the formatted data that comes out of
format-microformatto publish it to a GitHub hosted Jekyll blog like eg. a GitHub Pages one.