uid-pool
Version:
High-performance UUID and unique ID pooling for Node.js. Pre-generate IDs in background worker threads for O(1) synchronous acquisition. Drop-in replacement for uuid.v4() and nanoid() with 10-100x better performance under load.
121 lines (120 loc) • 2.8 kB
JSON
{
"name": "uid-pool",
"version": "0.0.1",
"description": "High-performance UUID and unique ID pooling for Node.js. Pre-generate IDs in background worker threads for O(1) synchronous acquisition. Drop-in replacement for uuid.v4() and nanoid() with 10-100x better performance under load.",
"license": "MIT",
"author": "Konstantin Tarkus <hello@kriasoft.com>",
"repository": {
"type": "git",
"url": "https://github.com/kriasoft/uid-pool.git"
},
"bugs": {
"url": "https://github.com/kriasoft/uid-pool/issues"
},
"homepage": "https://kriasoft.com/uid-pool/",
"type": "module",
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
"./node": {
"types": "./dist/node/index.d.ts",
"import": "./dist/node/index.js"
},
"./edge": {
"types": "./dist/edge/index.d.ts",
"import": "./dist/edge/index.js"
},
"./auto": {
"types": "./dist/auto/index.d.ts",
"import": "./dist/auto/index.js"
},
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist/**/*",
"README.md",
"LICENSE"
],
"scripts": {
"build": "tsc --project tsconfig.build.json",
"clean": "rm -rf dist",
"lint": "eslint .",
"typecheck": "tsc --noEmit",
"format": "prettier --write .",
"format:check": "prettier --check .",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"devDependencies": {
"@eslint/js": "^9.30.1",
"@types/bun": "latest",
"eslint": "^9.30.1",
"eslint-config-prettier": "^10.1.5",
"jiti": "^2.4.2",
"nanoid": "^5.1.5",
"prettier": "^3.6.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.35.1",
"uuid": "^11.1.0",
"vitepress": "^1.6.3"
},
"keywords": [
"uuid",
"uuid-pool",
"id-pool",
"unique-id",
"uid",
"nanoid",
"cuid",
"cuid2",
"ulid",
"ksuid",
"shortid",
"xid",
"id-generator",
"unique-identifier",
"pool",
"pooling",
"pre-generate",
"performance",
"high-performance",
"worker-threads",
"non-blocking",
"async",
"synchronous",
"O(1)",
"edge-runtime",
"cloudflare-workers",
"deno",
"bun",
"node",
"typescript",
"esm",
"circular-buffer",
"id-cache",
"uuid-cache",
"nanoid-pool",
"uuid-generator",
"fast-uuid",
"uuid-v4",
"crypto-random",
"random-id",
"unique-string",
"identifier",
"guid",
"objectid"
],
"prettier": {
"singleQuote": false,
"semi": true,
"trailingComma": "all",
"tabWidth": 2,
"printWidth": 80
}
}