Scan your whole stack
From OX Research Newsroom
Are you using @vllnt/convex-comments?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.2.0-canary.3d151bb
@vllnt/convex-comments was last scanned on 28 Nov 2026 at version 0.2.0-canary.3d151bb. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.2.0-canary.3d151bb LATEST | 28 Nov 2026 | No rules fired |
| 0.2.0-canary.881c81c | 28 Nov 2026 | No rules fired |
| 0.1.1-canary.faf51e0 | 27 Nov 2026 | No rules fired |
| 0.1.1-canary.30291b9 | 27 Nov 2026 | Not shown |
| 0.1.1-canary.1036f78 | 31 Oct 2026 | Not shown |
Findings for v0.2.0-canary.3d151bb. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.2.0-canary.3d151bb; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Threaded comments / annotations on any resource, as a Convex component.
const comments = new Comments(components.comments);
await comments.post(ctx, resourceRef, authorRef, body, parentId); // parentId threads a reply
await comments.list(ctx, resourceRef, paginationOpts); // reactive thread
await comments.resolve(ctx, commentId, authorRef); // author-gated
A host attaches a comment to an opaque resourceRef (an article, a doc, a clip — anything); replies
thread under a parent; the author edits, resolves, and soft-deletes their own comments; clients page a
resource's thread or subscribe reactively.
post(resourceRef, authorRef, body, parentId?) inserts an open comment; parentId threads it as a reply.edit, remove (soft-delete), and resolve require the original authorRef, else NOT_AUTHOR.list(..., { parentId }) pages direct replies.remove keeps the row and replies but marks it deleted and clears the body; a daily cron prunes deleted rows past retention.list pages oldest-first (deleted excluded by default), count tallies visible ones. Reactive in a Convex query.createdAt/updatedAt/editedAt are stamped from the server clock; a caller can't supply a timestamp.Comments<TBody> types the stored body; bodyValidator narrows plain text vs rich blocks at the boundary.app.use mounts (e.g. a comments mount + an annotations mount); each is an isolated sandbox.pnpm add @vllnt/convex-comments
Peer dependency: convex@^1.41.0.
// 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;
// convex/comments.ts — host owns auth; resolve identity, pass opaque refs in.
import { components } from "./_generated/api";
import { mutation, query } from "./_generated/server";
import { paginationOptsValidator } from "convex/server";
import { v } from "convex/values";
import { Comments } from "@vllnt/convex-comments";
const comments = new Comments<string>(components.comments, {
bodyValidator: v.string().parse, // narrow at the boundary (plain text here)
});
export const postComment = mutation({
args: { resourceRef: v.string(), body: v.string(), parentId: v.optional(v.string()) },
handler: async (ctx, { resourceRef, body, parentId }) => {
const authorRef = await requireUser(ctx); // host auth
return comments.post(ctx, resourceRef, authorRef, body, parentId);
},
});
export const listComments = query({
args: { resourceRef: v.string(), paginationOpts: paginationOptsValidator },
handler: (ctx, { resourceRef, paginationOpts }) =>
comments.list(ctx, resourceRef, paginationOpts),
});
| Method | Kind | Result |
|---|---|---|
post(ctx, resourceRef, authorRef, body, parentId?) |
mutation | { commentId } |
edit(ctx, commentId, authorRef, body) |
mutation | null (author-gated) |
remove(ctx, commentId, authorRef) |
mutation | null (soft-delete, author-gated) |
resolve(ctx, commentId, authorRef, resolved?) |
mutation | null (toggle, author-gated; resolved defaults true) |
get(ctx, commentId) |
query | CommentView \| null |
list(ctx, resourceRef, paginationOpts, opts?) |
query | PaginationResult<CommentView> (opts: { parentId?; includeDeleted? }) |
count(ctx, resourceRef) |
query | number (visible comments) |
prune(ctx, opts?) |
mutation | number (deleted comments removed in the first bounded pass) |
Full reference: docs/API.md.
Backend-only — no ./react entry. A comment thread is an ordinary reactive useQuery / usePaginatedQuery over the host's own re-exported list / count refs.
edit/remove/resolve require the original authorRef). The host owns who may post or moderate.resourceRef / authorRef / body stay opaque to the component.See docs/API.md.
pnpm test # single run
pnpm test:coverage # enforced 100% on covered files
Tests run against the real component runtime via convex-test (@edge-runtime/vm), not mocks.
See CONTRIBUTING.md.
Built by bntvllnt · bntvllnt.com · X @bntvllnt
Part of the @vllnt Convex component fleet — vllnt.com
If this is useful, sponsor the work.
MIT — see LICENSE.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.