hashcards-readwise
Installation
gem install hashcards_readwiseOr add to your Gemfile:
gem "hashcards_readwise"Usage
All-in-one sync
# Sync a hashcards collection to Readwise
hashcards-readwise sync --collection ./cards
# Dry run (convert but don't push)
hashcards-readwise sync --collection ./cards --dry-runStep-by-step
# 1. Export hashcards to JSON
hashcards export ./cards --output export.json
# 2. Convert to Readwise format
hashcards-readwise convert -f export.json -o highlights.json -d ./cards/hashcards.db
# 3. Push to Readwise
hashcards-readwise push -f highlights.jsonConfiguration
Set your Readwise API token via environment variable:
export READWISE_TOKEN="your-token-here"Or pass it directly:
hashcards-readwise sync --token "your-token-here" --collection ./cardsDeck Metadata
Add TOML frontmatter to your deck files to customize Readwise metadata:
---
name = "My Deck"
author = "Author Name"
source_url = "https://example.com/source"
image_url = "https://example.com/image.png"
tags = ["topic1", "topic2"]
---
Q: Question here
A: Answer hereLicense
MIT
