https://github.com/devidw/replika-chat-export
Export your replika chat messages.
https://github.com/devidw/replika-chat-export
ai-bot chat chatbot data-ownership download export exporter exports ownership replika
Last synced: 8 months ago
JSON representation
Export your replika chat messages.
- Host: GitHub
- URL: https://github.com/devidw/replika-chat-export
- Owner: devidw
- Created: 2022-05-07T16:35:29.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T16:33:03.000Z (over 1 year ago)
- Last Synced: 2025-04-22T10:38:31.940Z (12 months ago)
- Topics: ai-bot, chat, chatbot, data-ownership, download, export, exporter, exports, ownership, replika
- Language: JavaScript
- Homepage: https://index.garden/replika-export/
- Size: 5.8 MB
- Stars: 19
- Watchers: 1
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.adoc
Awesome Lists containing this project
README
= Replika Chat Export
ifdef::env-github[]
:tip-caption: :bulb:
:note-caption: :information_source:
:important-caption: :heavy_exclamation_mark:
:caution-caption: :fire:
:warning-caption: :warning:
endif::[]
So you want to export your chat messages with your https://replika.com[replika]?
CAUTION: Looking for a no-code, one-click, zero-setup export? Check out my https://chromewebstore.google.com/detail/immbjhielfhbemfnjfnddblchipnefmf[browser extension].
Here is how to do it:
. Clone the repo and open it in VS Code:
+
[source,console]
----
git clone https://github.com/devidw/replika-chat-export
code replika-chat-export
----
. Make sure you have the
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers[Dev
Container's extension] installed and open the folder as container
. The export script will open a web socket connection to ws.replika.com. To
authenticate yourself, you need to provide your auth details. Set the needed env
variables and the script will include them when fetching your messages. You can
set them in a `.env` file:
+
[source,console]
----
REPLIKA_CHAT_ID=XXXXXXXXXXXXXXXXXXXXXXXX
REPLIKA_USER_ID=XXXXXXXXXXXXXXXXXXXXXXXX
REPLIKA_AUTH_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
REPLIKA_DEVICE_ID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
----
// REPLIKA_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
+
To get your values, open the dev tools on https://my.replika.com and follow the
details on the screenshot:
+
image::./extract.png[]
+
. Once you have all required env variables set, you can execute the export
script:
+
[source,console]
----
pnpm run dev
----
. This will call `main.js` and queries your messages in chunks of 100 messages,
once there are no more messages to fetch, all your messages will be written into
`messages.json` on your local file system
== Performance
You should be able to export around 300 messags per second.