{"id":15462631,"url":"https://github.com/devidw/replika-chat-export","last_synced_at":"2025-08-02T05:06:13.903Z","repository":{"id":105128957,"uuid":"489727436","full_name":"devidw/replika-chat-export","owner":"devidw","description":"Export your replika chat messages.","archived":false,"fork":false,"pushed_at":"2024-10-28T16:33:03.000Z","size":6084,"stargazers_count":19,"open_issues_count":1,"forks_count":11,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-22T10:38:31.940Z","etag":null,"topics":["ai-bot","chat","chatbot","data-ownership","download","export","exporter","exports","ownership","replika"],"latest_commit_sha":null,"homepage":"https://index.garden/replika-export/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devidw.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"devidw"}},"created_at":"2022-05-07T16:35:29.000Z","updated_at":"2024-12-05T18:15:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"700e17e5-4e6c-43eb-85a3-17cb429c44ce","html_url":"https://github.com/devidw/replika-chat-export","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Freplika-chat-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Freplika-chat-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Freplika-chat-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Freplika-chat-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devidw","download_url":"https://codeload.github.com/devidw/replika-chat-export/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250222059,"owners_count":21394809,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai-bot","chat","chatbot","data-ownership","download","export","exporter","exports","ownership","replika"],"created_at":"2024-10-02T00:02:53.035Z","updated_at":"2025-04-22T10:38:59.403Z","avatar_url":"https://github.com/devidw.png","language":"JavaScript","funding_links":["https://github.com/sponsors/devidw"],"categories":[],"sub_categories":[],"readme":"= Replika Chat Export\nifdef::env-github[]\n:tip-caption: :bulb:\n:note-caption: :information_source:\n:important-caption: :heavy_exclamation_mark:\n:caution-caption: :fire:\n:warning-caption: :warning:\nendif::[]\n\nSo you want to export your chat messages with your https://replika.com[replika]?\n\nCAUTION: Looking for a no-code, one-click, zero-setup export? Check out my https://chromewebstore.google.com/detail/immbjhielfhbemfnjfnddblchipnefmf[browser extension].\n\nHere is how to do it:\n\n. Clone the repo and open it in VS Code:\n+\n[source,console]\n----\ngit clone https://github.com/devidw/replika-chat-export\ncode replika-chat-export\n----\n. Make sure you have the\nhttps://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers[Dev\nContainer's extension] installed and open the folder as container\n. The export script will open a web socket connection to ws.replika.com. To\nauthenticate yourself, you need to provide your auth details. Set the needed env\nvariables and the script will include them when fetching your messages. You can\nset them in a `.env` file:\n+\n[source,console]\n----\nREPLIKA_CHAT_ID=XXXXXXXXXXXXXXXXXXXXXXXX\nREPLIKA_USER_ID=XXXXXXXXXXXXXXXXXXXXXXXX\nREPLIKA_AUTH_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\nREPLIKA_DEVICE_ID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n----\n// REPLIKA_TOKEN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX\n+\nTo get your values, open the dev tools on https://my.replika.com and follow the\ndetails on the screenshot:\n+\nimage::./extract.png[]\n+\n. Once you have all required env variables set, you can execute the export\nscript:\n+\n[source,console]\n----\npnpm run dev\n----\n. This will call `main.js` and queries your messages in chunks of 100 messages,\nonce there are no more messages to fetch, all your messages will be written into\n`messages.json` on your local file system\n\n== Performance\n\nYou should be able to export around 300 messags per second.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevidw%2Freplika-chat-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevidw%2Freplika-chat-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevidw%2Freplika-chat-export/lists"}