Skip to content

[ CONVEX COMPONENT · STABLE · MIT ]

@vllnt/convex-slugs

Unique slug and handle registry with rename redirects

STABLE 0.1.0 · 1 GitHub star

Package details

Install

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

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

Use it

Usage, options and examples are in the package README.

Read the README

Downloads

Last 7 days
18
Since first publish
2,075

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.

18 downloads in the last 7 days. 2,075 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 2026153
16 June 2026 to 22 June 2026389
23 June 2026 to 29 June 202636
30 June 2026 to 6 July 202652
7 July 2026 to 13 July 202662
14 July 2026 to 20 July 202624
21 July 2026 to 27 July 20269
28 July 2026 to 3 August 20265
4 August 2026 to 10 August 202613
11 August 2026 to 17 August 202661
18 August 2026 to 24 August 202611
25 August 2026 to 31 August 2026332
1 September 2026 to 7 September 2026415
8 September 2026 to 14 September 202652
15 September 2026 to 21 September 202623
22 September 2026 to 28 September 202628
29 September 2026 to 5 October 202610
6 October 2026 to 12 October 202625
13 October 2026 to 19 October 20267
20 October 2026 to 26 October 202625
27 October 2026 to 2 November 2026198
3 November 2026 to 9 November 202676
10 November 2026 to 16 November 202651
17 November 2026 to 23 November 202618

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.22e5023canary31 October 2026
0.1.0stable1 September 2026
0.1.0-canary.2051641canary1 September 2026
0.1.0-canary.fc268aecanary31 August 2026
0.1.0-canary.98b8419canary31 August 2026
0.1.0-canary.d96622bcanary31 August 2026
0.1.0-canary.c3074b0canary16 June 2026
0.1.0-canary.895c239canary16 June 2026
0.1.0-canary.7161fcfcanary16 June 2026
0.1.0-canary.35a39c1canary14 June 2026

Changelog

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

  1. 0.1.0

    Added
    • First release of @vllnt/convex-slugs.
    Hardened (in-place review fixes, 0.1.0)
    • Configurable input rules on the client: minLength (1), maxLength (256), pattern? (charset), and reservedWords ([]); empty/whitespace slugs are rejected. The component re-guards length at the trust boundary.
    • Typed rejection reasons as a string-literal union — SLUG_TAKEN, SLUG_NOT_FOUND, SLUG_INVALID, SLUG_RESERVED — on both the Convex validator and the client SlugWriteResult.
    • Redirect chains collapse: rename repoints existing redirects to the live slug (A→B→C ⇒ redirectFor(A) === C), keeping one row per (scope, fromSlug) via a new by_scope_to index. Reserving a renamed-away slug clears its dangling redirect.
    • Registry reads use .first() instead of .unique() so a stray duplicate row degrades to a value rather than throwing.
    Changed
    • Treat Convex _generated output as CLI-owned, exclude it from formatting, and expose a dedicated codegen script.
    • Require convex@^1.45.0 and update convex-test to ^0.0.56.
    Fixed
    • release deletes all redirects rows whose toSlug equals the released slug, so redirectFor(old) returns null instead of a dead target after release.
    • rename rejects a self-rename (fromSlug === toSlug) with SLUG_TAKEN before any DB read.
    • normalizeSlug applies Unicode NFC before trimming, so visually-identical slugs with different compositions collide as expected.
    • redirectFor no longer carries a dead .order("desc") call.
All releases of @vllnt/convex-slugs
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.22e5023
GitHub stars
1 GitHub star
Licence
MIT

Theme