Skip to content

[ CONVEX COMPONENT · STABLE · MIT ]

@vllnt/convex-permissions

Role-based access control — typed, sandboxed, runtime-editable roles and grants keyed by opaque refs

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.feeaa58).

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

Use it

Usage, options and examples are in the package README.

Read the README

Downloads

Last 7 days
130
Since first publish
4,098

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.

130 downloads in the last 7 days. 4,098 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 2026136
16 June 2026 to 22 June 2026384
23 June 2026 to 29 June 202634
30 June 2026 to 6 July 2026102
7 July 2026 to 13 July 202681
14 July 2026 to 20 July 202632
21 July 2026 to 27 July 202613
28 July 2026 to 3 August 20266
4 August 2026 to 10 August 202617
11 August 2026 to 17 August 202668
18 August 2026 to 24 August 20268
25 August 2026 to 31 August 2026346
1 September 2026 to 7 September 2026379
8 September 2026 to 14 September 202675
15 September 2026 to 21 September 202617
22 September 2026 to 28 September 2026136
29 September 2026 to 5 October 2026314
6 October 2026 to 12 October 2026476
13 October 2026 to 19 October 2026270
20 October 2026 to 26 October 2026250
27 October 2026 to 2 November 2026470
3 November 2026 to 9 November 2026206
10 November 2026 to 16 November 2026148
17 November 2026 to 23 November 2026130

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.feeaa58canary31 October 2026
0.1.0stable1 September 2026
0.1.0-canary.a2db4facanary1 September 2026
0.1.0-canary.cc8f065canary31 August 2026
0.1.0-canary.f80c3b3canary31 August 2026
0.1.0-canary.46fcb7acanary31 August 2026
0.1.0-canary.9bd3759canary16 June 2026
0.1.0-canary.a924158canary16 June 2026
0.1.0-canary.1236fb6canary16 June 2026
0.1.0-canary.a432481canary14 June 2026

Changelog

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

  1. 0.1.0

    Added
    • Initial release of @vllnt/convex-permissions — stored, runtime-editable role-based access control as a Convex component.
    • Permissions<TRole, TAction> client class, generic over the host's role and action unions: defineRole, removeRole, assign, revoke, check, require, rolesFor, permissionsFor, listRoles.
    • Sandboxed roles and assignments tables keyed by opaque subjectRef / scopeRef; the host never reads them directly.
    • Wildcard grants ("doc.*", "*"), scoped / multi-tenant assignments, default-deny semantics, and a structured ConvexError<PermissionDenied> from require.
    • Boundary validation of role names and subject refs.
    • 100% end-to-end test coverage via convex-test against the real component runtime.
    Changed
    • Resolve scoped assignments through a (subjectRef, scopeRef) index and fetch only assigned role definitions, avoiding full per-subject assignment and global role-table scans on access checks.
    • Treat Convex _generated output 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.0 and update convex-test to ^0.0.56.
All releases of @vllnt/convex-permissions
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.feeaa58
GitHub stars
2 GitHub stars
Licence
MIT

Theme