feat(producthunt): add Product Hunt CLI adapter#462
Merged
jackwener merged 4 commits intojackwener:mainfrom Mar 26, 2026
Merged
feat(producthunt): add Product Hunt CLI adapter#462jackwener merged 4 commits intojackwener:mainfrom
jackwener merged 4 commits intojackwener:mainfrom
Conversation
Add three commands: - posts: RSS feed with optional category filter - today: latest day's posts from feed - hot: today's top posts with vote counts (browser INTERCEPT strategy) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Browse top-rated products in any Product Hunt category (e.g. vibe-coding, ai-agents, developer-tools) with name, tagline, and review count. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
115fc55 to
8031f6c
Compare
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
producthunt posts— RSS feed with optional--categoryfilter (ai, developer-tools, productivity, saas, etc.)producthunt today— latest day's posts from the feed (handles Product Hunt's PST timezone)producthunt hot— today's top posts with vote counts via browser DOM scraping (INTERCEPT strategy)Details
utils.tswith HTML stripping and tagline cleanuppostsandtodayuseStrategy.PUBLIC(no browser needed, fast)hotusesStrategy.INTERCEPT— navigates to homepage and extracts vote counts from DOMparseFeed(all passing)Test plan
producthunt posts --limit 5— returns ranked posts with tagline, author, dateproducthunt posts --category developer-tools --limit 5— category filter worksproducthunt today --limit 5— returns today's postsproducthunt hot --limit 10— returns posts sorted by vote count with live datanpx vitest run --project adapter)🤖 Generated with Claude Code