Download Latest Version v1.19.0 -- Scan Cache, Policies, Multi-Engine, Directory Streaming source code.tar.gz (5.2 MB)
Email in envelope

Get an email when there's a new version of pompelmi

Home / v1.15.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-06 2.8 kB
v1.15.0 -- Hono Plugin, Bun Support, Demo Page, Testing Utilities source code.tar.gz 2026-05-06 5.1 MB
v1.15.0 -- Hono Plugin, Bun Support, Demo Page, Testing Utilities source code.zip 2026-05-06 5.3 MB
Totals: 3 Items   10.5 MB 0

What's New

Hono Plugin

@pompelmi/hono is now available on npm. Works on Node.js, Bun, and Cloudflare Workers.

:::bash
npm install @pompelmi/hono pompelmi

:::js
import { pompelmiMiddleware } from '@pompelmi/hono'
import { Hono } from 'hono'

const app = new Hono()

app.use('/upload/*', pompelmiMiddleware({
  host: 'localhost',
  port: 3310,
  field: 'file',
  onInfected: (c) => c.json({ error: 'Malware detected' }, 422)
}))

Bun Support

pompelmi now officially supports the Bun runtime. The core library detects Bun at runtime and uses native Bun APIs where available for faster file reads. Bun is now included in the CI test matrix.

:::bash
bun install pompelmi
bun run your-app.js

Interactive Demo

A browser-based demo is now available at pompelmi.app/demo — try the pompelmi terminal UI and see all three verdicts without installing anything.

Testing Utilities

@pompelmi/testing provides mock utilities for unit testing applications that use pompelmi.

:::bash
npm install --save-dev @pompelmi/testing

:::js
const { mockClean, mockInfected, mockScanError } = require('@pompelmi/testing')

// In your tests
it('rejects infected files', async () => {
  const scanner = mockInfected('Win.Malware.Test')
  const result = await scanner.scanBuffer(buffer)
  expect(result).toBe(Verdict.Malicious)
})

Works with Jest, Vitest, and the Node.js built-in test runner.

Comparison Page

Side-by-side comparison of pompelmi against other Node.js ClamAV integrations at docs/comparison.html.

Framework Integrations

Package Framework
@pompelmi/nestjs NestJS
@pompelmi/fastify Fastify
@pompelmi/nextjs Next.js
@pompelmi/hono Hono
@pompelmi/testing Jest / Vitest / Node

Changes

  • packages/hono/ — Hono middleware plugin
  • packages/testing/ — mock utilities for unit testing
  • src/ClamdScanner.js, BufferScanner.js, StreamScanner.js — Bun runtime detection
  • .github/workflows/ci.yml — Bun added to test matrix
  • docs/demo.html — interactive browser demo
  • docs/comparison.html — comparison with alternatives
  • docs/*.html — navbar updated across all pages
  • README.md — Bun support, demo link, updated integrations table

Full Changelog

https://github.com/pompelmi/pompelmi/compare/v1.14.0...v1.15.0

Source: README.md, updated 2026-05-06