A self-hosted Micropub endpoint for statically-generated microblogs. ⚡️
microstat lets you publish Markdown posts to a statically-generated microblog via Micropub, with automatically-sent Webmentions and integration with the micro.blog service.
This enables you to post to your static microblog entirely using the web (for example, using a web-based Micropub client like Quill).
Here's how it works:
microstat requires Node.js v12 or newer. Once you've installed Node.js:
$ git clone https://github.com/joshdick/microstat.git
$ cd microstat
$ npm install
$ cp config/dist.js config/local.js
# Edit `config/local.js` and change the values to fit your site as described by the comments above each value
$ npm start
You can manage and start microstat as a systemd service or using a tool like nodemon.
Note that microstat doesn't need to run on the same port, or even the same server, as your microblog. You could directly advertise your microstat server as your site's Micropub endpoint, or you can advertise a proxy to it.
Here's how I proxy to microstat on my microblog:
<link rel="micropub" href="https://joshdick.net/micropub" />
https://example.com:3141
):location /micropub {
proxy_pass https://example.com:3141;
}
Issues and pull requests are welcome! ?