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/source-map-bridge

v0.1.2

Published

Bidirectional TypeScript ↔ AJS (Oscilloscope JScript) source-map manager. Loads v3 maps (inline data URI, sidecar, implicit-sidecar) and translates positions both directions (TS → AJS for breakpoints, AJS → TS for stack frames). Coordinate-system aware —

Readme

@i-scope/source-map-bridge

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 pulls in the DAP adapter and MCP server on top of this leaf. Install @i-scope/source-map-bridge directly only when you reuse the TS↔AJS translation in tooling that has nothing to do with a debug session — bundlers, linters, custom .ajs post-processors, language servers.

Bidirectional TypeScript ↔ AJS (Oscilloscope JScript) source-map manager.

Originally extracted from the iScope DAP adapter, where the same component serves both ends of the debug session:

  • TS → AJS — translating a user-set breakpoint on a .ts line into the generated .ajs line the engine actually executes.
  • AJS → TS — translating an engine-reported break / call-frame location back to its original .ts for display in the IDE.

Now packaged stand-alone so other tooling around the iScope platform (MCP servers, CLI inspectors, language-server-like helpers) can reuse the exact same translation logic.


Install

npm install @i-scope/source-map-bridge

Quick start

import { SourceMapManager } from '@i-scope/source-map-bridge';

const maps = new SourceMapManager({
    log: (msg) => console.error(msg),
});

await maps.loadFor('C:/proj/dist/bundle.ajs');

// TS -> AJS (used when installing a breakpoint)
const gen = await maps.toGenerated('C:/proj/src/app.ts', 42, 1);
// => { generatedPath: 'C:/proj/dist/bundle.ajs', line: 137, column: 1 }

// AJS -> TS (used when reporting a stack frame)
const orig = await maps.toOriginal({
    generatedPath: 'C:/proj/dist/bundle.ajs',
    line:          137,
    column:         1,
});
// => { originalPath: 'C:/proj/src/app.ts', line: 42, column: 1 }

What it understands

  • Inline data URIs: //# sourceMappingURL=data:application/json;base64,...
  • Sidecar maps: //# sourceMappingURL=bundle.ajs.map
  • Implicit sidecars: no comment, but bundle.ajs.map next to bundle.ajs on disk.
  • file:// and webpack:/// URL schemes inside sources[].
  • Indexed maps (rare in practice — tsc / esbuild produce flat maps).
  • Case-insensitive matching of sources[] on Windows.

Coordinate-system conventions

| Layer | Lines | Columns | |---|---|---| | DAP transport | 1-based | 1-based (when linesStartAt1=true, columnsStartAt1=true) | | Mozilla source-map library | 1-based | 0-based | | Engine (BreakHitEvent) | 1-based | 1-based (helper normalises to 1) |

This module is the choke point that converts the column convention — all public functions take and return 1-based columns. Internal calls to SourceMapConsumer are adjusted transparently.

What it does NOT do

  • HMR / live reload. Maps load once per session; rebuilding the bundle mid-session requires a fresh SourceMapManager (or process restart).
  • Multi-bundle re-merging. One .ajs ↔ one source map.
  • IDE-side sourcesContent inlining — VS Code reads .ts from disk itself.

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 (you are here) | TS ↔ AJS source-map manager | | @i-scope/vlst-parser | 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