Skip to content
/ tootback Public template

Take ownership of your Mastodon data and get your toots back

License

Notifications You must be signed in to change notification settings

mojoaxel/tootback

Repository files navigation

tootback

Host your own Mastodon archive.

Demos

Why?

Like everything in this universe Mastodon servers are ephemeral. They often come to life in a highly energetic moment, glow for some time and than vanish out of existence again because some update goes wrong or human things happen. If you want your toots to be hosted after your server is long gone you could use this repository to generate a static website with your content.

How?

I used the wonderful static page generator 11ty for this. Eleventy was a perfect fit for this! Not only does it support multiple templating languages and other nice features, it also supports dynamic JS data files so the content can directly get pulled out of the zipped archive.

Usage

  1. Clone or download this repository or use it as a template.
  2. In your terminal cd to the folders of the project.
  3. Download your mastodon archive and put the resulting archive-xxxxxx.tar.gz in the projects archive folder. You can have multiple archives in that folder, we will always use the newest.
  4. Adopt settings in _data/meta.json and src/theme.css.
  5. Make sure you have Node.js installed on your system.
  6. Install all dependencies by running npm ci.
  7. Build the website by calling npm run build.
  8. Copy everything from the _site folder to a static webserver or simply enable GitHub Pages for the gh-pages branch.

Related Projects?

License

Copyright 2022 by Alexander Wunschik.

Licensed under a AGPL-3.0-or-later license.

If you change the code you are legally required to publish it!
This is the idea of #OpenSource, please respect it!

About

Take ownership of your Mastodon data and get your toots back

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published