Skip to content

docs(ecosystem): add @pompelmi/fastify-plugin#6610

Merged
metcoder95 merged 4 commits into
fastify:mainfrom
SonoTommy:patch-1
Apr 7, 2026
Merged

docs(ecosystem): add @pompelmi/fastify-plugin#6610
metcoder95 merged 4 commits into
fastify:mainfrom
SonoTommy:patch-1

Conversation

@SonoTommy

Copy link
Copy Markdown
Contributor

Summary

Add @pompelmi/fastify-plugin to the Fastify community ecosystem list.

What it does

@pompelmi/fastify-plugin adds in-process upload scanning for Fastify:

  • MIME and magic-byte validation
  • ZIP bomb / archive abuse checks
  • size limits
  • optional YARA scanning

Repo:
https://github.com/pompelmi/pompelmi

Package path:
https://github.com/pompelmi/pompelmi/tree/main/packages/fastify-plugin

Checklist

## Summary

Add `@pompelmi/fastify-plugin` to the Fastify community ecosystem list.

## What it does

`@pompelmi/fastify-plugin` adds in-process upload scanning for Fastify:
- MIME and magic-byte validation
- ZIP bomb / archive abuse checks
- size limits
- optional YARA scanning

Repo:
https://github.com/pompelmi/pompelmi

Package path:
https://github.com/pompelmi/pompelmi/tree/main/packages/fastify-plugin

Signed-off-by: Tommaso Bertocchi <148005572+SonoTommy@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 26, 2026 07:12
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Mar 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds @pompelmi/fastify-plugin to the Fastify documentation’s community ecosystem list, making the in-process upload scanning plugin discoverable alongside other community tools.

Changes:

  • Add a new Community Tools entry linking to @pompelmi/fastify-plugin.
  • Document the plugin’s capabilities (MIME/magic-byte validation, ZIP bomb protection, size limits, optional YARA).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/Guides/Ecosystem.md Outdated
Comment thread docs/Guides/Ecosystem.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Tommaso Bertocchi <148005572+SonoTommy@users.noreply.github.com>
@SonoTommy

Copy link
Copy Markdown
Contributor Author

@copilot open a new pull request to apply changes based on the comments in this thread

@metcoder95 metcoder95 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

Reviewing the plugin, I just have a couple of suggestions

  1. Just a small heads up for unnecessary promises, that can add some overhead (https://github.com/pompelmi/pompelmi/blob/6491e3f6cf7e39995e7637b1d250b677ab7db157/packages/fastify-plugin/src/index.ts#L110)
  2. The plugin seems to have a dependency on fastify/multipart, i'd suggest to set that on your plugin scope so fastify can detect the dependency and act upon it

@SonoTommy

SonoTommy commented Mar 26, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @metcoder95 for the review — I addressed both points in pompelmi.

  • Removed the unnecessary Promise.resolve(...) around the scanner call
  • Added Fastify plugin metadata so the @fastify/multipart dependency is declared in plugin scope and can be detected by Fastify

I also kept createUploadGuard for compatibility and added tests for the updated behavior.

@metcoder95 metcoder95 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just lint seems failing

This commit fixes the failing "Lint Ecosystem Order" CI workflow. 

The `@pompelmi/fastify-plugin` entry has been moved to its strict alphabetical position in the Community section of `Ecosystem.md`, right between `@mgcrea/pino-pretty-compact` and `@pybot/fastify-autoload`.

Signed-off-by: Tommaso Bertocchi <148005572+SonoTommy@users.noreply.github.com>

@SonoTommy SonoTommy left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@metcoder95 I've updated the file and moved the plugin to the correct alphabetical position. The Lint Ecosystem Order check is now passing and all CI jobs are green! ✅

Let me know if there's anything else needed for this PR. Thanks for your patience!

@SonoTommy

Copy link
Copy Markdown
Contributor Author

Hi, thanks again for the review and approval.

Just following up here in case anything else is needed from my side for this PR. If not, happy to wait for maintainer merge whenever it fits your workflow.

@metcoder95 metcoder95 merged commit b06a196 into fastify:main Apr 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants