omp packages

sylo-reddit0.1.1

Read-only Reddit access for Pi coding agent — public posts and subreddit listings via old.reddit.com HTML (no credentials, no OAuth). Ships a Sylo-only host plugin (pi.sylo) that is inert on vanilla Pi.

GitHub Actions Published 1 month ago MIT ~364 downloads/mo

Untested on omp

This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

sylo-reddit

Read-only Reddit access for Sylo/Pi via old.reddit.com HTML (no credentials needed) — as an individual, self-contained pi package (one repo = one npm package).

Reddit closed self-service OAuth app creation (Responsible Builder Policy), so this package ships no OAuth settings and no API-tier access — only public HTML reads.

  • Works on vanilla Pi and inside Sylo (where it adds a small Sylo-only host plugin)

Install

pi install npm:sylo-reddit

In Sylo: Capability manager → Pi.dev package catalog (or Install by exact spec → npm:sylo-reddit), then Restart broker. No config file required.

Tools

Tool Behavior
sylo_reddit_read Post URL → title, body, comments, image URLs
sylo_reddit_list Subreddit listing (hot / new / top / rising)

Scores and comment counts are best-effort; comment coverage is limited to one page.

Sylo-only extras (inert on vanilla Pi)

This package carries a pi.sylo manifest block. Vanilla Pi ignores it completely. Inside Sylo, the host-plugin loader loads host/index.js, which provides:

  • reddit.ping RPC op — reports { ok, plugin: 'sylo-reddit', version }.

No credentials, no personal data, and nothing here publishes any operator data.

Folder structure

extensions/reddit/
  index.ts             Tools
  fetch-old-reddit.ts  old.reddit HTML parser (linkedom)
  reddit-types.ts      Shared post/comment types
  url-parse.ts         URL helpers
  format.ts            Markdown formatters
skills/reddit/         Agent skill
host/                  Sylo-only host plugin (inert on vanilla Pi)

Development

npm install
npm test        # URL-parsing tests (esbuild-bundled, node --test)