TrustSignal is a native Reddit-focused trust and moderation toolkit. This repository contains the trustsignal-rd Devvit app, which provides real-time trust scoring and tamper-evident audit logging for Reddit posts directly within the Reddit ecosystem.
src/ Root Devvit app for Reddit moderators
src/trustsignal/ Local TrustSignal scoring, settings, storage, and handlers
trustsignal-reddit-web/ Web dashboard for TrustSignal Reddit analytics
The repo root is a Devvit app called trustsignal-rd. It runs fully inside Reddit and does not perform unauthorized outbound HTTP requests, ensuring compliance with Reddit's HTTP Fetch Policy.
- Local heuristics: The app scores post content with a local moderation engine (
src/trustsignal/score.ts) inside the Devvit runtime. - Persistent storage: It stores the latest scan result per post in Devvit's secure storage.
- Automation: It can auto-scan on post submit and re-scan on post edit.
- Moderator UI: It can apply
✓ TS <score>or⚑ TS <score>post flair and provides manual scan/status menu items. - Customization: It exposes installation settings for threshold, auto-scan, edit re-scan, and flair behavior.
- Node.js 20+
- Devvit CLI (
npm install -g @devvit/cli)
- Clone the repo.
- Run
npm install.
npm run typecheck
npm test
npm run devNotes:
npm run devstartsdevvit playtest.- The test suite validates the local scoring logic and storage handlers.
For moderators using the TrustSignal Devvit app:
- Install the app into a test subreddit with Devvit.
- Open the app settings in Reddit.
- Configure the TrustSignal threshold and whether scans should run automatically.
- Use the
TrustSignal: Scan postmenu item on any post for a manual scan. - Use the
TrustSignal: Statussubreddit menu item to confirm the active threshold and automation settings.
Behavior:
- Posts below the configured threshold are marked suspicious for moderator review.
- Flair updates are optional and controlled by installation settings.
- Edited posts can be re-scanned automatically when that setting is enabled.
- Unchanged content is skipped on repeat scans to avoid redundant work.
- No Outbound HTTP: The Devvit app does not hardcode or call unauthorized outbound hosts.
- Data Privacy: All data processing is handled within the secure Devvit environment.
- Audit Integrity: TrustSignal scores are moderation signals intended to assist, not replace, human judgment.
- The app currently uses local heuristics for scoring.
- Future updates will focus on expanding the local rule set and enhancing the tamper-evident audit trail.
- The app targets the native Reddit environment across desktop and mobile surfaces.