Obsidian Readwise (Community Plugin) is an unofficial plugin to synchronize Readwise highlights into your Obsidian Vault.
Note: This plugin requires a subscription with Readwise — a paid service that makes it easy to aggregate and review all your reading data into one place.
After installation, it will ask for an API token. This is required in order to pull the highlights from Readwise into your vault.
If you don't configure the API token on installation, you can always configure it on the Settings section.
NOTE: The token is stored using localStorage and it may have conflicts if the same vault were to be open on 2 different windows.
Readwise: Sync highlights
: Will pull any new highlights from Readwise since the last time it was synced.
The plugin supports templating the header of a note and each individual highlight. Templates are only evaluated during note creation and when adding new highlights.
The templating system in use is Nunjucks.
The default header template is:
- **URL:** {{ source_url }}
- **Author:** {{ author }}
- **Tags:** #{{ category }}
- **Date:** [[{{ updated }}]]
---
This can be overwritten by configuring the Custom Header Template Path
setting to the path of a different template. The available parameters for a custom header template are:
title
source_url
author
category
updated
num_highlights
id
highlights_url
You can find the details of these fields in the Readwise API docs, under the Books LIST
section.
The default highlight template is:
{{ text }} %% highlight_id: {{ id }} %%
{%- if note %}
Note: {{ note }}
{%- endif %}
This can be overwritten by configuring the Custom Highlight Template Path
setting to the path of a different template. The available parameters for a custom highlight template are:
text
note
id
location
book_id
url
location
updated
You can find the details of these fields in the Readwise API docs, under the Highlight DETAIL
section.
If the custom highlight template doesn't include highlight_id: <id>
, then this will be appended at the end of the rendered content as %% highlight_id: <id> %%
(
Note: You can find examples of custom templates under tests/data folder.
On plugin load, an authors.json
file will be created (if not present), under the obsidian-readwise
plugin folder (.obsidian/plugins/obsidian-readwise
). There you can define mappings for Readwise author's field value. This will be applied only during the creation of new notes
Example mapping:
{
"perell.com": "David Perell",
"charity.wtf": "Charity Majors",
"@david_perell on Twitter": "David Perell",
"@mipsytipsy on Twitter": "Charity Majors"
}
The above mapping will be applied during the sync process for highlights from a new source (e.g a new article, book, tweets).
Readwise API Token
: Add/update your Readwise API token.Sync on Startup
: If enabled, will sync highlights from Readwise when Obsidian startsSync on Interval
: If configured with a value greater than 0, it will sync highlights from Readwise every X
hours. Useful for folks that leave their Obsidian app open all the time.Highlights Storage Path
: Path to location where new highlights/notes will be stored.Custom Header Template Path
: Path to template note that overrides how the note header is writtenCustom Highlight Template Path
: Path to template note that overrides how the highlights are writtenDisable Notifications
: Toggle for pop-up notificationsThe plugin will sync from Readwise only the new highlights since the last time it was executed (or since it was installed). The process works as follows:
Custom Note Header Template
or the default template.highlight_id
from Readwise and not the text of the highlight. The exact match the plugin looks for is of the form highlight_id: <id>
where In addition to this plugin, there is also another Readwise community plugin for Obsidian named Readwise Mirror, which can be found at: https://github.com/jsonMartin/readwise-mirror. Both plugins exist for different use cases, so please read below to determine which best suits your needs.
You can check the project Roadmap here
You can install this plugin from Settings > Community Plugins > Readwise
.
Download zip archive from GitHub releases page. Extract the archive into <vault>/.obsidian/plugins
.
To check for the compatibility of different versions, check versions.json. All plugin versions newer than the highest specified in the versions.json
file should be compatible with the same Obsidian version and newer.