Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@devidw/replika-diary-export

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devidw/replika-diary-export

Export your entire Replika diary including all images.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

Replika Diary Export

This repository is a simple way to export your replika diary to a local JSON file (./export/diary.json). All images are exported into a separate folder as well (./export/images).

Installation

npm install @devidw/replika-diary-export

Usage

Once you have installed the package, you need to set a few environment variables, which the script will use to identify your account when connecting to the replika API at https://my.replika.com/api/.

These variables are:

  • X_AUTH_TOKEN
  • X_USER_ID
  • X_DEVICE_ID
  • X_TIMESTAMP_HASH

You can find these variables inspecting the traffic from your developer tools in your browser. To do so, navigate to the network tab and see the request headers to the replika API. From there, you can find the values of the variables and copy them to set the environment variables.

When you are ready, here is how you can export your diary:

import ReplikaDiaryExport from "@devidw/replika-diary-export"

const replikaDiaryExport = new ReplikaDiaryExport()
replikaDiaryExport.export()

Once the execution is finished, you will find a file called diary.json in the ./export folder containing the exported diary. As well, you will find a folder called images containing all the images exported and downloaded from the replika API.

Keywords

nodejs

FAQs

Package last updated on 14 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts