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

@appxiom/web-map

v2.1.1

Published

Locally deobfuscate JavaScript stack traces with source maps

Readme

Appxiom Web Map

@appxiom/web-map is a local command-line tool for resolving JavaScript stack traces against source maps from a production build. The executable is appxiom-stacktrace.

Installation

Run it without a global install:

npx @appxiom/web-map "TypeError: Something went wrong
    at a (https://example.com/assets/index-abc123.js:1:3)" --maps ./dist

The default map directory is ./dist, relative to the current working directory, so --maps can be omitted when that is where the build files are located.

Usage

Pass a stack trace as one quoted argument or with --stacktrace:

npx @appxiom/web-map "TypeError: Something went wrong
    at a (https://example.com/assets/index-abc123.js:1:3)"

npx @appxiom/web-map --stacktrace "TypeError: Something went wrong
    at a (https://example.com/assets/index-abc123.js:1:3)" --maps ./dist

Read a stack trace from a file or standard input:

npx @appxiom/web-map --stacktrace-file ./error.txt --maps ./dist
cat ./error.txt | npx @appxiom/web-map --stdin --maps ./dist

The stack-trace text option is always literal text. Use --stacktrace-file when the input is a path.

| Option | Description | | --- | --- | | [text] | Stack trace as one quoted argument | | --stacktrace <text> | Literal stack-trace text | | --stacktrace-file <path> | Read stack trace from a file | | --stdin | Read stack trace from standard input | | --maps <directory-or-file> | Local map directory or a specific .map file; defaults to ./dist | | --json | Write the original input, resolved output, and frame statuses as JSON | | --verbose | Write selected maps and unresolved-frame explanations to stderr | | --help | Show command help | | --version | Show the package version |

Choose exactly one stack-trace input method. Normal output is written to stdout; diagnostics and errors go to stderr.

Supported Stack Traces

The parser supports Chrome and Chromium named and anonymous frames, Firefox function@file:line:column frames, and Safari-compatible function@file:line:column frames. It keeps exception messages, non-frame lines, and frame ordering. Frames without a safe local map association or a matching source-map entry remain unchanged.

Source-map version 3 files are supported, including maps with file, sourceRoot, sources, names, and sourcesContent fields. Maps may be adjacent to a generated bundle or referenced by its sourceMappingURL comment. Base64 inline JSON maps are also supported. Hashed bundle names and nested build directories are supported when their generated paths can be matched safely.

Function names are taken from source-map data when available. Otherwise the original stack-frame function name is kept; no source locations or names are fabricated.

JSON Output

--json writes one JSON object with the original input, reconstructed output, per-frame generated and resolved locations, status, optional unresolved reason, selected mapPath, and diagnostics. The sourcesContent values from a map are not included.

Local Processing and Privacy

All processing happens on the machine running the CLI. It does not make network requests, fetch remote maps, send telemetry, upload stack traces or maps, or execute generated bundles. A remote script URL in a stack frame is only used to identify a corresponding local bundle and map.

Troubleshooting

  • If a frame stays unchanged, confirm the corresponding generated bundle and source map are inside the selected map directory, then use --verbose to see why it was not resolved.
  • If several bundles have the same name, provide a map directory whose local paths preserve enough of the generated URL path to distinguish them.
  • If the map is separate from its bundle, make sure its file field identifies the generated bundle and that the map directory contains both files.
  • Remote sourceMappingURL values are not fetched. Copy the map into the local build directory and use a local reference.
  • Use --help to check for conflicting input options and valid command syntax.

Local Development

The package requires Node.js 18 or later and uses npm:

npm install
npm test
npm run pack:dry-run

The test suite uses deterministic local fixtures and does not require network access at runtime. The package is not published by these commands.