unhoard
Turn an overgrown Notion Twitter/X bookmarks database (exported via Tweetsmash or similar) into something you can actually keep up with:
- Readwise-style Daily Review Dashboard — a calm, keyboard-driven local web UI showing a capped 5-card daily deck (2 Fresh + 2 Vault Gems + 1 Wildcard), full thread & nested quote-tweet reader, Deep Read queue, and instant full-text search across your entire backlog.
- Weekend Push Email Digest (Fri–Sat–Sun) — a short, Outlook-safe HTML brief curated from your unread vault so you steadily chip away at papers, repos, and threads without opening another app.
- Local MCP Server (
unhoard) — exposes your synced, enriched bookmark vault to coding agents (Claude Code, Codex, Antigravity, Cursor, etc.) so you can ask "what did I bookmark about X?" on demand.
Screenshots
Daily Review (Light Mode)
Expanded Thread Reader
Explore Vault (Dark Mode & Instant FTS5 Search)
Weekend Push Email Digest Preview
Why a Local SQLite Cache?
Notion's API rate-limits recursive block reads (~3 req/sec) and its built-in search doesn't index nested callout blocks well. unhoard syncs your Notion database and nested Tweetsmash callout trees once into a local SQLite + FTS5 database (~/.local/state/unhoard/bookmarks.sqlite3), then runs incremental syncs for new saves.
Safe Notion write-back: unhoard only ever writes to two existing Notion columns—Done Reading? (Done / Pending) and Tags (multi-select)—so your bookmark exporter never breaks. Local review states (Deep Read, Snooze, Archived), TL;DRs, signal scores, and personal notes live in SQLite.
Prerequisites
- Python 3.11+ and
uv - A Notion database of exported Twitter/X bookmarks (tested with Tweetsmash's default schema)
- Optional (for AI TL;DRs & auto-tagging): either the Codex CLI (
codex) or Claude Code CLI (claude) - Optional (for >30 min video transcription & summaries):
ffmpeg/ffprobe(plusyt-dlpfor YouTube captions) anduv sync --extra transcribe(faster-whisper) - Optional (for weekend push email digests): OpenMail CLI (
openmail)
Setup Guide
1. Create a Notion Internal Integration
- Go to notion.so/profile/integrations and click New integration.
- Name it anything (e.g.
bookmarks-vault), choose your workspace, and keep Read content and Update content enabled. - Copy the Internal Integration Secret (starts with
ntn_orsecret_). - Open your bookmarks database in Notion → click
···(top right) → Connections → add your new integration. - Copy the 32-character database ID from your database URL:
https://www.notion.so/<workspace>/<DATABASE_ID>?v=<view_id> ^^^^^^^^^^^^ 32 hex chars
2. Install
From PyPI (recommended):
# With uv (recommended)
uv tool install unhoard-cli
# Or with local Whisper transcription for >30m videos:
uv tool install "unhoard-cli[transcribe]"
# Or with pip
pip install unhoard-cli
Or from source:
git clone https://github.com/deven367/unhoard.git
cd unhoard
uv sync --extra dev --extra transcribe
uv run pytest -q
3. Initialize Private Config
Run the bootstrap command to create owner-only (0600) config files in ~/.config/unhoard/ (never committed to Git):
uv run unhoard init
Edit ~/.config/unhoard/notion.env and paste your Notion credentials:
NOTION_API_KEY=ntn_...
NOTION_DATABASE_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
See config.example.toml for all options in ~/.config/unhoard/config.toml (deck size, enrichment model, optional OpenMail settings).
4. Sync, Unfurl Links, and Enrich
Start with a small batch (e.g. your 30 newest bookmarks) to verify everything end-to-end:
# 1. Sync all database rows + fetch nested thread blocks for the first 30
uv run unhoard sync --limit 30
# 2. Unfurl linked arXiv papers, HuggingFace Papers, GitHub repos, and article titles
uv run unhoard unfurl --limit 30
# 3. Generate clean titles, 2-sentence TL;DRs, takeaways, signal scores, and tags
uv run unhoard enrich --limit 30
# Or use Claude instead of Codex:
# uv run unhoard enrich --provider claude --model claude-opus-5-5 --limit 30
Once you're happy with the output, run the full backfill (safe to stop and resume at any time):
make sync
make unfurl
make enrich
(Optional) Push the generated tags back into Notion's Tags multi-select column:
make push-tags
5. Launch the Readwise-Style Dashboard
make serve
# Opens on http://127.0.0.1:8765
Keyboard shortcuts:
| Key | Action |
|---|---|
j / k |
Move to next / previous card |
Space |
Expand / collapse full post or thread reader |
d |
Mark Done (syncs Done Reading? → Done back to Notion) |
s |
Save to Deep Read queue |
z |
Snooze for 14 days (resurfaces automatically later) |
x |
Skip / Archive locally |
o |
Open primary link (paper / repo / article) |
t |
Open original tweet |
Use the Aa button in the top bar to switch reader typography between Sans (Inter), Serif (Newsreader), and Quattro (iA Writer Quattro), and ◐ to toggle Light/Dark mode.
Long Video Auto-Transcription & Summaries (> 30 min)
Whenever you expand a post containing an embedded video longer than 30 minutes (configurable via long_video_minutes in config.toml), the dashboard automatically extracts audio via ffmpeg, transcribes locally with faster-whisper (or grabs YouTube captions via yt-dlp), and generates an executive summary, key takeaways, and clickable timestamped chapters that seek the inline video player. Results are cached in SQLite and indexed in FTS5. You can also run batch transcription from the CLI:
uv sync --extra transcribe
uv run unhoard transcribe
Connecting the MCP Server
Point any stdio MCP client (Claude Code, Codex, Antigravity, Cursor, etc.) at the installed entrypoint:
{
"mcpServers": {
"notion-bookmarks": {
"command": "/absolute/path/to/unhoard/.venv/bin/unhoard",
"args": ["mcp"]
}
}
}
Exposed MCP Tools
| Tool | Description |
|---|---|
search_bookmarks |
Full-text FTS5 + facet search (query, kind, tag, author, review_state, year, min_signal) across full threads, quote-tweets, unfurled titles, and notes |
get_bookmark |
Read a single bookmark in full (entire thread text, external URLs, unfurled metadata, media, personal note) |
get_daily_review |
Return today's capped Readwise-style daily review deck |
list_deep_reads |
List bookmarks saved to your Deep Read queue |
mark_bookmark |
Update triage state (unread/done/deep_read/snoozed/archived) + note, optionally syncing Done Reading? to Notion |
get_vault_stats |
Counts by status, kind, year, top tags, and top authors |
sync_notion |
Run an incremental Notion sync on demand |
transcribe_long_video |
Probe video duration and transcribe + summarize videos >30 min (or with force=True) |
Weekend Push Email Digests (Optional)
You can preview a themed HTML + Markdown digest locally without configuring email:
uv run unhoard digest
# Saves preview to ~/.local/state/unhoard/digests/digest-YYYY-MM-DD.html
Digests adapt by day of week:
- Friday: Friday Warmup (fresh saves + quick high-signal hits)
- Saturday: Saturday Deep Dive (papers, repos, and technical threads)
- Sunday: Sunday Vault Gems (resurfaced older classics + a Weekend Deep Read Spotlight)
To send via OpenMail:
- Create
~/.config/unhoard/openmail.env(chmod 600) withOPENMAIL_API_KEY=...andOPENMAIL_INBOX_ID=.... - Set
openmail_envandrecipient_emailin~/.config/unhoard/config.toml. - Send a test digest:
uv run unhoard digest --send
Optional: Linux systemd User Services
Unit templates for keeping the dashboard running and emailing every Fri / Sat / Sun at 08:30 live in deploy/:
mkdir -p ~/.config/systemd/user
cp deploy/unhoard-*.service deploy/unhoard-*.timer ~/.config/systemd/user/
# Edit paths/PATH in ~/.config/systemd/user/unhoard-*.service if needed
systemctl --user daemon-reload
systemctl --user enable --now unhoard-web.service
systemctl --user enable --now unhoard-digest.timer
Expected Notion Database Schema
Built around Tweetsmash's default Notion export schema:
| Property | Type | Usage |
|---|---|---|
Tweet |
title |
Read (raw first-line title) |
Author |
rich_text |
Read |
Tweet Link |
url |
Read |
Type |
select |
Read (Tweet, Thread, Conversation) |
Tweet Posted At |
date |
Read |
App Imported Time |
date |
Read |
Done Reading? |
select |
Read & Write (Done / Pending) |
Tags |
multi_select |
Read & Write (populated via --push-tags or push-tags) |
| Page Body | nested callout / image / video blocks |
Read recursively (threads & quote-tweets) |
Missing optional properties degrade gracefully.
License
Metadata
Release files for unhoard-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| unhoard_cli-0.1.0.tar.gz | 147.0 kB | Without provenance | Details for unhoard_cli-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unhoard_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for unhoard_cli-0.1.0-py3-none-any.whl |
Total release size: 207.1 kB
Release files / unhoard_cli-0.1.0.tar.gz
| Download URL | unhoard_cli-0.1.0.tar.gz |
|---|---|
| Size | 147.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
726ebaab094e9df9156339dbd52b96bb666e1ce0692cf90ec2273ad81c6e8021
|
|
BLAKE2b-256 checksum How to use checksums |
64ccb15da5b7b2b2e24151c8bacd1b3f5f803fbb1cc92960b4edd01f0380ce09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.5.0","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / unhoard_cli-0.1.0-py3-none-any.whl
| Download URL | unhoard_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 60.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1eca51a084a6744d0a17aa910da5e3d64aecf3d7a0c9e647e1b5a7253c3725c
|
|
BLAKE2b-256 checksum How to use checksums |
4b3f7be5b5dc6b06dafefa79d461b5f58f45a28f4d82db0cea399884e43fdc67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Omarchy","version":"4.5.0","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for unhoard-cli 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.