npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@i-scope/vlst-parser

v0.1.2

Published

Parser for the VLST (Variable List String Table) binary blob returned by ScopeAppDbgCtrl::GetStackContent. Shared building block for iScope IDE frontends that need to surface JScript locals / watch trees.

Readme

@i-scope/vlst-parser

npm version npm downloads License: MIT Node

Part of the @i-scope/debugger SDK — one of seven leaf packages aggregated by the @i-scope/debugger meta-umbrella. Most users should install the meta (npm install @i-scope/debugger), which transitively gives you VLST decoding alongside the DAP / MCP stack. Install @i-scope/vlst-parser directly only when you decode VLST blobs outside a live debug session — post-mortem dump inspectors, CLI tools that re-parse captured payloads, format research.

Parser for the VLST (Variable List String Table) binary blob returned by ScopeAppDbgCtrl::GetStackContent on Oscilloscope.exe. Turns the engine's UTF-16-LE BSTR into a tree of locals / watch / hover values for IDE tooling.

Originally lived inside the iScope DAP adapter; now a stand-alone package so @i-scope/dap-adapter, @i-scope/iscope-bridge-client, and @i-scope/mcp-server share one parser implementation.


Install

npm install @i-scope/vlst-parser

Requires Node.js ≥ 20. No runtime dependencies beyond Node built-ins.


Quick start

import {
    decodeVlstBase64,
    parseVlst,
    dumpVlst,
    packEvalReqData,
} from '@i-scope/vlst-parser';

// Base64 is how iScopeBridge returns GetStackContent (raw BSTR bytes).
const words = decodeVlstBase64(rawBase64FromBridge);
const { roots, consumed } = parseVlst(words);

for (const node of roots) {
    console.log(node.name, node.type, node.value ?? '(compound)');
    if (node.children) {
        for (const child of node.children) {
            console.log(' ', child.name, '=', child.value);
        }
    }
}

// Debug dump (tests, CLI inspectors)
console.log(dumpVlst(roots));

// Pack the 32-bit `req` argument for GetStackContent (EvalReqData layout)
const req = packEvalReqData({ contextId: 0, typeId: 0, radix: 0 });

Typical flow in a debug session:

  1. Call getStackContent via @i-scope/iscope-bridge-client → rawBase64.
  2. decodeVlstBase64 → Uint16Array of UTF-16 code units.
  3. parseVlst → { roots: VlstNode[], consumed }.
  4. Map VlstNode trees to DAP Variable / Scope responses (adapter layer).

API

| Export | Description | | --- | --- | | decodeVlstBase64(b64) | Base64 (raw BSTR bytes) → Uint16Array UTF-16-LE code units. Throws on odd byte length. | | parseVlst(words) | Parse code units → VlstParseResult (roots, consumed). Throws with vlstPos on malformed input. | | packEvalReqData({ contextId?, typeId?, radix? }) | Pack EvalReqData into the 32-bit req field for GetStackContent. | | dumpVlst(nodes, indent?) | Pretty-print a tree for logs and fixtures. | | VlstNode | { name, type, value?, children? } — one variable or expression result. | | VlstParseResult | { roots: VlstNode[], consumed: number }. |

typeId: 0 = local scope (RTID_LocalVarScope), 1 = parsed expressions (RTID_ParceExpressions). Radix bits follow the engine's internal enum when requesting numeric display strings.


Wire format (summary)

| Topic | Detail | | --- | --- | | Transport | BSTR: UTF-16-LE WORDs, even byte length, trailing 0x0000 terminator WORD ignored by the parser. | | Chunk | 1 WORD header: top 3 bits = flags, low 13 bits = payload length in WCHARs; then length UTF-16 payload WORDs. | | Item | Triplet on the wire: Name → Type → Value (or nested sub-level). | | FLG_ITM (0x8000) | Name header starts a new item. | | FLG_SLEV (0x4000) | Value slot opens a nested child list (recursion). | | FLG_ULEV (0x2000) | Last item on the current level — parser returns to parent. |


Integration

| Consumer | Role | | --- | --- | | @i-scope/iscope-bridge-client | Re-exports VLST helpers; returns rawBase64 from getStackContent. | | @i-scope/dap-adapter | Locals, watch, evaluate → DAP variables / scopes. | | @i-scope/mcp-server | debug_variables and related MCP tools over the same tree. |

This package does not talk to COM or spawn iScopeBridge.exe — only parses bytes you already received.


Tests

From the monorepo root:

npm run test --workspace=@i-scope/vlst-parser

Fixtures live under packages/vlst-parser/tests/ (compiled to dist/tests/).

Verify the published tarball includes this README:

npm pack --dry-run --workspace=@i-scope/vlst-parser

Related docs


Related packages

This package is one of seven leaves of the @i-scope/debugger SDK meta-umbrella. The full family:

| Package | Role | |---------|------| | @i-scope/debugger | meta — one-install entry point for the whole SDK | | @i-scope/mcp-server | MCP server for AI agents (22 tools) | | @i-scope/dap-adapter | DAP server (AjsDebugSession) — embeddable + stdio | | @i-scope/iscope-bridge-client | Node JSON-RPC client to the native helper | | @i-scope/iscope-bridge | Win32 native helper binary (iScopeBridge.exe) | | @i-scope/source-map-bridge | TS ↔ AJS source-map manager | | @i-scope/vlst-parser (you are here) | Parser for VLST locals/Watch blobs | | @i-scope/com-protocol-types | TS-mirror of COM DISPID / event constants |


License

MIT — see LICENSE.

Repository

Part of the iScope Debugger monorepo: https://gitlab.com/i-scope/Debugger (packages/vlst-parser).