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

@srcmap/symbolicate-wasm

v0.3.0

Published

Stack trace symbolication using source maps, powered by Rust (WebAssembly)

Readme

@srcmap/symbolicate-wasm

npm CI

Stack trace symbolication using source maps, powered by Rust via WebAssembly.

Parses stack traces from V8 (Chrome, Node.js), SpiderMonkey (Firefox), and JavaScriptCore (Safari), resolves each frame through source maps, and produces readable output. Built for error monitoring, crash reporting, and debugging services.

Install

npm install @srcmap/symbolicate-wasm

Works in Node.js, browsers, and any WebAssembly-capable runtime. No native compilation required.

Usage

Symbolicate a stack trace

import { symbolicate } from '@srcmap/symbolicate-wasm'

const stack = `Error: Something went wrong
    at handleClick (bundle.js:42:10)
    at processEvent (bundle.js:108:5)`

const result = symbolicate(stack, (file) => {
  // Called for each unique source file in the stack trace
  if (file === 'bundle.js') {
    return sourceMapJsonString // source map JSON for this file
  }
  return null // no source map available
})

// result is a JSON string:
// {
//   "message": "Error: Something went wrong",
//   "frames": [
//     { "functionName": "handleClick", "file": "src/app.ts", "line": 10, "column": 4, "symbolicated": true },
//     { "functionName": "processEvent", "file": "src/events.ts", "line": 25, "column": 1, "symbolicated": true }
//   ]
// }

Parse a stack trace (without symbolication)

import { parseStackTrace } from '@srcmap/symbolicate-wasm'

const frames = parseStackTrace(stack)
// [
//   { functionName: 'handleClick', file: 'bundle.js', line: 42, column: 10 },
//   { functionName: 'processEvent', file: 'bundle.js', line: 108, column: 5 }
// ]

API

symbolicate(stack, loader)

Symbolicate a stack trace using a source map loader.

| Parameter | Type | Description | |-----------|------|-------------| | stack | string | Stack trace string (V8, SpiderMonkey, or JSC format) | | loader | (file: string) => string \| null | Returns source map JSON for a file, or null |

Returns a JSON string with message and frames (each frame has functionName, file, line, column, symbolicated).

parseStackTrace(stack)

Parse a stack trace into individual frames without symbolication.

| Parameter | Type | Description | |-----------|------|-------------| | stack | string | Stack trace string |

Returns an array of { functionName: string | null, file: string, line: number, column: number }.

Supported formats

| Engine | Format | |--------|--------| | V8 (Chrome, Node.js) | at func (file:line:col) | | SpiderMonkey (Firefox) | func@file:line:col | | JavaScriptCore (Safari) | func@file:line:col |

Build targets

# Node.js (default)
npm run build

# Browser (ES module + .wasm)
npm run build:web

# Bundler (e.g. webpack, vite)
npm run build:bundler

Part of srcmap

High-performance source map tooling written in Rust. See also:

License

MIT