# witr: Trace Processes, Ports, Containers, and Files to Their Cause

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Source: osrepos.com
Repository profile: https://osrepos.com/repo/pranshuparmar-witr
Generated for open source discovery and AI-assisted research.

witr is a Go CLI and TUI that traces processes, ports, containers, and files back to the chain that started them. It supports Linux, macOS, Windows, and FreeBSD, with human-readable and JSON output for troubleshooting and automation.

GitHub: https://github.com/pranshuparmar/witr
OSRepos URL: https://osrepos.com/repo/pranshuparmar-witr

## Summary

witr is a Go CLI and TUI that traces processes, ports, containers, and files back to the chain that started them. It supports Linux, macOS, Windows, and FreeBSD, with human-readable and JSON output for troubleshooting and automation.

## Topics

- go
- cli
- developer-tools
- cross-platform
- process-tracing
- port-troubleshooting
- container-inspection

## Repository Information

Last analyzed by OSRepos: Wed Dec 02 2026 02:49:28 GMT+0000 (Coordinated Universal Time)
Detail views: 1
GitHub clicks: 0

## Safety Notice

OSRepos shares public repositories for knowledge and discovery only. Review source code, dependencies, licenses, and security implications before running or installing anything.

## Content

## Overview

witr is a Go CLI and interactive terminal dashboard for answering “Why is this running?” It traces a process, port, container, or file back through its ancestry and, where possible, to the service or supervisor that started it. This brings together context that would otherwise require correlating tools such as `ps`, `lsof`, `ss`, and container commands.

It supports Linux, macOS, Windows, and FreeBSD. Results can be read as a report or tree, emitted as JSON for scripts and AI coding agents, or explored in the TUI. The project is aimed at developers and system administrators diagnosing unexpected processes, occupied ports, and container behavior.

## Key Features

- Look up processes by name or PID, and find process owners by port or open file.
- Trace process ancestry and identify a managing source such as systemd, launchd, a container, or a shell when detectable.
- Search containers across supported runtimes, including Docker, Podman, Kubernetes via crictl, Incus, LXC, and FreeBSD jails.
- Use repeatable, mixed target arguments to investigate several names, PIDs, ports, files, or containers in one run.
- Choose human-readable, short, tree, warning-only, verbose, or JSON output, with defined exit codes for automation.
- Browse live processes, ports, containers, and file locks in a four-tab TUI, with process details and Unix process actions.
- Inspect contextual details such as working directory, Git repository, sockets, service metadata, and available container information.

## Use Cases

- A developer can identify which process is occupying a development port and trace it to a supervisor or service before deciding what to do.
- An on-call engineer can investigate an unfamiliar process during an incident, using ancestry, source details, and warnings to understand its origin.
- A platform or DevOps engineer can look up a container across supported runtimes and relate it to its host process and, for Compose services, project metadata.
- A coding agent or shell script can query JSON output and exit codes to diagnose a failed server startup without manually combining several system tools.

## Our Take

witr is a focused, actively maintained troubleshooting tool with broad platform support and useful structured output, while its best-effort tracing and platform permission limits mean findings still need context.

**Good fit if:**
- You need to connect a process, port, file, or container to its likely origin on Linux, macOS, Windows, or FreeBSD.
- You want a CLI or TUI for investigation, or JSON and exit codes for scripts and AI coding agents.
- Apache-2.0 licensing suits your project, and you can use the Go-based tool or install a prebuilt binary.

**Look elsewhere if:**
- You need a monitoring or alerting service rather than an on-demand investigation tool.
- Your environment requires complete tracing in cases where the original parent has exited or permissions restrict process visibility.
- You need a Windows TUI for file locks or process actions, which the README lists as unavailable.

## Project Health

| Signal | Value |
|---|---|
| Status | **Active**: regular commits and releases |
| Last commit | 2026-11-21 (10 days ago) |
| Commits, last 90 days | 54 |
| Releases, last 12 months | 22 (latest v0.3.4, 2026-10-04) |
| Contributors | 46 (top contributor: 71% of commits) |
| Issues closed, last 90 days | 13 (typically closed in 36 days) |
| Pull requests merged, last 90 days | 16 (typically merged in 7 days) |
| Project age | 12 months |

Checked on 2026-12-02 with the GitHub API.

## Project Facts

- Language: Go
- License: Apache-2.0
- Stars: 23.5k
- Forks: 834
- Topics: cli, containers, devops, docker, freebsd, go, golang, incident-response
- Website: https://pranshuparmar.github.io/witr/
- Archived: no

## What You Need

Detected in the repository:

- Go 1.25.0 or newer (from go.mod)
- Automated checks on GitHub Actions

## Getting Started

On Linux, macOS, or FreeBSD, install the latest release with:

```bash
curl -fsSL https://raw.githubusercontent.com/pranshuparmar/witr/main/install.sh | bash
```

Then try `witr --port 8080` or run `witr` to open the TUI. See the [README](https://github.com/pranshuparmar/witr#readme) for Windows installation, package-manager options, flags, and platform details.

## License in Plain Words

**Apache-2.0** (permissive).

- Commercial use: yes
- Modify and redistribute: yes
- You must keep: the license, the NOTICE file and a note of your changes
- Share your changes: no
- Includes an explicit patent grant from the contributors

A summary, not legal advice: the LICENSE file is what applies.

## Considerations

- Health data describes an active project: it reports regular recent commits and releases, with issue and pull-request activity. The contributor base is not marked as concentrated in the supplied health data.
- Tracing is best effort. The README notes that permissions can hide process details, and that an exited original parent may leave the cause unknown. Running with elevated privileges can reveal more, but has its own operational implications.
- Platform capabilities differ. For example, Windows does not provide the TUI Locks tab or process actions, and several diagnostics are partial or unavailable on particular systems.
- The Go runtime requirement is Go 1.25.0 when building from source; prebuilt binaries and package-manager installations are also offered.
- The repository uses Apache-2.0. Teams should review that license’s terms before redistributing or incorporating the project.
- The supplied requirements data does not indicate a test suite, so teams that need verified test coverage should assess the repository and their intended use before adoption.