[ 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).
pnpm add @vllnt/convex-buckets
pnpm add @vllnt/convex-buckets@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 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.
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
| Week | Downloads |
|---|---|
| 12 September 2026 to 14 September 2026 | 704 |
| 15 September 2026 to 21 September 2026 | 267 |
| 22 September 2026 to 28 September 2026 | 266 |
| 29 September 2026 to 5 October 2026 | 144 |
| 6 October 2026 to 12 October 2026 | 21 |
| 13 October 2026 to 19 October 2026 | 40 |
| 20 October 2026 to 26 October 2026 | 187 |
| 27 October 2026 to 2 November 2026 | 401 |
| 3 November 2026 to 9 November 2026 | 99 |
| 10 November 2026 to 16 November 2026 | 31 |
| 17 November 2026 to 23 November 2026 | 587 |
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
| Version | Kind | Published |
|---|---|---|
| 0.1.1-canary.003d678 | canary | 23 November 2026 |
| 0.1.0 | stable | 22 November 2026 |
| 0.1.0-canary.e5520f0 | canary | 22 November 2026 |
| 0.1.0-canary.32ac758 | canary | 22 November 2026 |
| 0.1.0-canary.fba82ed | canary | 31 October 2026 |
| 0.1.0-canary.b64b4a6 | canary | 30 October 2026 |
| 0.1.0-canary.dd65cd3 | canary | 24 October 2026 |
| 0.1.0-canary.f8e9a39 | canary | 12 September 2026 |
| 0.1.0-canary.0 | canary | 12 September 2026 |
Changelog
The newest stable releases of @vllnt/convex-buckets, with the notes from its changelog.
0.1.0
First stable release. Earlier builds were published only under the
canarydist-tag (0.1.0-canary.*).What you get
- A Convex component for ephemeral groups of opaque
subjectRefs (matches, lobbies, cohorts), mounted withapp.use(bucketsConfig). Named mounts are isolated from each other, including scheduled cleanup. - Lifecycle
open→locked(no new joins) →closed(terminal), through theBucketsclient:open,join,leave,lock,close,get,listMembers,paginateMembers,eraseBucket,eraseSubject. - Capacity enforced on the bucket row (
memberCount), so concurrent joins retry instead of overfilling.joinreturns{ joined: true }or{ joined: false, reason }withmissing,locked,closed,already_memberorfull. listMembersis a bounded preview (default 100, max 500) and does not signal truncation;paginateMemberstraverses every member with a cursor (numItems1..500).@vllnt/convex-buckets/testexportsregisterforconvex-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
ConvexErrorwhosedatais{ code, message }:INVALID_REF,INVALID_CAPACITY(non-positive or unsafe integer),INVALID_BATCH,INVALID_LIMIT(also invalid paginationnumItems) andBUCKET_EXISTS(a suppliedbucketRefis already in use in the scope).Erasure semantics
eraseBucketcloses 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 withgetreturningnull.eraseSubjectdeletes 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.
- A Convex component for ephemeral groups of opaque
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
- Issues
- Open an issue