Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

RedditModLog → Devvit Migration

Re-platforming the Python/PRAW Reddit Modlog Wiki Publisher into a Devvit app that runs on Reddit's Developer Platform — no self-hosted daemon, no bot-password credential, no SQLite. The published wiki output and its transparency/privacy guarantees stay recognizably identical.

Feasibility: confirmed. Devvit provides every primitive the bot needs:

Python (PRAW) Devvit equivalent
subreddit.mod.log(limit=N) reddit.getModerationLog({ subredditName, type?, limit })
subreddit.wiki[page].edit() reddit.getWikiPage / reddit.updateWikiPage (512 KB cap unchanged)
SQLite dedup + retention + hash-cache context.redis (strings for dedup, sorted-set by timestamp for retention, hash for wiki-hash cache)
Continuous daemon (update_interval) Devvit.addSchedulerJob + cron (1-min min granularity) + optional onModAction trigger
config.json / env / CLI (19 options) Devvit app + per-install settings (anonymize_moderators hardcoded true)
Docker / s6 / systemd Reddit-hosted (serverless, free); publish via app review

Layout

Status

Scaffold stage: requirements + research + architecture complete; component modules (storage, modlog, render, wiki, settings, menu, main) written and type-checking clean. Not yet devvit upload-tested against a live test subreddit. See docs/STATUS.md.

This scaffold was produced by a multi-agent scrum (requirements → research → architecture → per-component implementation → scaffold). Treat the generated TypeScript as a reviewed starting point, not a shipped app — every Devvit API call should be validated in devvit playtest before publishing.