ai/nanoid
55.5
Adequate · 13 November 2026
272
lines of production code
JavaScript
primary language
7
measurements over time
What this system is
Features
Add CLI entry point with version, help, and generation options
A new executable CLI script (bin/nanoid.js) is introduced, allowing users to generate NanoIDs directly from the command line. The tool supports the --version and --help flags for metadata, and accepts -s/--size and -a/--alphabet arguments to customize the generated ID's length and character set, providing a convenient interface for quick ID generation without writing code.
bin · high confidence
Add non-secure ID generator with TypeScript support
Introduces a new non-secure random ID generator accessible via the 'nanoid/non-secure' entry point, designed for environments where hardware random generators are unavailable. This addition includes both the JavaScript implementation (index.js) and TypeScript definitions (index.d.ts), exposing the nanoid and customAlphabet functions with an optional size argument and generic type support for opaque ID types.
non-secure · high confidence
Behavioural changes
Nano ID v6.0.1 release with documentation fixes and dev environment updates
This release fixes documentation issues and updates the development environment. The core library code (index.browser.js, nanoid.js) remains unchanged from v6.0.0, but the README and its translations (Arabic, Indonesian, Japanese, Korean, Russian, Chinese) have been refreshed. The project has migrated its CI from Travis CI to GitHub Actions (indicated by the removal of .travis.yml and addition of .devcontainer.json) and switched its package manager from Yarn to pnpm (evidenced by the new pnpm-workspace.yaml and updated .npmignore). Additionally, the code formatting tooling has been updated to use oxfmt/oxlint instead of Prettier/ESLint, and the JSR package configuration (jsr.json) is now included.
(repo-wide) · high confidence
Optimized URL-safe alphabet for compression
The url-alphabet module now exports a character set ordered specifically to improve compression efficiency for both gzip and Brotli. By arranging the \A-Za-z0-9\_-\ symbols to leverage common references in gzip back-references (such as 'use', 'andom', 'rict') and Brotli default dictionary words (such as 'bush', 'jack', 'mind', 'very', 'wolf'), the output generated by this alphabet will result in smaller payload sizes when compressed.
url-alphabet · high confidence
Test coverage
Add browser demo page with benchmark and distribution visualization; Added comprehensive test suite and benchmarking infrastructure.
Dependencies
Major version upgrade to v6.0.1 with modernized tooling and ESM support
The project has been upgraded to version 6.0.1, shifting the package type to ESM ("type": "module") and updating the supported Node.js engines to ^22, ^24, or \>=26. The build and linting toolchain has been modernized by replacing ESLint and Jest with oxlint and better-node-test, and the lockfile has migrated from yarn.lock to pnpm-lock.yaml. Development dependencies have been updated to their latest versions, including Vite (^8.3.0), TypeScript (^7.0.2), and size-limit (^14.0.0), while the package size limit has been adjusted to reflect the new 127-byte target for the main nanoid export.
(dependencies) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 55 → 55 (+0.1)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 69 → 67 (-1.9)
- Architecture 69 → 69 (+0.0)
- Maturity 53 → 55 (+2.8)
- Readiness 46 → 46 (+0.0)
- Security 88 → 81 (-6.3)
- Performance 94 → 90 (-4.3)
Resolved (5)
- No ADRs found
- Test project verifies nothing: the repository root (test/pool.test.js)
- index.browser.customRandom (cognitive 23) (index.browser.js)
- index.customAlphabet (cognitive 32) (index.js)
- index.customRandom (cognitive 23) (index.js)
New (6)
- No ADRs found (package.json)
- Test project verifies nothing: the repository root (test/bin.test.js)
- customAlphabet (cognitive 32) (index.js)
- customRandom (cognitive 23) (index.browser.js)
- customRandom (cognitive 23) (index.js)
- index.customAlphabet.<returned closure> (cognitive 27) (index.js)
Changes since last survey
- 1 commits — 1 feature/other, 0 fixes
By area
- (root) — 1 commit
Notable commits
- change: Remove redundant Math.min in node.js version (#624)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
ai/nanoid was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 055d1700cc67ac843e3efb5235d806b419ec7b2b — the exact code this score is about.
- Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.63+preprod-4a8cc97a9484.