Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@vllnt/convex-email

Latest version: v0.1.1-canary.9971d00

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
npm package Publisher: bntvllnt
2 Stars
0 Forks
13 Versions
672 Downloads
TypeScript Repo language

Scan summary

@vllnt/convex-email was last scanned on 28 Nov 2026 at version 0.1.1-canary.9971d00. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 13 versions; the latest 5 were published on 28 Nov 2026.
  • Findings: No rules fired in version 0.1.1-canary.9971d00.
  • Downloads: 672 downloads.

Versions

13 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.1-canary.9971d00 LATEST 28 Nov 2026 No rules fired
0.1.1-canary.ba1468a 28 Nov 2026 No rules fired
0.1.1-canary.c5e5dc3 28 Nov 2026 No rules fired
0.1.1-canary.3acc55a 28 Nov 2026 Not shown
0.1.1-canary.a59af6d 28 Nov 2026 Not shown

No rules fired in 0.1.1-canary.9971d00

Findings

Findings for v0.1.1-canary.9971d00. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.1-canary.9971d00; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

convex-component npm CI license

@vllnt/convex-email

A durable, transport-agnostic outbound transactional email queue, as a Convex component — the host enqueues a message, its own transport sends it, and clients poll the delivery status.

const email = new Email(components.email);
await email.enqueue(ctx, messageId, to, from, "smtp", { idempotencyKey });
await email.markSending(ctx, messageId); // host sends, then:
await email.markSent(ctx, messageId, { providerId }); // or markFailed → auto-retry

Features

  • Enqueue-and-return — insert a queued message, get its id back; the caller never blocks on the send.
  • Host-driven transport — the host claims (markSending), sends, and reports (markSent/markFailed); the component never reaches a provider.
  • Optional generic SMTP adapter — @vllnt/convex-email/smtp sends through any SMTP server; nodemailer is an optional peer dep.
  • Optional generic JMAP adapter — @vllnt/convex-email/jmap sends over any JMAP server's HTTP API (Stalwart, Fastmail, Cyrus) from a plain action — fetch-based, no "use node", no extra dep.
  • Idempotent enqueue — an idempotencyKey dedups a re-enqueue so a retry can't double-send.
  • Retry with budget — markFailed re-queues until attempts hit maxAttempts, then lands in terminal failed.
  • Terminal states are final — a late or duplicate delivery callback can never overwrite a recorded outcome.
  • Poll or subscribe — get / listByStatus update live in a reactive Convex query.
  • Server-sourced time, typed opaque payload, bounded prune cron, mount-safe.

Installation

pnpm add @vllnt/convex-email

Peer dependency: convex@^1.41.0. The queue core has zero third-party runtime deps. nodemailer@^8.0.4 is an optional peer dep — only for the SMTP transport. The JMAP transport (@vllnt/convex-email/jmap) is fetch-based and needs no extra dependency.

Usage

// convex/convex.config.ts
import { defineApp } from "convex/server";
import email from "@vllnt/convex-email/convex.config";

const app = defineApp();
app.use(email);
export default app;
// convex/notify.ts — host owns auth AND the transport; pass opaque refs in.
import { components } from "./_generated/api";
import { mutation, internalAction } from "./_generated/server";
import { v } from "convex/values";
import { Email } from "@vllnt/convex-email";

const email = new Email<{ subject: string; html: string }>(components.email, {
  payloadValidator: v.object({ subject: v.string(), html: v.string() }).parse,
});

// 1) Enqueue (records intent only) and schedule the send.
export const sendWelcome = mutation({
  args: { userId: v.string(), to: v.string() },
  handler: async (ctx, { userId, to }) => {
    const messageId = crypto.randomUUID();
    await email.enqueue(ctx, messageId, to, "no-reply@app.com", "jmap", {
      payload: { subject: "Welcome", html: "<p>Hello</p>" },
      idempotencyKey: `welcome:${userId}`, // a retry never double-sends
    });
    await ctx.scheduler.runAfter(0, internal.notify.flush, { messageId });
    return { messageId };
  },
});

// 2) The host's transport sender claims, dispatches, and reports the outcome.
export const flush = internalAction({
  args: { messageId: v.string() },
  handler: async (ctx, { messageId }) => {
    await email.markSending(ctx, messageId);
    try {
      const providerId = await sendOverJmap(messageId); // your transport
      await email.markSent(ctx, messageId, { providerId });
    } catch (e) {
      const { retried } = await email.markFailed(ctx, messageId, { error: String(e) });
      if (retried) await ctx.scheduler.runAfter(backoffMs(), internal.notify.flush, { messageId });
    }
  },
});

API Reference

Method Kind Result
enqueue(ctx, messageId, to, from, transport, opts?) mutation { messageId, deduplicated }
markSending(ctx, messageId) mutation { attempts }
markSent(ctx, messageId, opts?) mutation null
markFailed(ctx, messageId, opts?) mutation { status, retried }
get(ctx, messageId) query MessageView \| null
listByStatus(ctx, status, paginationOpts) query PaginationResult<MessageView>
prune(ctx, opts?) mutation number

Full reference: docs/API.md.

SMTP transport (optional)

A generic SMTP adapter ships at @vllnt/convex-email/smtp — it sends through any SMTP server (Stalwart, Postfix, any relay). The real send runs in the host's own "use node" action; the component never sends.

import { createSmtpSender } from "@vllnt/convex-email/smtp";

const send = createSmtpSender({
  host: process.env.SMTP_HOST!,
  port: 465,
  secure: true,
  auth: { user: process.env.SMTP_USER!, pass: process.env.SMTP_PASS! },
});

Full queue-to-SMTP wiring in docs/API.md.

JMAP transport (optional)

A generic JMAP adapter ships at @vllnt/convex-email/jmap — it sends over any JMAP server's HTTP API (Stalwart, Fastmail, Cyrus, Apache James). JMAP is HTTP, so it runs in a plain Convex action — no "use node", no nodemailer, zero extra deps. It's a protocol, not a vendor: ./jmap, never ./stalwart.

import { createJmapSender, discoverJmapSession } from "@vllnt/convex-email/jmap";

// Resolve account / identity / Sent mailbox once, then bind a sender over your `fetch`.
const config = await discoverJmapSession((u, i) => fetch(u, i), {
  sessionUrl: "https://mail.example.com/.well-known/jmap", // e.g. a Stalwart host
  token: process.env.JMAP_TOKEN!,
  from: "no-reply@app.com",
});
const send = createJmapSender(config, (u, i) => fetch(u, i));

To send some mail over SMTP and some over Stalwart's HTTP (JMAP), keep one queue and route per message by its stored transport tag (a senders map keyed by "smtp" / "jmap"). Full JMAP wiring + routing in docs/API.md.

Security

  • Auth-agnostic and provider-neutral — the host gates access and drives the transport; the component never authenticates or contacts a provider.
  • Tables are sandboxed (reached only via exported functions); the stored payload is opaque.
  • Terminal states are final, enqueue is idempotent, and time is server-sourced.

See docs/API.md.

Testing

pnpm test           # single run
pnpm test:coverage  # enforced 100% on covered files

Tests run against the real component runtime via convex-test (@edge-runtime/vm), not mocks.

Contributing

See CONTRIBUTING.md.

Author

Built by bntvllnt · bntvllnt.com · X @bntvllnt

Part of the @vllnt Convex component fleet — vllnt.com

If this is useful, sponsor the work.

License

MIT — see LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @vllnt/convex-email

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229