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

@langwatch/n8n-observability

v1.0.0

Published

LangWatch + n8n OpenTelemetry bootstrap (TypeScript, modern, preloadable).

Readme

@langwatch/n8n-observability

This package provides the actual n8n instrumentation for LangWatch observability.
It is published to npm as @langwatch/n8n-observability.

For a guide on how to use this package, see the setup guide in the other readme.


Development

Prerequisites

  • Node.js ≥ 18
  • pnpm ≥ 8

Build

pnpm install
pnpm build

Build artifacts include:

  • dist/hooks.cjs → CommonJS entry for EXTERNAL_HOOK_FILES
  • dist/index.js → ESM programmatic API

Test & Lint

pnpm test
pnpm lint

Internals: How it Works

  • Registers LangWatch’s Node SDK (setupObservability) → OpenTelemetry tracer provider.
  • Locates the active n8n-core instance and patches WorkflowExecute:
    • processRunExecutionData → workflow span
    • processRunData → workflow span
    • runNode → per-node span
  • Patching is idempotent (guarded by WeakSet).

Span Model

  • Workflow spans (n8n.workflow.execute.*)
    Attributes: n8n.workflow.id, n8n.workflow.name; errors recorded as exception events.

  • Node spans (n8n.node.execute)
    Attributes under n8n.node.* (type, name, etc.); optional JSON I/O capture; errors recorded as exception events.

Privacy

Inputs/outputs come from INodeExecutionData.json.
Disable capture with N8N_OTEL_CAPTURE_INPUT=false, or configure redaction rules in LangWatch.


Troubleshooting

  • No n8n-core patched

    • Set N8N_OTEL_DEBUG=1 to see search paths.
    • Verify EXTERNAL_HOOK_FILES points to dist/hooks.cjs.
  • setupObservability failed

    • Check LANGWATCH_API_KEY.
    • Verify network access to LangWatch.
  • No spans

    • Look for startup log: observability ready and patches applied.
    • Confirm I/O capture isn’t disabled if expecting inputs/outputs.

License

MIT. View the LICENSE file for details.