Skip to content

[ CONVEX COMPONENT · STABLE · MIT ]

@vllnt/convex-buckets

Ephemeral groups of opaque subject refs — matches, lobbies, cohorts

STABLE 0.1.0 · 0 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.003d678).

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

Use it

Usage, options and examples are in the package README.

Read the README

Downloads

Last 7 days
587
Since first publish
2,747

Downloads per week since 12 September 2026, oldest on the left. Weeks count back from 23 November 2026, so the first one may be shorter than seven days.

587 downloads in the last 7 days. 2,747 downloads since 12 September 2026. Source: npm, counted through 23 November 2026.

Show downloads per week as a table
WeekDownloads
12 September 2026 to 14 September 2026704
15 September 2026 to 21 September 2026267
22 September 2026 to 28 September 2026266
29 September 2026 to 5 October 2026144
6 October 2026 to 12 October 202621
13 October 2026 to 19 October 202640
20 October 2026 to 26 October 2026187
27 October 2026 to 2 November 2026401
3 November 2026 to 9 November 202699
10 November 2026 to 16 November 202631
17 November 2026 to 23 November 2026587

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 8 canary builds since 12 September 2026. Latest stable: 0.1.0 on 22 November 2026.

Show every release as a table
VersionKindPublished
0.1.1-canary.003d678canary23 November 2026
0.1.0stable22 November 2026
0.1.0-canary.e5520f0canary22 November 2026
0.1.0-canary.32ac758canary22 November 2026
0.1.0-canary.fba82edcanary31 October 2026
0.1.0-canary.b64b4a6canary30 October 2026
0.1.0-canary.dd65cd3canary24 October 2026
0.1.0-canary.f8e9a39canary12 September 2026
0.1.0-canary.0canary12 September 2026

Changelog

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

  1. 0.1.0

    First stable release. Earlier builds were published only under the canary dist-tag (0.1.0-canary.*).

    What you get
    • A Convex component for ephemeral groups of opaque subjectRefs (matches, lobbies, cohorts), mounted with app.use(bucketsConfig). Named mounts are isolated from each other, including scheduled cleanup.
    • Lifecycle open → locked (no new joins) → closed (terminal), through the Buckets client: open, join, leave, lock, close, get, listMembers, paginateMembers, eraseBucket, eraseSubject.
    • Capacity enforced on the bucket row (memberCount), so concurrent joins retry instead of overfilling. join returns { joined: true } or { joined: false, reason } with missing, locked, closed, already_member or full.
    • listMembers is a bounded preview (default 100, max 500) and does not signal truncation; paginateMembers traverses every member with a cursor (numItems 1..500).
    • @vllnt/convex-buckets/test exports register for convex-test.
    • Every component function validates its arguments and return value. Refs and scopes must be 1..256 characters, including on reads.
    Errors

    Invalid input throws a ConvexError whose data is { code, message }: INVALID_REF, INVALID_CAPACITY (non-positive or unsafe integer), INVALID_BATCH, INVALID_LIMIT (also invalid pagination numItems) and BUCKET_EXISTS (a supplied bucketRef is already in use in the scope).

    Erasure semantics
    • eraseBucket closes the bucket and recounts it in the first transaction, deletes members in bounded batches (default 200, max 500) and reschedules itself by document ID, so a stale job can never remove a replacement bucket. The ref stays reserved until cleanup finishes; observe completion with get returning null.
    • eraseSubject deletes one caller-driven batch per call and schedules nothing. Block new joins, repeat until it returns zero, then allow joins again. Zero is an observation, not a permanent ban; no latent subject job can remove a later rejoin.
All releases of @vllnt/convex-buckets
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.003d678
GitHub stars
0 GitHub stars
Licence
MIT

Theme