Skip to content

feat(producthunt): add Product Hunt CLI adapter#462

Merged
jackwener merged 4 commits intojackwener:mainfrom
Conn-Ho:feat/producthunt-adapter
Mar 26, 2026
Merged

feat(producthunt): add Product Hunt CLI adapter#462
jackwener merged 4 commits intojackwener:mainfrom
Conn-Ho:feat/producthunt-adapter

Conversation

@Conn-Ho
Copy link
Copy Markdown
Contributor

@Conn-Ho Conn-Ho commented Mar 26, 2026

Summary

  • producthunt posts — RSS feed with optional --category filter (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

  • Shared RSS/Atom parsing utility in utils.ts with HTML stripping and tagline cleanup
  • posts and today use Strategy.PUBLIC (no browser needed, fast)
  • hot uses Strategy.INTERCEPT — navigates to homepage and extracts vote counts from DOM
  • 4 unit tests for parseFeed (all passing)

Test plan

  • producthunt posts --limit 5 — returns ranked posts with tagline, author, date
  • producthunt posts --category developer-tools --limit 5 — category filter works
  • producthunt today --limit 5 — returns today's posts
  • producthunt hot --limit 10 — returns posts sorted by vote count with live data
  • All 60 adapter tests pass (npx vitest run --project adapter)

🤖 Generated with Claude Code

Conn-Ho and others added 4 commits March 26, 2026 15:39
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>
@jackwener jackwener force-pushed the feat/producthunt-adapter branch from 115fc55 to 8031f6c Compare March 26, 2026 07:52
@jackwener jackwener merged commit 15b9bc8 into jackwener:main Mar 26, 2026
22 checks passed
@jackwener jackwener mentioned this pull request Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants