read-it-later
Read It Later (Readwise Reader)
Send markdown or URLs to Readwise Reader using Bun scripts.
Setup
- Ensure Bun v1.3.8+ is installed.
- Set the Readwise token in your shell profile:
export READWISE_ACCESS_TOKEN="your-token"
Send Markdown
Convert markdown to HTML with Bun's markdown parser and send it to Readwise Reader.
{baseDir}/scripts/send-markdown.ts "# Project Summary\n\nThis is a summary." --title "Project Summary"
To avoid shell escaping, stream markdown via stdin:
cat summary.md | {baseDir}/scripts/send-markdown.ts --stdin --title "Project Summary"
Send a URL
Use the Readwise wrapper directly to send a URL:
{baseDir}/scripts/readwise.ts url https://example.com/article --title "Example Article"
Send Raw HTML
cat article.html | {baseDir}/scripts/readwise.ts html --stdin --title "Article"
Notes
- Both scripts accept
--source <source>to set the Readwisesourcefield. - Use
--url <url>to supply a canonical URL for HTML/markdown saves (otherwise a placeholder URL is generated). - Errors are printed with response details if the Readwise API rejects the request.
More from blackhaj/dotfiles
transcribe
Speech-to-text transcription using Groq Whisper API. Supports m4a, mp3, wav, ogg, flac, webm.
6browser-tools
Interactive browser automation via Chrome DevTools Protocol. Use when you need to interact with web pages, test frontends, or when user interaction with a visible browser is required.
6youtube-transcript
Fetch transcripts from YouTube videos for summarization and analysis.
6vscode
VS Code integration for viewing diffs and comparing files. Use when showing file differences to the user.
5brave-search
Web search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.
5