This CLI tool helps you dump your Session Desktop electron app messenger local data.
Features:
Based on my explanation here
[!IMPORTANT] I'm looking for a job! Interested in hiring me? Visit cv.hloth.dev to review my resume & CV.
nvm install --lts
(requires nvm.sh)npm install
. At this point you might get errors about native dependencies compilation — please investigate them and fix, they're not related to code of this project. Usually you're missing some dependencies required to build them.npm run build
Now you're ready to export your data!
node out/index.js export -o /path/to/output/directory
— this will try to locate Session data directory on your computer and decrypt database along with all attachments and try to find their original filenamesIf you have set a custom Session app password, you must specify it with -p flag: node out/index.js export -p mypassword -o /path/to/output/directory
If you have set a custom Session data directory or CLI can't locate it automatically, specify it with -i: node out/index.js export -p mypassword -i /path/to/session/data/dir -o /path/to/output/directory
You can also skip attachments decryption if you want because it takes significant amount of time, especially if you have tens of thousands media files saved: --skip-attachments
. I don't recommend it as you won't be able to complete the next step.
node out/index.js html /path/to/output/directory
. This will generate the website in the output directory which you can run with any SPA webserver. For simplicity, this command also puts a node.js script that starts up webserver with your mini website called start-web.js. Just run node /path/to/output/directory/start-web.js
and go to http://localhost:8080/ in your browser and you should see all your conversations safely preserved.