README.md
A TypeScript-based Reddit search plugin for LM Studio. It exposes Reddit discussion search as a structured LM Studio tool, with configurable defaults for subreddit targeting, citation count, comment inclusion, and NSFW filtering. Install it here: https://lmstudio.ai/nightly-raven/reddit-search
nightly-raven/lmstudio-websearch.The plugin registers one LM Studio tool:
search: Searches Reddit and returns structured post citations, optionally with top-comment snippets.You can configure the following settings in LM Studio:
Search Context Size: Controls the default number of results returned.Default Subreddit: Optional subreddit used when the tool call does not specify one.Search Results Per Request: Default number of Reddit posts to return.Include Top Comments: Fetches top comments for each result by default.Default Time Filter: Sets the default Reddit time window.Hide NSFW Results: Filters out over_18 posts by default.npm install
Run in Development Mode:
This uses lms dev to load the plugin into LM Studio for testing.
Build the Plugin:
Compiles the TypeScript source code into the dist directory.
Run Tests:
Executes the test suite using the Node.js test runner.
@lmstudio/sdk v1.5.0.https://www.reddit.com/search.json and subreddit-specific /r/<subreddit>/search.json), plus post .json endpoints for reading top comments.npm run dev
npm run build
npm test