IDs-LE

io.github.nolindnaidoov1.0.0Updated Oct 4, 2026

Extract every UUID, ULID, NanoID, ObjectId and Snowflake, and decode the time inside.

VerifiedSTDIODesktop onlyDeveloper ToolsData & Analytics

Overview

AI-generated overview

Lets an assistant extract UUIDs, ULIDs, NanoIDs, MongoDB ObjectIds and Snowflakes from supplied text and decode the timestamps inside them.

What it does
The server exposes an extract_ids tool that scans content passed as an argument and returns each identifier with its kind, line and column, key path, validity, and, for the six schemes that carry a clock, the minted instant as ISO-8601 UTC. It recognises all eight RFC 9562 UUID versions and four variants, and reports runs it cannot name honestly as rows with a reason such as ambiguous_kind, malformed or timestamp_implausible rather than dropping them. It reads no files and makes no network requests.
When to use it
Useful when reviewing logs, dumps, configs or documents and needing to know which hex strings are real identifiers and when they were minted, or to check whether a value is a UUID, ObjectId or Snowflake before trusting it. It suits agents that would otherwise guess at identifier kinds from a regex.
Requirements
Runs locally over stdio via npx ids-le-mcp (npm package ids-le-mcp), so Node.js is needed. No environment variables, API keys, accounts or configuration are required, and it needs no network access.
Before you install
It only analyses content passed to it and rewrites nothing, but the content you send may contain identifiers from private systems, so treat the returned rows as sensitive. ObjectId and Snowflake are only named when the surrounding key ends in id, and plain-text input has no keys, so those are refused as ambiguous_kind.

Installation

In SourceWeft

  1. Open IDs-LE in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

[IDs-LE Logo]

IDs-LE: The ID That Only Looks Like One

Find every identifier in a document, decode the time inside it, and refuse the ones that cannot be named
UUID · ULID · NanoID · MongoDB ObjectId · Snowflake

[Install from VS Code Marketplace] [Open VSX downloads] [ids-le-mcp on npm] [ids-le on crates.io] [LE Tools]


Useful? A star or rating is how other developers find it — ★ GitHub · ★ Open VSX · ★ Marketplace

What it does

A support ticket quotes 6a7bb780a1b2c3d4e5f60718 and asks when the record was made. A regex says ObjectId, minted 2026-08-12. It is the front of a git commit hash, and the date is noise that happens to land in a plausible year.

Open a document, press Ctrl+Alt+I (Cmd+Alt+I on Mac), and every identifier in it is listed by kind with its line and column, the document's own key path for it, whether it is valid, and — for the six schemes that carry a clock — the instant it was minted, as ISO-8601 UTC. The report opens beside the editor. Works in VS Code and in VS Code–based editors like Cursor and VSCodium (installable from Open VSX).

  • Reading a log or a dump — which of these are UUID v7s, and when was each minted?
  • Reviewing a config — the placeholder nil UUID that escaped into production
  • Before trusting a hex string — whether the document actually says it is an identifier

A run it cannot name honestly is reported with the reason, never dropped. It rewrites nothing.

Install

WhereWhat you getInstall
VS CodeThe extraction, in your editor, on a keystrokeMarketplace
Cursor, VSCodium, WindsurfThe same extensionOpen VSX
A terminal or a CI stepA whole tree, with an exit codecargo install ids-le · crates.io
Any MCP agent, via Nodeextract_ids over stdionpx ids-le-mcp · npm
ZedThe MCP server as a context serveradd it by hand (no listing yet)

It refuses rather than guesses

A tool that answers confidently and wrongly is worse than one that stops and names what it needs. So every run this crate will not name is a row in the report with a reason — never a dropped row, never a silent guess.

ReasonWhat it means
ambiguous_kindTwo or more schemes fit and nothing in the document chooses between them.
malformedThe right shape, and validation failed.
nil_or_maxThe nil or max UUID: structurally perfect, and RFC 9562 says it names nothing.
version_claim_mismatchA UUID claims v4 — 122 random bits — and the bytes are plainly not random. Both are reported; neither is resolved.
timestamp_implausibleA decode landed before 1990 or more than a year out. The decode comes with the flag.

Some are worth spelling out, because they are the cases a regex gets confidently wrong:

  • 5d41402abc4b2a76b9719d911017c592 is an unhyphenated UUID and an MD5 digest. Nothing in a document separates them, so nothing here picks.
  • 6a7bb780a1b2c3d4e5f60718 is 24 hex characters. Under _id it is an ObjectId minted on 2026-08-12. Under checksum, or in prose, it is refused — an ObjectId's whole specification is 24 hex characters, so a truncated SHA-1 fits it exactly and only the document can tell them apart.
  • 1536886938009600000 under channel_id is a Discord Snowflake at 2026-08-12. Under a bare user_id it is refused, because the Twitter epoch fits too and the document does not say which. Under population it is not a finding at all.

The full table, and the boundaries the tool holds itself to, are in crate/SPEC.md.

The kinds

KindShapeDecoded timeExtra fields
uuid36 characters, 8-4-4-4-12, hexv1, v6, v7version, variant
ulid26 characters, Crockford base32always (48-bit Unix ms)—
nanoid21 characters, A-Za-z0-9_-never — a NanoID has no clock—
objectid24 hex characters, under a key naming an idalways (32-bit Unix seconds)—
snowflake17–19 digits, under a key naming an idalways (top 42 bits + an epoch)—

Two of those kinds need the document's permission. An ObjectId is 24 hex characters and a Snowflake is a large integer; neither carries a version, a variant, a checksum or a restricted alphabet, so neither run can say on its own what it is — a truncated git hash is a structurally perfect ObjectId, and a byte count is a structurally perfect Snowflake. Both are named only where the field's own name ends in id (_id, userId, USER-ID, $oid), and refused as ambiguous_kind otherwise. In a plain-text file, which has no keys at all, neither is ever named.

All eight UUID versions RFC 9562 defines are recognised, and all four variants — ncs, rfc4122, microsoft, future — are reported. A version is only reported under the RFC variant, because in any other layout those four bits are not a version field.

The timestamps

This is the part nobody wants to write twice. Six of these carry a clock, in six unrelated bit layouts, over four different epochs — one of which starts in 1582:

SchemeWhere the time isEpoch
UUID v160 bits of 100-nanosecond intervals, low field first1582-10-15
UUID v6the same ticks, reordered so they sort1582-10-15
UUID v748 bits of milliseconds, at the frontUnix
ULIDthe first ten Crockford characters, 48 bitsUnix
ObjectIdthe leading four bytes, in secondsUnix
Snowflakethe top 42 bitsTwitter (2010-11-04) or Discord (2015-01-01)

Every one comes back as the same ISO-8601 UTC string, milliseconds always present. UUID v2 is named and not decoded: its clock has its low 32 bits overwritten by a POSIX uid, so it resolves to roughly seven minutes and is not the same claim.

A decode that lands before 1990 or more than a year from now is refused as timestamp_implausible — and the decode is on the row next to the flag, because a refusal that hides its evidence is a verdict a reader cannot check.

Formats

JSON (and JSONC), YAML, TOML, INI (.properties), dotenv, CSV and TSV give each finding a key path — service.requestId, documents.[0]._id, discord.channel_id. Everything else is read as text: the same runs, in the same places, without the key.

The key path is evidence, not decoration. ObjectId and Snowflake are named only under a field the document calls an id, so a run that is named in the .json comes back ambiguous_kind in the .md beside it — same row, same position, same decode, and a reason instead of a name.

Use it from an AI agent

The same engine runs as an MCP server, so an agent can call it directly instead of guessing which hex string is which.

EditorHow
VS Code 1.101+Nothing to install — the extension registers extract_ids with agent mode
ZedNo listing yet — add the MCP server by hand
Claude Codeclaude mcp add ids-le -- npx -y ids-le-mcp
Cursor, Windsurf, anything elsepoint it at npx ids-le-mcp
extract_ids(content, format?, filename?, kind?, maxResults?)

It returns the rows the editor renders, refusals included, as data — capped at 500 by default with meta.truncated. It reads no files and makes no network requests. Published as ids-le-mcp on npm and as io.github.nolindnaidoo/ids-le in the MCP registry. It answers exactly as the Rust CLI's server does: one corpus runs against both, and a differential test feeds both thousands of generated documents in every format and compares every answer.

Configuring it by hand — any host with an MCP config file
json
{  "mcpServers": {    "ids-le": {      "command": "npx",      "args": ["-y", "ids-le-mcp"]    }  }}

Or install it once with npm install -g ids-le-mcp and point at ids-le-mcp. It needs no environment variables, no API key and no configuration of its own. To check it:

bash
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | npx -y ids-le-mcp

The CLI

The same extraction runs over a whole tree from a terminal or a CI step: a Rust CLI in crate/, sharing one corpus with the extension — crate/fixtures/ — so the two can never read an identifier differently.

[ids-le in a terminal]

bash
ids-le src/                    # a tree, one JSON line per fileids-le --kind uuid src/        # one scheme; refusals still reportedids-le --strict src/           # exit 2 on anything that could not be namedids-le --hidden src/           # include .envids-le mcp                     # extract_ids and ids_le_scan over MCP on stdio

Exit codes follow grep — 0 identifiers found, 1 none found, 2 the question was malformed. A refusal does not move the exit code; --strict is how a pipeline turns one into a failure.

Commands

CommandDescription
IDs-LE: Extract IDs (Ctrl+Alt+I / Cmd+Alt+I)Extract every identifier in the active document
IDs-LE: Open SettingsOpen IDs-LE settings
IDs-LE: Help & TroubleshootingBuilt-in documentation

Settings

SettingDefaultDescription
ids-le.kindallName only one kind; runs that could not be named are reported whatever this is
ids-le.openResultsSideBySidetrueOpen the report beside the current editor
ids-le.copyToClipboardEnabledfalseAlso copy the report to the clipboard
ids-le.safety.enabledtrueWarn before extracting from a large file
ids-le.safety.fileSizeWarnBytes1000000The size that warning starts at
ids-le.notificationsLevelsilentall = every notification, important = warnings + errors, silent = errors only
ids-le.statusBar.enabledtrueShow the status bar item
ids-le.telemetryEnabledfalseLocal-only event log (see Privacy)

Languages

Twelve languages besides English:

German · Spanish · French · Indonesian · Italian · Japanese · Korean · Portuguese (Brazil) · Russian · Ukrainian · Vietnamese · Chinese (Simplified)

Both halves are covered — the manifest (command titles, setting names and descriptions) and everything shown while the extension runs (notifications, the status bar and the report's headings). A refusal's detail is the engine's English, identical to the CLI's.

Privacy & security

  • No network access. The extension never sends data anywhere, and it verifies nothing against a database or an API. The telemetryEnabled setting only writes events to a local Output Channel you can inspect (IDs-LE).
  • The MCP server holds the same line. It takes content as an argument and returns data: no filesystem access, no network calls, no telemetry.
  • Error notifications redact home directories and credential-shaped fragments.

Documentation

WhatWhere
What the tool is allowed to say — kinds, refusals, the output contract, non-goalscrate/SPEC.md
How the extension is built and held together — architecture, invariants, toolchain, releaseAGENTS.md
How the CLI is built and held togethercrate/AGENTS.md
What changedCHANGELOG.md · crate/CHANGELOG.md
The tool's page, and the other fifteenletools.dev/tools/ids-le

Performance

InputSizeFoundTimeRateScan speed
JSON records2.39 MB40,00052.56 ms761,092/sec45.5 MB/s
Application log3.16 MB40,00043.08 ms928,448/sec73.4 MB/s
CSV export2.78 MB90,00075 ms1,200,003/sec37 MB/s

Median of 7 runs after warmup, on Apple M5 Pro, 24 GB RAM, Node 24.3.0. Inputs are generated by scripts/benchmark.ts rather than checked in, so the sizes above are exactly what was measured. Reproduce with bun run benchmark.

These are machine-specific and are not asserted in CI — a benchmark that gates a build only tells you how busy the runner was.

Testing

MetricCoverage
Statements88.83%
Branches83.11%
Functions91.36%
Lines90.60%

97 test cases across 11 files, plus an integration suite that runs in a real VS Code extension host and an end-to-end test that installs the built .vsix into a clean profile.

Generated from a real run — coverage/coverage-summary.json and coverage/test-results.json — by scripts/coverage-readme.js; CI fails if this section drifts. Reproduce with bun run test:coverage, and the case count is the one vitest prints.

More from the LE family

Sixteen single-purpose tools for the work in front of every model. Each ships a Rust CLI and an MCP server. One page: letools.dev

Get it out

  • String-LE — Extract every string in a codebase, with its position, so a person can read them
  • Numbers-LE — Extract every hardcoded number in a codebase, so a person can check them
  • Units-LE — Extract every quantity with its unit, normalized, and refuse the ambiguous ones by name
  • Dates-LE — Extract every date and timestamp, and the exact instant each one resolves to
  • IDs-LE — Extract every UUID, ULID, NanoID, ObjectId and Snowflake, and decode the time inside
  • IPs-LE — Extract every IP address, CIDR block and MAC, normalized and classified by scope
  • URLs-LE — Extract every URL in a codebase, with its protocol and exact position
  • Paths-LE — Extract every file path in a codebase, and say whether it still points at anything
  • Colors-LE — Extract every color in a codebase, and say which ones are not in your palette

Check it

  • Regex-LE — Find every regex in a codebase, and report which can be driven into catastrophic backtracking
  • Versions-LE — Find where one dependency is constrained differently across a repository's manifests
  • i18n-LE — Identify the i18n library a project uses, then audit its catalogs by that library's rules
  • Scrape-LE — Check whether a page is scrapeable before the scraper is written, and say when it cannot tell

Guard it

  • Secrets-LE — Find hardcoded credentials in a codebase, and never print one into the report
  • EnvSync-LE — Compare the dotenv files in a tree, and say which keys are missing from which
  • Unicode-LE — Find the Unicode that hides meaning — bidi controls, invisibles, homoglyphs, mixed scripts

Each stands on its own: no shared crate, no published core. Where two of them agree, it is because the same answer was right twice.

Contact — nolindnaidoo.com · GitHub · LinkedIn

Also by nolindnaidoo

Rust — pixelcoords and pixelactions are one loop: pixelcoords answers where, pixelactions acts there. Their own tools, their own voice — not part of the LE family.

License

MIT © nolindnaidoo

Source: README.md at commit 480c3a9

Tools

0
Tool metadata has not been indexed yet.

Version history

1
  1. v1.0.0LatestOct 4, 2026