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"] } }}