[ 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).
pnpm add @vllnt/convex-slugs
pnpm add @vllnt/convex-slugs@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 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.
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
| Week | Downloads |
|---|---|
| 14 June 2026 to 15 June 2026 | 153 |
| 16 June 2026 to 22 June 2026 | 389 |
| 23 June 2026 to 29 June 2026 | 36 |
| 30 June 2026 to 6 July 2026 | 52 |
| 7 July 2026 to 13 July 2026 | 62 |
| 14 July 2026 to 20 July 2026 | 24 |
| 21 July 2026 to 27 July 2026 | 9 |
| 28 July 2026 to 3 August 2026 | 5 |
| 4 August 2026 to 10 August 2026 | 13 |
| 11 August 2026 to 17 August 2026 | 61 |
| 18 August 2026 to 24 August 2026 | 11 |
| 25 August 2026 to 31 August 2026 | 332 |
| 1 September 2026 to 7 September 2026 | 415 |
| 8 September 2026 to 14 September 2026 | 52 |
| 15 September 2026 to 21 September 2026 | 23 |
| 22 September 2026 to 28 September 2026 | 28 |
| 29 September 2026 to 5 October 2026 | 10 |
| 6 October 2026 to 12 October 2026 | 25 |
| 13 October 2026 to 19 October 2026 | 7 |
| 20 October 2026 to 26 October 2026 | 25 |
| 27 October 2026 to 2 November 2026 | 198 |
| 3 November 2026 to 9 November 2026 | 76 |
| 10 November 2026 to 16 November 2026 | 51 |
| 17 November 2026 to 23 November 2026 | 18 |
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
| Version | Kind | Published |
|---|---|---|
| 0.1.1-canary.22e5023 | canary | 31 October 2026 |
| 0.1.0 | stable | 1 September 2026 |
| 0.1.0-canary.2051641 | canary | 1 September 2026 |
| 0.1.0-canary.fc268ae | canary | 31 August 2026 |
| 0.1.0-canary.98b8419 | canary | 31 August 2026 |
| 0.1.0-canary.d96622b | canary | 31 August 2026 |
| 0.1.0-canary.c3074b0 | canary | 16 June 2026 |
| 0.1.0-canary.895c239 | canary | 16 June 2026 |
| 0.1.0-canary.7161fcf | canary | 16 June 2026 |
| 0.1.0-canary.35a39c1 | canary | 14 June 2026 |
Changelog
The newest stable releases of @vllnt/convex-slugs, with the notes from its changelog.
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), andreservedWords([]); 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 clientSlugWriteResult. - Redirect chains collapse:
renamerepoints existing redirects to the live slug (A→B→C ⇒redirectFor(A) === C), keeping one row per(scope, fromSlug)via a newby_scope_toindex. 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
_generatedoutput as CLI-owned, exclude it from formatting, and expose a dedicated codegen script. - Require
convex@^1.45.0and updateconvex-testto^0.0.56.
Fixed
releasedeletes allredirectsrows whosetoSlugequals the released slug, soredirectFor(old)returnsnullinstead of a dead target after release.renamerejects a self-rename (fromSlug === toSlug) withSLUG_TAKENbefore any DB read.normalizeSlugapplies Unicode NFC before trimming, so visually-identical slugs with different compositions collide as expected.redirectForno longer carries a dead.order("desc")call.
- First release of
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
- Issues
- Open an issue