YourSUUID

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).

已驗證Streamable HTTP可網頁執行開發者工具

概覽

AI 產生的概覽

產生 UUID v4/v5/v7、ULID 與 NanoID 識別碼,並可解析 UUID,支援遠端端點或本機 npm 伺服器。

可以做什麼
  • 產生隨機 UUID v4 與依時間排序的 UUID v7,可單筆或批次
  • 依名稱與命名空間產生確定性的 UUID v5
  • 產生單調遞增的 ULID 與 URL 安全的 NanoID,可指定長度與字元集
  • 驗證 UUID 並回報其版本、變體與內嵌時間戳
適用情境
適合助理需要為資料結構、測試資料、資料庫主鍵或範例資料產生識別碼,或需要驗證、解析他人提供的 UUID 時使用。功能單純專一;本機套件另提供這五個工具之外的開發者實用工具。
執行需求
使用託管的 Streamable HTTP 端點,或以 npx 啟動本機程序(需 Node.js 20 以上)。未宣告需要帳號、API 金鑰或環境變數。
安裝前請注意
託管端點會接收你送出的識別碼或數值;README 說明 HMAC、JWT、bcrypt 等涉及密鑰的工具只在本機伺服器執行。產生的 ID 為隨機或依時間產生,應視為識別碼而非機密。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 YourSUUID,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.sohan724code%2Fyoursuuid/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "yoursuuid": {
      "type": "http",
      "url": "https://yoursuuid.com/mcp"
    }
  }
}

README

yoursuuid

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.

Install

bash
npm install yoursuuid

Library

js
import { 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 accepted

Developer utilities (yoursuuid/devtools)

js
import { 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)

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.

CLI

bash
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"

Flags: --upper, --no-hyphens.

MCP server

Lets AI assistants (Claude, Cursor, VS Code, Windsurf…) generate and inspect identifiers locally.

json
{  "mcpServers": {    "yoursuuid": { "command": "npx", "args": ["-y", "yoursuuid", "mcp"] }  }}

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.

Why v7?

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.

License

MIT

來源:packages/yoursuuid/README.md,提交 8df0f4b

工具

5

generate_uuid

Generate one or more UUIDs. v7 (time-ordered) is best for database keys; v4 is fully random.

輸入參數countversion

generate_uuid_v5

Deterministic name-based UUID v5 (SHA-1) for a name in a namespace (dns, url, oid, x500 or a UUID).

輸入參數name必填namespace

generate_ulid

Generate monotonic ULIDs (26-character, lexicographically sortable by time).

輸入參數count

generate_nanoid

Generate URL-safe NanoIDs with an optional size and custom alphabet.

輸入參數sizecountalphabet

inspect_uuid

Validate a UUID and report its version, variant and embedded timestamp (v1, v6, v7).

輸入參數uuid必填

版本歷史

1
  1. v1.0.0最新Oct 25, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。