Skip to content

[ CONVEX COMPONENT · STABLE · MIT ]

@vllnt/convex-reactions

Reactions, votes, and likes on any resource — toggle, count by kind, and list reactors

STABLE 0.1.0 · 2 GitHub stars

Package details

Install

The untagged install gets the latest stable version (0.1.0). The canary tag tracks main (0.1.1-canary.fbe719b).

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

Use it

Usage, options and examples are in the package README.

Read the README

Downloads

Last 7 days
8
Since first publish
1,830

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.

8 downloads in the last 7 days. 1,830 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 2026150
16 June 2026 to 22 June 2026394
23 June 2026 to 29 June 202612
30 June 2026 to 6 July 202619
7 July 2026 to 13 July 202626
14 July 2026 to 20 July 20269
21 July 2026 to 27 July 20268
28 July 2026 to 3 August 20262
4 August 2026 to 10 August 20266
11 August 2026 to 17 August 202619
18 August 2026 to 24 August 20265
25 August 2026 to 31 August 2026332
1 September 2026 to 7 September 2026374
8 September 2026 to 14 September 202644
15 September 2026 to 21 September 202610
22 September 2026 to 28 September 202613
29 September 2026 to 5 October 20266
6 October 2026 to 12 October 202615
13 October 2026 to 19 October 202612
20 October 2026 to 26 October 20269
27 October 2026 to 2 November 2026204
3 November 2026 to 9 November 2026101
10 November 2026 to 16 November 202652
17 November 2026 to 23 November 20268

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 9 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.fbe719bcanary31 October 2026
0.1.0stable1 September 2026
0.1.0-canary.0d319c1canary1 September 2026
0.1.0-canary.0ed56abcanary31 August 2026
0.1.0-canary.04eb642canary31 August 2026
0.1.0-canary.a74b9a2canary31 August 2026
0.1.0-canary.386e1a8canary16 June 2026
0.1.0-canary.499a409canary16 June 2026
0.1.0-canary.a8ff283canary16 June 2026
0.1.0-canary.ef756eecanary14 June 2026

Changelog

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

  1. 0.1.0

    Added
    • First release of @vllnt/convex-reactions — reactions, votes, and likes on any resource, modeled as the opaque edge (authorRef, resourceRef, kind).
    • react(authorRef, resourceRef, kind) toggles the edge in one transaction (add if absent, remove if present), returning { reacted, action }. One edge per subject per kind per resource is enforced inside the mutation transaction.
    • unreact(authorRef, resourceRef, kind) removes the edge; removing one that does not exist is an idempotent no-op returning false.
    • counts(resourceRef) tallies edges per kind (sorted by kind); reactors( resourceRef, kind, paginationOpts) pages the subjects who reacted oldest-first via the standard Convex pagination envelope.
    • hasReacted(authorRef, resourceRef, kind) and myReactions(authorRef, resourceRef) expose a subject's own reaction state.
    • Configurable reaction vocabulary: new Reactions(component, { allowedKinds }) rejects an unknown kind at the client boundary before the component is called.
    • Server-sourced time: createdAt is stamped from Date.now() inside the mutation — no caller-supplied clock.
    • Opaque refs: authorRef, resourceRef, and kind are plain strings the component never de-references; it never reads host or sibling tables.
    • Mount-safe: correct under multiple app.use(component, { name }) mounts — each instance is sandboxed.
    • reactors bounds pagination: numItems must be an integer from 1 through 1000 (otherwise it throws ConvexError INVALID_PAGE_SIZE), and maximumRowsRead is validated and capped at 1000 for reactive cursor ranges.
    • Requires convex@^1.45.0.
All releases of @vllnt/convex-reactions
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.fbe719b
GitHub stars
2 GitHub stars
Licence
MIT

Theme