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

omnitrace

v1.1.1

Published

Open-source, privacy-first AI log debugger for real-time error analysis with automatic secret sanitization

Readme

OmniTrace

OmniTrace is an open-source, privacy-first AI log debugger for developers. It watches application logs in real time, captures the context around failures, redacts sensitive values locally, and routes the sanitized context to OpenAI or a local Ollama model.

Project website: getomnitrace.bond. The public website is intentionally deferred; this repository is focused on the CLI engine, demo workflow, and developer tooling. The current assets/ directory contains product branding only, not the future marketing site.

Why OmniTrace

OmniTrace is designed for fast incident response without casually leaking production data. It combines real-time log tailing, deterministic local redaction, and provider choice in one small command-line workflow. Cloud analysis is available when convenient, while Ollama provides a local path for teams that need logs to remain on their own machine.

Requirements

Node.js 18.17 or newer is required. If node -v shows v12, upgrade before installing; OmniTrace now exits early with a readable version message instead of a cryptic Cannot find module 'node:path' error. On a Linux shell, the simplest upgrade path is:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.8/install.sh | bash
. ~/.nvm/nvm.sh
nvm install 20
nvm use 20
node -v

For local analysis, install Ollama and pull a model such as llama3.2.

Install

Install OmniTrace globally from npm—no repository clone is needed:

npm install -g omnitrace
omnitrace

Running omnitrace without arguments opens a beginner-friendly local onboarding screen. For the complete no-key walkthrough, run:

omnitrace demo

To watch an application log, run:

omnitrace analyze ./app.log

To update later:

npm update -g omnitrace

Development-only installation

Repository cloning and tarballs are only needed if you are contributing to OmniTrace or testing unreleased source:

git clone https://github.com/adityv/omnitrace.git
cd omnitrace
npm install -g .
omnitrace demo

To make a local tarball while developing:

npm pack
npm install -g ./omnitrace-<version>.tgz
omnitrace demo

Brand and demo preview

OmniTrace logo

The screenshots below are generated from the real CLI output, not a mockup.

OmniTrace local demo

OmniTrace JSON demo

Try it immediately without an API key

After installation, run this safe local demo:

omnitrace demo

The demo creates a temporary log, watches it with the real file watcher, detects a synthetic failure, redacts an email, IP address, and password, then prints a local diagnosis. It uses no API key, no external account, no Ollama installation, and no network request. For scripts or CI, use JSON output:

omnitrace demo --json

Guided setup

For an interactive first-time setup, run:

omnitrace setup

For scripts or a local-only default without prompts:

omnitrace setup --yes --provider ollama --model llama3.2

You can rerun setup or use omnitrace config set ... at any time. Configuration remains on your machine in ~/.omnitrace-config.json; the CLI does not upload configuration files or logs by itself.

Configure

OmniTrace stores configuration in ~/.omnitrace-config.json using a platform-safe path and restrictive file permissions. It can also read the PRD-compatible ~/.omnitrace/config.json location for backwards compatibility.

For local analysis:

omnitrace config set provider ollama
omnitrace config set model llama3.2

For OpenAI:

omnitrace config set provider openai
omnitrace config set apiKey YOUR_OPENAI_API_KEY
omnitrace config set model gpt-4o-mini

The router also accepts OPENAI_API_KEY from the environment. Endpoint overrides are available for compatible gateways and local deployments:

omnitrace config set openaiUrl https://api.openai.com/v1/chat/completions
omnitrace config set ollamaUrl http://localhost:11434/api/generate

Inspect active configuration

omnitrace config show

Credentials are masked in the output. Configuration writes to ~/.omnitrace-config.json and accepts the legacy ~/.omnitrace/config.json location for reading.

Analyze a log

omnitrace analyze ./app.log

The command stays attached and continues watching for new errors. Use Ctrl+C to stop it. For machine-readable integrations, add --json:

omnitrace analyze ./app.log --json

Add an extra instruction for the model when needed:

omnitrace analyze ./app.log --prompt "Focus on database connection pooling."

When an ERROR, FATAL, Exception, or Traceback line is detected, OmniTrace captures up to five lines before and after the event. The captured block is sanitized before it is sent to an AI provider.

Privacy and sanitization

The built-in scrubber redacts email addresses, IPv4 and IPv6 addresses, AWS access keys, JWTs, common Stripe-style keys, credit-card-like numbers, bearer authorization values, and values assigned to keys such as api_key, token, password, secret, and authorization.

No sanitizer can guarantee detection of every proprietary secret format. Review your organization's data-handling requirements before sending logs to a third-party provider. Use Ollama when logs must remain on the local machine, and always inspect the sanitized output policy before adopting OmniTrace in production.

Development and quality gates

npm install
npm run lint
npm test
npm run coverage
npm run security
npm run package-check

The project uses Node's built-in test runner, ESLint, c8 coverage thresholds, npm audit, and GitHub Actions. CI runs on Linux, macOS, and Windows across Node.js 18, 20, and 22. The test suite does not require a live AI provider.

Project layout

bin/cli.js       Commander entry point
src/config.js   User configuration persistence
src/sanitizer.js Local redaction rules
src/watcher.js  Cross-platform file tailing and context capture
src/ai.js       OpenAI and Ollama routing
src/demo.js     Zero-key local demonstration flow
src/setup.js    Guided local provider setup wizard
src/ui.js       Terminal presentation and JSON formatting
assets/         Logo and repository branding
test/           Unit, integration, demo, and CLI smoke tests
.github/        Cross-platform CI and contribution templates

Contributing

Use the issue template for reproducible reports and include sanitized logs only. Before opening a pull request, run the complete quality-gate commands above and review changes for accidental credentials or personal data.

License and ownership

OmniTrace is released under the MIT License. Maintained by Aditya Wadhonkar.