@vibe-reader/cli
v0.1.0
Published
CLI tools for extracting article content and flattening Hacker News discussions
Maintainers
Readme
@vibe-reader/cli
CLI tools for extracting article content and flattening Hacker News discussions to Markdown.
Install
npm install -g @vibe-reader/cliPrerequisites
The extract command uses Playwright for headless browser rendering. Install Chromium after installing the package:
npx playwright install chromiumCommands
vibe-reader extract <url>
Extract article content from a URL as Markdown. Uses a headless Chromium browser to render JavaScript-heavy pages, then extracts the main content.
Options:
-t, --timeout <ms>— Navigation timeout in milliseconds (default:30000)
$ vibe-reader extract https://example.com/article
# With custom timeout
$ vibe-reader extract --timeout 60000 https://example.com/slow-pageExample output:
# Article Title
Article body content converted to clean Markdown...vibe-reader hnflat <url>
Fetch a Hacker News discussion thread and flatten it to Markdown. Preserves the comment hierarchy with indentation.
$ vibe-reader hnflat https://news.ycombinator.com/item?id=12345Example output:
# Discussion Title
**user1** (120 points)
Top-level comment text...
**user2**
Reply to user1...
**user3**
Nested reply...License
MIT
