📱

social

Open Source Social MediaMarketing

Social media feed manager for OpenCode - aggregates content from Reddit and other social platforms

social reddit feed content aggregator

Quick Install

npm install @openpets/social
pnpm add @openpets/social

Required Environment Variables

  • REDDIT_CLIENT_ID

    Reddit application client ID

  • REDDIT_CLIENT_SECRET

    Reddit application client secret

  • REDDIT_REFRESH_TOKEN

    Reddit 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. 1 reddit-fetch-hot-threads from 'programming' with limit 5
  2. 2 reddit-fetch-post-content for 'top_post_id'
  3. 3 social-feed-summary for subreddits ['technology', 'programming']

content discovery

  1. 1 social-search for 'machine learning' with limit 15
  2. 2 social-feed-summary for subreddits ['MachineLearning', 'datascience']
  3. 3 reddit-fetch-hot-threads from 'all' with limit 20

tech news

  1. 1 reddit-fetch-hot-threads from 'technology' with limit 10
  2. 2 social-search for 'AI' with limit 8
  3. 3 social-feed-summary for subreddits ['programming', 'technology', 'MachineLearning']

integration test

  1. 1 reddit-fetch-hot-threads from 'test' with limit 3
  2. 2 social-feed-summary for subreddits ['test']
  3. 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.

Works with ChatGPT Works with Claude Works with Perplexity MCP Compatible