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 分

    请在仓库或注册中心条目中声明许可证。