this post was submitted on 24 Jun 2024
48 points (98.0% liked)

Lemmy Support

4651 readers
4 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

So I wrote a little web app that allows a user to move their user data, like settings and subscribed/banned communities, from one account/instance to another.

It runs completely client-side, but is hosted on GitHub for the moment. Maybe it'll be of some use!

Features:

  • Export user data from any Lemmy instance (>=v0.19)
  • Download user data as a text file
  • Modify user data in the browser, e.g. to add or remove followed instances
  • Transfer user data to the target account on the target instance
top 7 comments
sorted by: hot top controversial new old
[–] Shadow@lemmy.ca 14 points 4 months ago (2 children)

Would be nice if it explains exactly what it does. Right now it's just a random web app asking for creds....

[–] Five@slrpnk.net 7 points 4 months ago* (last edited 4 months ago)

The code is completely written in JavaScript, so all the code is readable if you look at the source, which is also available on the GitHub page. https://stablenarwhal.github.io/LemmyInstanceMover/js/script.js

It looks like it uses a Lemmy API endpoint to transfer account settings.

[–] Emotet@slrpnk.net 5 points 4 months ago* (last edited 4 months ago)

Good call, I'll add some explanations, kinda forgot about those.

EDIT: Done.

[–] Five@slrpnk.net 5 points 4 months ago (1 children)
[–] Emotet@slrpnk.net 6 points 4 months ago
[–] Interstellar_1@lemmy.blahaj.zone 1 points 4 months ago (1 children)

Isn't there already an export option built into Lemmy?

[–] Emotet@slrpnk.net 2 points 4 months ago

The export/import functionality is, yes. This implementation uses the same API endpoints, but the main reason for this existing:

An instance I was on slowly died, starting with the frontend (default web UI). At least at the time, no client implemented the export/import functionality, so I wrote a simple script in Bash to download the user data, if the backend still works.

Running a script can still be a challenge to some users, so I wrote a web application with the same functionality.

It's a bit redundant if we're talking about regularly working instances, but can be of use if the frontend isn't available for some reason.