This tool automatically exports your Perplexity conversations as markdown files. Built with TypeScript and Puppeteer.
- Install dependencies:
npm install- Create a
.envfile in the project root with your Perplexity credentials:
[email protected]
PERPLEXITY_PASSWORD=your_password
OUTPUT_DIR=./conversations
You can run the exporter in several ways:
- Development mode (with auto-reload):
npm run dev- Direct execution:
npm start- Build and run the compiled JavaScript:
npm run build
node dist/index.jsThe script will:
- Log in to your Perplexity account
- Navigate to your conversation library
- Export each conversation as a markdown file
- Save the files in the specified output directory (defaults to
./conversations)
Each conversation is saved as a markdown file with:
- The conversation title as the main heading
- Each message marked as either "User" or "Assistant"
- Messages separated by horizontal rules
- The script includes a 1-second delay between processing conversations to be respectful to the server
- Files are named using the conversation title (sanitized for filesystem compatibility)
- The script runs Chrome in headless mode
- Built with TypeScript for better type safety and developer experience