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

@tiden/telemetry-sourcemaps

v0.1.6

Published

Tiden source-map bundler plugin (unplugin). Injects debug-ids and uploads source maps to a Tiden product at build time. No third-party error-SDK dependency.

Readme

@tiden/telemetry-sourcemaps

npm downloads license

Build-time plugin that uploads your source maps to Tiden so minified production stack traces resolve back to your original source. Built on unplugin — one config works across Vite, webpack, Rollup, and esbuild.

Install

npm install -D @tiden/telemetry-sourcemaps

Usage (Vite)

// vite.config.ts
import { defineConfig } from 'vite'
import { tidenSourceMaps } from '@tiden/telemetry-sourcemaps'

export default defineConfig({
  // 'hidden' emits .map files for the plugin but omits the sourceMappingURL
  // comment, so browsers never fetch them.
  build: { sourcemap: 'hidden' },
  plugins: [
    tidenSourceMaps.vite({
      url: 'https://app.tiden.ai',          // your Tiden API URL
      productId: process.env.TIDEN_PRODUCT_ID!,
      authToken: process.env.TIDEN_AUTH_TOKEN!, // build-time only — keep it secret
      release: '[email protected]',
      // Delete the maps from the build output once they're uploaded, so they're
      // never shipped to production.
      filesToDeleteAfterUpload: ['dist/**/*.map'],
    }),
  ],
})

Other bundlers

The same factory exports a plugin for each supported bundler:

import { tidenSourceMaps } from '@tiden/telemetry-sourcemaps'

tidenSourceMaps.vite(options)
tidenSourceMaps.webpack(options)
tidenSourceMaps.rollup(options)
tidenSourceMaps.esbuild(options)

Options

| Option | Type | Default | Description | |---|---|---|---| | url | string | — | Required. Your Tiden API URL. | | productId | string | — | Required. Target product. | | authToken | string | — | Required. API token (build-time only). | | release | string | — | App version to associate maps with. | | outDir | string | "dist" | Build output directory to process. | | injectOnly | boolean | false | Inject debug IDs but skip upload (debugging). | | filesToDeleteAfterUpload | string \| string[] | — | Glob(s) of files to delete after a successful upload, e.g. ['dist/**/*.map']. Off by default. A map whose upload failed is kept so the build can be retried. |

How it works

On build, the plugin assigns each emitted bundle a stable debug ID, writes it into both the JS and its source map, and uploads the maps. At view time, Tiden matches the debug ID to symbolicate minified stack traces back to your source — no source maps are ever served to end users.

Keep authToken out of client code and version control — it is only used by your build (CI), never shipped to the browser.

Cleaning up source maps

A source map shipped to production lets anyone reconstruct your original source. Two ways to avoid that:

  • build.sourcemap: 'hidden' (Vite) / devtool: 'hidden-source-map' (webpack) — generate maps without the sourceMappingURL comment, so browsers don't fetch them. Pair it with one of the below so the .map files don't linger in your deploy artifact at all.
  • filesToDeleteAfterUpload — let the plugin delete the maps from the build output once they're uploaded. Deletion runs after upload, and any map whose upload failed is kept so you can retry. This is safe because Tiden resolves stack traces by debug ID, not by the served .map file — the uploaded copy is all it needs.
  • Or handle it in your deploy: configure the server to deny *.map, or remove them in a post-build CI step.

License

MIT