Isn't there already an export option built into Lemmy?
Lemmy Support
Support / questions about Lemmy.
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.
Would be nice if it explains exactly what it does. Right now it's just a random web app asking for creds....
Good call, I'll add some explanations, kinda forgot about those.
EDIT: Done.
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.