Automatically sync archived items from Readwise Reader to Day One journal entries.
When you archive an article, RSS item, or newsletter in Readwise Reader, this script creates a rich Day One entry with:
- Title and author
- Original link and Reader link
- Reading progress
- Word count and estimated read time
- AI-generated summary (when available)
- Your notes/highlights
| Item | Where to get it |
|---|---|
| Readwise API token | readwise.io/access_token |
| Day One email | Day One → Settings → Email-to-Journal |
| Gmail app password | myaccount.google.com/apppasswords |
# Clone and set up
git clone https://github.com/ysakols/readwise-dayone.git
cd readwise-dayone
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
# Set environment variables
export READWISE_TOKEN="your_token"
export DAYONE_EMAIL="your@journal.dayone.app"
export SMTP_HOST="smtp.gmail.com"
export SMTP_USER="your@gmail.com"
export SMTP_PASS="your_app_password"
export SMTP_FROM="your@gmail.com"
# Test your setup
python test_setup.py
# Run the sync
python sync.py- Fork this repository
- Go to Settings → Secrets and variables → Actions
- Add these secrets:
READWISE_TOKENDAYONE_EMAILSMTP_USERSMTP_PASSSMTP_FROM
- The workflow runs daily at midnight PT (7:00 UTC)
| Variable | Default | Description |
|---|---|---|
READWISE_TOKEN |
required | Your Readwise API token |
DAYONE_EMAIL |
required | Day One email-to-journal address |
SMTP_* |
required | Email credentials for sending |
CATEGORIES |
article,rss,email |
Content types to sync |
DAYS_BACK |
1 |
How many days back to check |
EMAIL_DELAY |
2.0 |
Seconds between emails (rate limiting) |
USE_CLI |
false |
Use Day One CLI instead of email (macOS) |
The script syncs items that are:
- Archived in Readwise Reader (articles, RSS, newsletters)
- Recently moved to archive (within
DAYS_BACKdays) - Not already synced (tracks state to avoid duplicates)
sync.py # Main sync script
test_setup.py # Verify your configuration
env.example # Example environment variables
requirements.txt # Python dependencies (just requests)
MIT