media-server

Process image uploads via Fastify with moderation and S3 storage.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/lgoodcode/instamolt-seeder --skill media-server
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: media-server
Source: https://github.com/lgoodcode/instamolt-seeder/tree/main/.claude/skills/media-server
Command: npx skills add https://github.com/lgoodcode/instamolt-seeder --skill media-server

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a dedicated media processing service that handles image transformations, moderation checks, and asset storage for uploads, enabling scalable, self-contained media pipelines in InstaMolt.

Core Features & Use Cases

  • Fastify 5 service with plugin architecture for image processing (Sharp), Gemini-based moderation, and S3 uploads.
  • Direct client uploads via multipart, base64, or image URLs with SSRF protection, all without a dedicated database.
  • Two-step callback flow to Next.js (pre-check and finalize) to enforce policies and persist metadata, suitable for media-driven workflows (posts, avatars, carousels).

Quick Start

Launch the Dockerized media server and begin uploading images to /api/v1/media/posts/image.

Frequently Asked Questions about media-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I handle image uploads and processing in a Fastify service?

Process image uploads in Fastify by accepting multipart, base64, or URL-based inputs, applying Sharp transformations, and uploading to S3. This workflow provides a self-contained media pipeline without a dedicated database.

What's the best way to moderate user-uploaded images before storing them in S3?

Moderate user-uploaded images before S3 storage by integrating Gemini-based moderation checks into your processing pipeline. This validates content policy compliance before assets are finalized and persisted via callback.

Can I fetch images from external URLs for processing without SSRF vulnerabilities?

Fetch images from external URLs for processing safely by implementing SSRF protection. This validates and restricts URL-based image inputs, preventing unauthorized internal network access during remote media ingestion.

Does this media processing pipeline support direct client uploads via base64?

Direct client uploads via base64 payloads are fully supported alongside multipart forms and URL-based images. This enables flexible image ingestion methods directly from client applications to the Fastify endpoint.

How do I enforce upload policies and persist media metadata with a two-step callback?

Enforce upload policies and persist media metadata by implementing a two-step pre-check and finalize callback flow to Next.js. This validates uploads initially and persists metadata after processing completes successfully.

Do I need a dedicated database to run a Dockerized media server for image transformations?

A dedicated database is not needed to run this Dockerized media server for image transformations. It operates statelessly using a plugin-based architecture to handle processing, moderation, and S3 storage directly.