Skip to content

[ CONVEX COMPONENT · STABLE · MIT ]

@vllnt/convex-suppression

Do-not-contact suppression list + opt-in proof (GDPR/CAN-SPAM), hash-keyed and channel-aware

STABLE 0.1.0 · 1 GitHub star

Package details

Install

The untagged install gets the latest stable version (0.1.0). The canary tag tracks main (0.1.1-canary.054f7dd).

terminal
pnpm add @vllnt/convex-suppression
pnpm add @vllnt/convex-suppression@canary

Register the component

Add it to your app’s convex/convex.config.ts, then run npx convex dev to generate the references.

convex/convex.config.ts
import { defineApp } from "convex/server";
import suppression from "@vllnt/convex-suppression/convex.config";
const app = defineApp();
app.use(suppression);
export default app;

Use it

Usage, options and examples are in the package README.

Read the README

Downloads

Last 7 days
23
Since first publish
1,857

Downloads per week since 14 June 2026, oldest on the left. Weeks count back from 21 November 2026, so the first one may be shorter than seven days.

23 downloads in the last 7 days. 1,857 downloads since 14 June 2026. Source: npm, counted through 21 November 2026.

Show downloads per week as a table
WeekDownloads
14 June 2026 to 20 June 2026539
21 June 2026 to 27 June 202668
28 June 2026 to 4 July 202629
5 July 2026 to 11 July 202631
12 July 2026 to 18 July 202614
19 July 2026 to 25 July 20264
26 July 2026 to 1 August 202610
2 August 2026 to 8 August 20268
9 August 2026 to 15 August 202621
16 August 2026 to 22 August 202610
23 August 2026 to 29 August 20268
30 August 2026 to 5 September 2026553
6 September 2026 to 12 September 202690
13 September 2026 to 19 September 202621
20 September 2026 to 26 September 202612
27 September 2026 to 3 October 202631
4 October 2026 to 10 October 202616
11 October 2026 to 17 October 202615
18 October 2026 to 24 October 202612
25 October 2026 to 31 October 2026174
1 November 2026 to 7 November 2026127
8 November 2026 to 14 November 202641
15 November 2026 to 21 November 202623

Release history

Every release on a timeline, oldest on the left. A tall mark with its version is a stable release; a short mark is a canary build. The time axis is the one of the downloads chart, so a release stands above the week it shipped in.

1 stable release and 8 canary builds since 14 June 2026. Latest stable: 0.1.0 on 1 September 2026.

Show every release as a table
VersionKindPublished
0.1.1-canary.054f7ddcanary31 October 2026
0.1.0stable1 September 2026
0.1.0-canary.d5294facanary31 August 2026
0.1.0-canary.e93c190canary31 August 2026
0.1.0-canary.65361c7canary31 August 2026
0.1.0-canary.f74dec0canary16 June 2026
0.1.0-canary.017a87dcanary16 June 2026
0.1.0-canary.581d956canary16 June 2026
0.1.0-canary.261f634canary14 June 2026

Changelog

The newest stable releases of @vllnt/convex-suppression, with the notes from its changelog.

  1. 0.1.0

    Added
    • First release of @vllnt/convex-suppression — the hash-keyed do-not-contact suppression list + opt-in proof (GDPR opt-out / CAN-SPAM).
    • suppress(contactHash, reason, { channel? }) adds a (contactHash, channel) anti-membership tombstone; reason is unsubscribe/bounce/complaint/ manual/global. Omitting channel marks a global all-channel suppression.
    • unsuppress(contactHash, channel?) removes an entry (a rare, audited re-subscribe); returns whether an entry was removed.
    • isSuppressed(contactHash, channel?) returns the matching suppression (a global tombstone matches every channel and wins) or null.
    • recordOptIn(contactHash, { listKey?, source, proof? }) records an opt-in proof; getOptInProof(contactHash, listKey?) fetches it.
    • isEligible(contactHash, { channel?, listKey?, requireOptIn? }) — the single send gate: ¬suppressed [∧ confirmed]. Suppression always blocks; the opt-in requirement is per call.
    • Hash-keyed: the component stores only the host's opaque contactHash, never raw PII, so a suppression survives erasure of the subject.
    • Idempotent writes: re-suppressing or re-recording an opt-in on its key tuple updates in place — a replayed bounce/complaint/confirmation webhook never duplicates a row.
    • Typed generics: Suppression<TProof> with an optional proofValidator host parser narrowing the opaque stored opt-in proof at the client boundary on write and read — no v.any() dump, no unchecked cast.
    • Server-sourced time: every handler stamps createdAt/confirmedAt from Date.now() inside the mutation — no caller-supplied clock.
    • Mount-safe: correct under multiple app.use(component, { name }) mounts — each instance is a sandboxed, independent do-not-contact list.
    Changed
    • Treat Convex _generated output as CLI-owned, exclude it from formatting, and expose a dedicated codegen script.
    • Refresh all direct dependencies to their latest compatible releases for canary validation.
    • Require convex@^1.45.0 and update convex-test to ^0.0.56.
All releases of @vllnt/convex-suppression
Stable releases
RSSAtomJSON Feed
Canary builds
RSSAtomJSON Feed

Licence

Released under the MIT licence. The full text is in the source repository.

[ PACKAGE ]

Stable
0.1.0
Canary
0.1.1-canary.054f7dd
GitHub stars
1 GitHub star
Licence
MIT

Theme