[ 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).
pnpm add @vllnt/convex-comments
pnpm add @vllnt/convex-comments@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 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.
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
| Week | Downloads |
|---|---|
| 14 June 2026 to 15 June 2026 | 128 |
| 16 June 2026 to 22 June 2026 | 395 |
| 23 June 2026 to 29 June 2026 | 8 |
| 30 June 2026 to 6 July 2026 | 21 |
| 7 July 2026 to 13 July 2026 | 26 |
| 14 July 2026 to 20 July 2026 | 9 |
| 21 July 2026 to 27 July 2026 | 5 |
| 28 July 2026 to 3 August 2026 | 2 |
| 4 August 2026 to 10 August 2026 | 5 |
| 11 August 2026 to 17 August 2026 | 18 |
| 18 August 2026 to 24 August 2026 | 17 |
| 25 August 2026 to 31 August 2026 | 316 |
| 1 September 2026 to 7 September 2026 | 382 |
| 8 September 2026 to 14 September 2026 | 59 |
| 15 September 2026 to 21 September 2026 | 8 |
| 22 September 2026 to 28 September 2026 | 12 |
| 29 September 2026 to 5 October 2026 | 4 |
| 6 October 2026 to 12 October 2026 | 14 |
| 13 October 2026 to 19 October 2026 | 8 |
| 20 October 2026 to 26 October 2026 | 9 |
| 27 October 2026 to 2 November 2026 | 300 |
| 3 November 2026 to 9 November 2026 | 116 |
| 10 November 2026 to 16 November 2026 | 60 |
| 17 November 2026 to 23 November 2026 | 10 |
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.1036f78 | canary | 31 October 2026 |
| 0.1.1-canary.079f118 | canary | 31 October 2026 |
| 0.1.0 | stable | 1 September 2026 |
| 0.1.0-canary.7afe107 | canary | 1 September 2026 |
| 0.1.0-canary.a51c40d | canary | 31 August 2026 |
| 0.1.0-canary.6136be8 | canary | 31 August 2026 |
| 0.1.0-canary.e582309 | canary | 31 August 2026 |
| 0.1.0-canary.781255b | canary | 16 June 2026 |
| 0.1.0-canary.47e6025 | canary | 16 June 2026 |
| 0.1.0-canary.eacd348 | canary | 16 June 2026 |
| 0.1.0-canary.3e5064a | canary | 14 June 2026 |
Changelog
The newest stable releases of @vllnt/convex-comments, with the notes from its changelog.
0.1.0
Added
- First release of
@vllnt/convex-comments— threaded comments / annotations on any resource. post(resourceRef, authorRef, body, parentId?)attaches anopencomment to an opaque resource and returns its id;parentIdthreads it as a reply to an existing, non-deleted comment on the same resource.edit(commentId, authorRef, body),remove(commentId, authorRef)(soft-delete), andresolve(commentId, authorRef, resolved?)(toggle) all require the original author — a non-author caller is rejected withConvexError({ code: "NOT_AUTHOR" }).get(commentId)returns the current view (ornull);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 defaultlistexcludes 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/editedAtfromDate.now()inside the mutation — no caller-supplied clock. - Typed generics:
Comments<TBody>with an optionalbodyValidatorhost parser narrowing the opaque storedbodyat the client boundary on write and read — nov.any()dump, no unchecked cast. - Bounded, self-rescheduling
prune(take(batch)+ scheduler) that removes only soft-deleted comments past theirupdatedAtcutoff, 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
_generatedoutput 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.0and updateconvex-testto^0.0.56.
- 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.1036f78
- GitHub stars
- 1 GitHub star
- Licence
- MIT
- Issues
- Open an issue