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

@ts-evtx/messages

v1.1.1

Published

Message catalog provider for EVTX event logs (version-aware)

Readme

@ts-evtx/messages

Message catalog provider for Windows Event Log (EVTX) files.

Features

  • SQLite-based message catalogs
  • Simple managed provider with two modes:
    • Use a user-supplied DB file (customDbPath)
    • Or use the packaged universal catalog (no config)
  • Chain multiple providers for fallbacks
  • Simple CLI to download catalogs

Install

npm install @ts-evtx/core @ts-evtx/messages

Quick start

import { evtx } from '@ts-evtx/core';
import { SmartManagedMessageProvider } from '@ts-evtx/messages';

// Use the packaged universal catalog
const provider = new SmartManagedMessageProvider({ preload: true });
const events = await evtx('./Application.evtx').withMessages(provider).last(50).toArray();
for (const e of events) console.log(e.message);

Logging

This package piggybacks on the @ts-evtx/core centralized logger. Configure logging once via @ts-evtx/core and both packages will use the same logger and level.

import { setLogger, ConsoleLogger, withMinLevel } from '@ts-evtx/core';

// e.g., only info/warn/error
setLogger(withMinLevel(new ConsoleLogger(), 'info'));

For convenience, @ts-evtx/messages re-exports setLogger/getLogger/ConsoleLogger:

import { setLogger, ConsoleLogger } from '@ts-evtx/messages';
setLogger(new ConsoleLogger());
// Use withMinLevel from ts-evtx if you need filtering
// import { withMinLevel } from '@ts-evtx/core';

Other ways to choose a catalog

  • Provide your own local DB file:
new SmartManagedMessageProvider({ customDbPath: './my-catalog.db' })

CLI

npx evtx-messages detect-download --system ./System.evtx
npx evtx-messages download-label win10 --arch amd64
npx evtx-messages download windows.11.amd64.db

Future: deterministic lookups via canonical keys

  • Today, catalogs and Windows internals sometimes require alias fallbacks and best‑fit picks by template; diagnostics help explain which provider/alias was used and why.
  • As the catalog evolves to store canonical keys (Provider GUID + EventID + discriminators like opcode/task/version/channel), message resolution becomes a simple lookup with far fewer edge cases. At that point, consumers can treat message resolution as “found or not found” without sifting through attempts.