generate_uuid
Generate one or more UUIDs. v7 (time-ordered) is best for database keys; v4 is fully random.
countversion
io.github.sohan724code由 GitHub 账号 sohan724code 发布v1.0.0更新于 Oct 28, 2026
Generate UUID v4/v5/v7, ULID and NanoID values and inspect UUIDs (version, variant, timestamp).
生成 UUID v4/v5/v7、ULID 和 NanoID 标识符,并可解析 UUID,支持远程端点或本地 npm 服务。
Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。
把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。
阅读 https://sourceweft.com/mcp/io.github.sohan724code%2Fyoursuuid/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。把它添加到你客户端的 mcpServers 配置中。
{
"mcpServers": {
"yoursuuid": {
"type": "http",
"url": "https://yoursuuid.com/mcp"
}
}
}Zero-dependency UUID v4 / v5 / v7, ULID and NanoID generation, validation and decoding for browsers, Node 20+, Deno, Bun and edge runtimes. Ships a CLI and an MCP server. MIT licensed.
Randomness comes only from crypto.getRandomValues. UUID v7 and ULID are monotonic within a process, so IDs created
in the same millisecond still sort in creation order.
yoursuuid/devtools)Cron follows standard 5-field Vixie semantics: names (JAN, MON), ranges, steps, lists, 7 = Sunday,
@daily-style macros, and "day of month OR day of week" when both are restricted.
Flags: --upper, --no-hyphens.
Lets AI assistants (Claude, Cursor, VS Code, Windsurf…) generate and inspect identifiers locally.
Tools: generate_uuid, generate_uuid_v5, generate_ulid, generate_nanoid, inspect_uuid, hmac,
jwt_sign, jwt_verify, bcrypt_hash, bcrypt_verify, base58, base32, json_to_typescript,
json_to_zod, json_to_go, json_to_rust, format_sql, curl_to_code, cron_next_runs, build_cron,
explain_regex, explain_chmod, docker_run_to_compose.
No install? The hosted Streamable HTTP endpoint https://yoursuuid.com/mcp offers the identifier tools. HMAC, JWT
and bcrypt stay on the local server so secrets never leave your machine.
UUID v7 puts a millisecond timestamp first, so database indexes receive keys in order instead of at random pages. See the UUID v7 visualizer and the collision calculator.
MIT
来源:packages/yoursuuid/README.md,提交 8df0f4b
Generate one or more UUIDs. v7 (time-ordered) is best for database keys; v4 is fully random.
countversionDeterministic name-based UUID v5 (SHA-1) for a name in a namespace (dns, url, oid, x500 or a UUID).
name必填namespaceGenerate monotonic ULIDs (26-character, lexicographically sortable by time).
countGenerate URL-safe NanoIDs with an optional size and custom alphabet.
sizecountalphabetValidate a UUID and report its version, variant and embedded timestamp (v1, v6, v7).
uuid必填已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在仓库或注册中心条目中声明许可证。
npm install yoursuuidimport { uuidv4, uuidv7, uuidv5, ulid, nanoid, parseUuid, isUuid } from 'yoursuuid'
uuidv7() // '0192d3a1-7c4f-7b2a-9d1e-3f5a6b7c8d9e'uuidv4() // random v4await uuidv5('example.com', 'dns') // deterministic, SHA-1 name-basedulid() // '01JB8S3Y2F7Q9X4M5N6P7R8S9T'nanoid(12) // 'V1StGXR8_Z5j'
parseUuid('0192d3a1-7c4f-7b2a-9d1e-3f5a6b7c8d9e')// { valid: true, uuid: '…', version: 7, variant: 'rfc9562', timestamp: Date(2024-10-28T14:57:08.687Z) }
isUuid('{0192D3A1-7C4F-7B2A-9D1E-3F5A6B7C8D9E}') // true — braces, urn:uuid: and missing hyphens are acceptedimport { hmac, jsonToTypescript, jsonToZod, describeCron, cronNextRuns, jwtSign, bcryptHash } from 'yoursuuid/devtools'
await hmac('SHA-256', 'secret', 'message') // hex; also 'base64' and 'base64url'jsonToTypescript('{"id":1,"tags":["a"]}', { rootName: 'User' })jsonToZod('{"id":1}', { rootName: 'User' })describeCron('0 9 * * 1-5') // 'At 09:00 on Monday through Friday'cronNextRuns('*/15 * * * *', { count: 3, utc: true }) // [Date, Date, Date]await jwtSign({ sub: 'a' }, 'secret', 'HS256')bcryptHash('password', 10)npx yoursuuid # one UUID v4npx yoursuuid v7 -n 5 # five UUID v7npx yoursuuid ulid -n 3npx yoursuuid nanoid --size 12npx yoursuuid v5 example.com --namespace dnsnpx yoursuuid inspect 0192d3a1-7c4f-7b2a-9d1e-3f5a6b7c8d9enpx yoursuuid hmac "message" --key secret --alg sha256npx yoursuuid jwt sign '{"sub":"a"}' --secret secretnpx yoursuuid bcrypt hash "password" --cost 10npx yoursuuid cron "*/15 9-17 * * 1-5" --utcnpx yoursuuid cron build --minute 0 --hour 9 --dow 1-5curl -s https://api.github.com/users/octocat | npx yoursuuid json2ts --name Usernpx yoursuuid json2zod payload.json --name Usernpx yoursuuid chmod 755npx yoursuuid compose "docker run -d -p 8080:80 nginx"{ "mcpServers": { "yoursuuid": { "command": "npx", "args": ["-y", "yoursuuid", "mcp"] } }}