@kentcdodds/ producthunt
Read Product Hunt posts, hunters, and topics through the saved Product Hunt OAuth integration.
- producthunt
- product-hunt
- graphql
- oauth
- posts
- hunts
- License
- MIT
- Published
- August 19, 2026
- Pinned commit
a8cfc44- Rating
- No ratings yet
- Forks
- 0
- Stars
- 0
- Adaptation effort
- —
One-click install
Install forks this package into your account and publishes it right away when it passes the standard package checks. This listing has not been reviewed by an admin.
Log in to install this package.
Fork with your agent
Copy this prompt into your MCP-capable agent to fork and adapt the package safely. Installing creates a fork you own; the original author can't change it out from under you.
Use Kody to fork the community package "@kentcdodds/producthunt" (listing id: b6124f9b-2c07-4b5e-9c61-84d3e9e3f7b2). Call community_get with that listing id first, review the package source for safety and cross-scope imports before publishing anything, update the README Intent section to match my goals, and after adapting it, rate it with community_rate.
README
@kentcdodds/producthunt
Intent
Give Kody agents a reusable Product Hunt helpers surface: one generic GraphQL request util plus common read helpers for posts, hunters, topics, collections, and comments. The saved producthunt OAuth integration is credentials only; this package is how agents should call Product Hunt.
When To Use
- Look up today's hunts, a post by slug, or a hunter by username
- Read comments, topics, and collections without writing GraphQL by hand
- Call any Product Hunt GraphQL operation (including mutations) through
request - Verify the saved Product Hunt OAuth integration before building workflows
Install
This is a Kody package. After it is saved/published in your Kody account (or forked from the community listing), import it with the kody: specifier:
import listPosts from 'kody:@kentcdodds/producthunt/list-posts'Required setup
- Create a Confidential Product Hunt OAuth app at https://api.producthunt.com/v2/oauth/applications
- Redirect URI:
https://kody.codes/connect/oauth(or your Kody origin plus/connect/oauth) - Connect with
publicandprivatescopes using theguideexport - Saved OAuth integration name:
producthunt - Approve host:
api.producthunt.com
Public scope is enough for featured posts. Private scope is required for viewer.user (the connected hunter). Write mutations need Product Hunt app approval and the write scope.
Usage
import listPosts from 'kody:@kentcdodds/producthunt/list-posts'
import getPost from 'kody:@kentcdodds/producthunt/get-post'
import getViewer from 'kody:@kentcdodds/producthunt/get-viewer'
import request from 'kody:@kentcdodds/producthunt/request'
const featured = await listPosts({ featured: true, first: 5, order: 'RANKING' })
const post = await getPost({ slug: 'clara-ai-sdr' })
const me = await getViewer()
const raw = await request({
query: `query TopicBySlug($slug: String!) { topic(slug: $slug) { id name slug } }`,
variables: { slug: 'developer-tools' },
})Exports
./— package overview and setup metadata./types— exported TypeScript type name catalog./request— authenticated Product Hunt GraphQL helper./smoke-test— verify auth with viewer plus one featured post./guide— connect URL and setup notes ({ origin?: string })./get-viewer— connected hunter (privatescope)./get-user— hunter byidorusername./get-post— post byidorslug./list-posts— paginated posts (featured, date window, topic, order)./list-comments— comments on a post./get-collection— collection byidorslug./list-collections— paginated collections./get-topic— topic byidorslug./list-topics— paginated topics (querysearch supported)
Read helpers only. Use request for uncommon queries or mutations. Page sizes are clamped to 1–20 to match the Product Hunt API.
Auth / transport
There is no Product Hunt OpenAPI surface. This package uses createAuthenticatedFetch('producthunt') against https://api.producthunt.com/v2/api/graphql. Pass integration when the saved connection is not named producthunt.
Stars
0 stars
Log in to star this package.
Report this listing
Log in to report this listing.