social
Social media feed manager for OpenCode - aggregates content from Reddit and other social platforms
Quick Install
npm install @openpets/social pnpm add @openpets/social Required Environment Variables
-
REDDIT_CLIENT_IDReddit application client ID
-
REDDIT_CLIENT_SECRETReddit application client secret
-
REDDIT_REFRESH_TOKENReddit refresh token for API access
Available Tools (4)
These tools are available when you install the social plugin in your AI assistant.
reddit-fetch-hot-threads
Fetch hot threads from a subreddit
reddit-fetch-post-content
Fetch detailed content of a specific Reddit post with comments
social-feed-summary
Get a summary of trending content across social platforms
social-search
Search for content across social platforms
Example Queries
reddit-fetch-hot-threads from 'programming' with limit 5 reddit-fetch-post-content for 'abc123' social-feed-summary for subreddits ['technology', 'MachineLearning'] social-search for 'typescript' with limit 10 Usage Scenarios
reddit browsing
- 1
reddit-fetch-hot-threads from 'programming' with limit 5 - 2
reddit-fetch-post-content for 'top_post_id' - 3
social-feed-summary for subreddits ['technology', 'programming']
content discovery
- 1
social-search for 'machine learning' with limit 15 - 2
social-feed-summary for subreddits ['MachineLearning', 'datascience'] - 3
reddit-fetch-hot-threads from 'all' with limit 20
tech news
- 1
reddit-fetch-hot-threads from 'technology' with limit 10 - 2
social-search for 'AI' with limit 8 - 3
social-feed-summary for subreddits ['programming', 'technology', 'MachineLearning']
integration test
- 1
reddit-fetch-hot-threads from 'test' with limit 3 - 2
social-feed-summary for subreddits ['test'] - 3
social-search for 'test' with limit 5
Optional Configuration
| Variable | Description |
|---|---|
DEFAULT_POST_LIMIT | Default number of posts to fetch (default: 10) |
DEFAULT_COMMENT_LIMIT | Default number of comments to fetch (default: 20) |
LOG_LEVEL | Logging level: debug, info, warn, error (default: info) |
Use social with Your AI Assistant
This open source plugin works with OpenCode-compatible AI assistants including ChatGPT, Claude, Perplexity, and other LLM-powered coding tools. Install the plugin and start using natural language to interact with social.
Related Plugins
bento
Bento email marketing platform integration - manage subscribers, track events, send broadcasts, and analyze engagement
Reddit plugin for OpenCode - navigate subreddit communities and get trending stories
brevo
Brevo (formerly Sendinblue) plugin for email marketing campaigns, transactional emails, contact management, and list management