Skip to content

[ CONVEX COMPONENT · STABLE · MIT ]

@vllnt/convex-events

Append-only per-subject activity feed and event ledger

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.fa53f97).

terminal
pnpm add @vllnt/convex-events
pnpm add @vllnt/convex-events@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 events from "@vllnt/convex-events/convex.config";
const app = defineApp();
app.use(events);
export default app;

Use it

Usage, options and examples are in the package README.

Read the README

Downloads

Last 7 days
113
Since first publish
6,641

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

113 downloads in the last 7 days. 6,641 downloads since 14 June 2026. Source: npm, counted through 23 November 2026.

Show downloads per week as a table
WeekDownloads
14 June 2026 to 15 June 2026126
16 June 2026 to 22 June 2026382
23 June 2026 to 29 June 202662
30 June 2026 to 6 July 2026166
7 July 2026 to 13 July 202697
14 July 2026 to 20 July 202631
21 July 2026 to 27 July 20269
28 July 2026 to 3 August 20262
4 August 2026 to 10 August 2026151
11 August 2026 to 17 August 2026143
18 August 2026 to 24 August 2026234
25 August 2026 to 31 August 2026744
1 September 2026 to 7 September 2026820
8 September 2026 to 14 September 20261,516
15 September 2026 to 21 September 2026316
22 September 2026 to 28 September 2026402
29 September 2026 to 5 October 2026205
6 October 2026 to 12 October 202651
13 October 2026 to 19 October 202645
20 October 2026 to 26 October 2026100
27 October 2026 to 2 November 2026555
3 November 2026 to 9 November 2026264
10 November 2026 to 16 November 2026107
17 November 2026 to 23 November 2026113

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 10 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.fa53f97canary31 October 2026
0.1.1-canary.0d86b9ecanary31 October 2026
0.1.0stable1 September 2026
0.1.0-canary.e086101canary1 September 2026
0.1.0-canary.d42dd8acanary31 August 2026
0.1.0-canary.dbe729fcanary31 August 2026
0.1.0-canary.672447dcanary31 August 2026
0.1.0-canary.7eea05bcanary16 June 2026
0.1.0-canary.2310a69canary16 June 2026
0.1.0-canary.702202bcanary16 June 2026
0.1.0-canary.b92f383canary14 June 2026

Changelog

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

  1. 0.1.0

    Added
    • First release of @vllnt/convex-events: append-only per-subject activity ledger with record / list / count / purge and a typed-generic client.
    • paginate — cursor pagination returning Convex's { page, isDone, continueCursor }, honoring the type / since filters; feeds page past any single-call limit.
    • Bounded count — scans at most maxCount + 1 rows and returns { count, isExact } instead of loading the whole feed.
    • Batched, self-rescheduling purge — drains arbitrarily large feeds without a single huge transaction.
    • Retention — configure(retentionMs) plus an internal idempotent daily cron (prune-expired-events / pruneExpired) that prunes events past the window; a no-op until configured.
    • Client value guards — optional allowedTypes, maxTypeLength, maxMetadataBytes, and a host metadataValidator, validated at the record boundary and throwing a code-tagged EventValidationError.
    Changed
    • count now returns { count, isExact } (was a bare number).
    • purge and count take an options object; purge returns the count deleted in the first batch.
    • EventDoc.metadata is now optional (metadata?: TMeta) — an event recorded without metadata round-trips as absent, so the shape never lies to a host with a non-nullable TMeta.
    • Treat Convex _generated output as CLI-owned, exclude it from formatting, and expose a dedicated codegen script.
    • Require convex@^1.45.0 and update convex-test to ^0.0.56.
    Fixed
    • Reject unsafe purge/prune batches, non-finite cutoffs, and negative or non-finite retention windows before they can trigger scheduler loops or destructive retention.
    • Bound and validate list/count controls so malformed values cannot produce invalid results or caller-controlled read amplification.
    • Add optional per-subject idempotency keys so ambiguous host retries replay the original event ID instead of duplicating ledger entries.
    • metadataValidator errors are now wrapped as EventValidationError with code EVENTS_METADATA_INVALID (preserving the original message), making the error contract real and catchable by consumers. Previously the host's plain Error surfaced unwrapped, so EVENTS_METADATA_INVALID was never thrown.
All releases of @vllnt/convex-events
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.fa53f97
GitHub stars
1 GitHub star
Licence
MIT

Theme