Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

@kkuffour/solid-moderation-plugin

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kkuffour/solid-moderation-plugin

Content moderation plugin for Community Solid Server

latest
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

@kkuffour/solid-moderation-plugin

Content moderation plugin for Community Solid Server using SightEngine API.

Status

Functional - Uses CSS ExtensionHandler pattern (v0.3.0+)

Installation

npm install @solid/community-server
npm install @kkuffour/solid-moderation-plugin

Configuration

Set environment variables:

export SIGHTENGINE_API_USER="your_api_user"
export SIGHTENGINE_API_SECRET="your_api_secret"

Run CSS with the plugin:

npx community-solid-server \
  -c @css:config/file.json \
  -c @kkuffour/solid-moderation-plugin:config/default.json \
  -f data/ -p 3000

How It Works

The plugin uses CSS's ExtensionHandler pattern to intercept POST/PUT/PATCH operations before they reach storage:

  • Handler runs first in the operation chain
  • Moderates image/video/text content using SightEngine API
  • Blocks inappropriate content with 403 Forbidden
  • Passes approved content to standard handlers

Components

  • ModerationHandler - OperationHandler that moderates POST/PUT/PATCH operations
  • SightEngineProvider - SightEngine API client

License

MIT

Keywords

solid

FAQs

Package last updated on 24 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts