[ 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).
pnpm add @vllnt/convex-events
pnpm add @vllnt/convex-events@canaryRegister the component
Add it to your app’s convex/convex.config.ts, then run npx convex dev to generate the references.
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.
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
| Week | Downloads |
|---|---|
| 14 June 2026 to 15 June 2026 | 126 |
| 16 June 2026 to 22 June 2026 | 382 |
| 23 June 2026 to 29 June 2026 | 62 |
| 30 June 2026 to 6 July 2026 | 166 |
| 7 July 2026 to 13 July 2026 | 97 |
| 14 July 2026 to 20 July 2026 | 31 |
| 21 July 2026 to 27 July 2026 | 9 |
| 28 July 2026 to 3 August 2026 | 2 |
| 4 August 2026 to 10 August 2026 | 151 |
| 11 August 2026 to 17 August 2026 | 143 |
| 18 August 2026 to 24 August 2026 | 234 |
| 25 August 2026 to 31 August 2026 | 744 |
| 1 September 2026 to 7 September 2026 | 820 |
| 8 September 2026 to 14 September 2026 | 1,516 |
| 15 September 2026 to 21 September 2026 | 316 |
| 22 September 2026 to 28 September 2026 | 402 |
| 29 September 2026 to 5 October 2026 | 205 |
| 6 October 2026 to 12 October 2026 | 51 |
| 13 October 2026 to 19 October 2026 | 45 |
| 20 October 2026 to 26 October 2026 | 100 |
| 27 October 2026 to 2 November 2026 | 555 |
| 3 November 2026 to 9 November 2026 | 264 |
| 10 November 2026 to 16 November 2026 | 107 |
| 17 November 2026 to 23 November 2026 | 113 |
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
| Version | Kind | Published |
|---|---|---|
| 0.1.1-canary.fa53f97 | canary | 31 October 2026 |
| 0.1.1-canary.0d86b9e | canary | 31 October 2026 |
| 0.1.0 | stable | 1 September 2026 |
| 0.1.0-canary.e086101 | canary | 1 September 2026 |
| 0.1.0-canary.d42dd8a | canary | 31 August 2026 |
| 0.1.0-canary.dbe729f | canary | 31 August 2026 |
| 0.1.0-canary.672447d | canary | 31 August 2026 |
| 0.1.0-canary.7eea05b | canary | 16 June 2026 |
| 0.1.0-canary.2310a69 | canary | 16 June 2026 |
| 0.1.0-canary.702202b | canary | 16 June 2026 |
| 0.1.0-canary.b92f383 | canary | 14 June 2026 |
Changelog
The newest stable releases of @vllnt/convex-events, with the notes from its changelog.
0.1.0
Added
- First release of
@vllnt/convex-events: append-only per-subject activity ledger withrecord/list/count/purgeand a typed-generic client. paginate— cursor pagination returning Convex's{ page, isDone, continueCursor }, honoring thetype/sincefilters; feeds page past any single-call limit.- Bounded
count— scans at mostmaxCount + 1rows 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 hostmetadataValidator, validated at therecordboundary and throwing a code-taggedEventValidationError.
Changed
countnow returns{ count, isExact }(was a barenumber).purgeandcounttake an options object;purgereturns the count deleted in the first batch.EventDoc.metadatais now optional (metadata?: TMeta) — an event recorded without metadata round-trips as absent, so the shape never lies to a host with a non-nullableTMeta.- Treat Convex
_generatedoutput as CLI-owned, exclude it from formatting, and expose a dedicated codegen script. - Require
convex@^1.45.0and updateconvex-testto^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.
metadataValidatorerrors are now wrapped asEventValidationErrorwith codeEVENTS_METADATA_INVALID(preserving the original message), making the error contract real and catchable by consumers. Previously the host's plainErrorsurfaced unwrapped, soEVENTS_METADATA_INVALIDwas never thrown.
- First release of
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
- Issues
- Open an issue