Skip to content

[ CONVEX COMPONENT · STABLE · MIT ]

@vllnt/convex-comments

Threaded comments / annotations on any resource — post, reply, edit, resolve, and soft-delete

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.1036f78).

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

Use it

Usage, options and examples are in the package README.

Read the README

Downloads

Last 7 days
10
Since first publish
1,932

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.

10 downloads in the last 7 days. 1,932 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 2026128
16 June 2026 to 22 June 2026395
23 June 2026 to 29 June 20268
30 June 2026 to 6 July 202621
7 July 2026 to 13 July 202626
14 July 2026 to 20 July 20269
21 July 2026 to 27 July 20265
28 July 2026 to 3 August 20262
4 August 2026 to 10 August 20265
11 August 2026 to 17 August 202618
18 August 2026 to 24 August 202617
25 August 2026 to 31 August 2026316
1 September 2026 to 7 September 2026382
8 September 2026 to 14 September 202659
15 September 2026 to 21 September 20268
22 September 2026 to 28 September 202612
29 September 2026 to 5 October 20264
6 October 2026 to 12 October 202614
13 October 2026 to 19 October 20268
20 October 2026 to 26 October 20269
27 October 2026 to 2 November 2026300
3 November 2026 to 9 November 2026116
10 November 2026 to 16 November 202660
17 November 2026 to 23 November 202610

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.1036f78canary31 October 2026
0.1.1-canary.079f118canary31 October 2026
0.1.0stable1 September 2026
0.1.0-canary.7afe107canary1 September 2026
0.1.0-canary.a51c40dcanary31 August 2026
0.1.0-canary.6136be8canary31 August 2026
0.1.0-canary.e582309canary31 August 2026
0.1.0-canary.781255bcanary16 June 2026
0.1.0-canary.47e6025canary16 June 2026
0.1.0-canary.eacd348canary16 June 2026
0.1.0-canary.3e5064acanary14 June 2026

Changelog

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

  1. 0.1.0

    Added
    • First release of @vllnt/convex-comments — threaded comments / annotations on any resource.
    • post(resourceRef, authorRef, body, parentId?) attaches an open comment to an opaque resource and returns its id; parentId threads it as a reply to an existing, non-deleted comment on the same resource.
    • edit(commentId, authorRef, body), remove(commentId, authorRef) (soft-delete), and resolve(commentId, authorRef, resolved?) (toggle) all require the original author — a non-author caller is rejected with ConvexError({ code: "NOT_AUTHOR" }).
    • get(commentId) returns the current view (or null); list(resourceRef, paginationOpts, { parentId?, includeDeleted? }) pages a resource's thread (or one comment's replies) oldest-first via the standard Convex pagination envelope; count(resourceRef) tallies the visible comments.
    • Soft-delete preserves the reply subtree: the row is kept, marked deleted, and its body cleared; a default list excludes it.
    • Threading integrity: a reply's parent must exist (PARENT_NOT_FOUND), be non-deleted (PARENT_DELETED), and live on the same resource (PARENT_MISMATCH).
    • Server-sourced time: every handler stamps createdAt/updatedAt/editedAt from Date.now() inside the mutation — no caller-supplied clock.
    • Typed generics: Comments<TBody> with an optional bodyValidator host parser narrowing the opaque stored body at the client boundary on write and read — no v.any() dump, no unchecked cast.
    • Bounded, self-rescheduling prune (take(batch) + scheduler) that removes only soft-deleted comments past their updatedAt cutoff, plus a built-in daily prune cron (crons.ts); idempotent. Default retention 30 days.
    • Mount-safe: correct under multiple app.use(component, { name }) mounts — each instance is sandboxed, the cron is registered per instance.
    Fixed
    • Apply the documented 30-day default retention window instead of pruning newly deleted comments immediately.
    • Preserve deleted parent tombstones while replies exist and paginate retention scans so blocked parents cannot starve later eligible rows.
    • Reject invalid prune batch sizes before querying or self-scheduling.
    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-comments
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.1036f78
GitHub stars
1 GitHub star
Licence
MIT

Theme