Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

NTrace-core

> 前端框架
Open source

NextTrace, an open source visual route tracking CLI tool

8.1K stars0 likes2 views
WebsiteGitHub

About

NextTrace, an open source visual route tracking CLI tool


NextTrace

An open source visual routing tool that pursues light weight, developed using Golang.


HomePage: www.nxtrace.org

IAAS Sponsor

We are extremely grateful to DMIT, Misaka and SnapStack for providing the network infrastructure that powers this project.

Default-mode migration: no earlier than 2027

Downstream developers: NextTrace will switch the default operating and display mode of nexttrace and nexttrace-tiny to MTR no earlier than 2027. Using --raw alone will switch to MTR RAW at the same time. Traditional traceroute and its RAW output will remain available through -k/--traceroute. Programs relying on today's behavior should adopt --traceroute or --traceroute --raw now. This release does not change the default; the switching release will be announced separately. ntr remains MTR-only.

How To Use

Document Language: English | 简体中文

⚠️ Please note: We welcome PR submissions from the community, but please submit your PRs to the NTrace-dev repository instead of NTrace-core repository.
Regarding the NTrace-dev and NTrace-core repositories:
Both will largely remain consistent with each other. All development work is done within the NTrace-dev repository. The NTrace-dev repository releases new versions first. After running stably for an undetermined period, we will synchronize that version to NTrace-core. This means that the NTrace-dev repository serves as a "beta" or "testing" version.
Please note, there are exceptions to this synchronization. If a version of NTrace-dev encounters a serious bug, NTrace-core will skip that flawed version and synchronize directly to the next version that resolves the issue.

Automated Install

  • Debian / Ubuntu
    • Recommended: install from the official nexttrace-debs APT repository
      • Supports: amd64, i386, arm64, armel, armhf, loong64, mipsel, mips64el, ppc64el, riscv64, s390x
      • Add the repository and install the default package:
…
- Optionally install additional flavors:
  ```shell
  sudo apt install nexttrace-tiny
  sudo apt install ntr
  ```
- Packages can be installed side by side. Commands: `nexttrace`, `nexttrace-tiny`, `ntr`
  • Linux / macOS / BSD

    • One-click installation script (Full, default)

      bash
      curl -sL https://nxtrace.org/nt | bash
    • One-click installation script (Tiny)

      bash
      curl -sL https://nxtrace.org/nt | bash -s -- --flavor tiny
    • One-click installation script (NTR)

      bash
      curl -sL https://nxtrace.org/nt | bash -s -- --flavor ntr
    • Installed command names: Full nexttrace, Tiny nexttrace-tiny, NTR ntr

    • Arch Linux AUR installation command

      • Directly download bin package (only supports amd64)
        bash
        yay -S nexttrace-bin
      • Build from source (only supports amd64)
        bash
        yay -S nexttrace
      • The AUR builds are maintained by ouuan, huyz
    • Linuxbrew's installation command

      Same as the macOS Homebrew installation method. The homebrew-core formula provides the Full flavor (nexttrace); the nxtrace/nexttrace tap provides all three flavors.

    • deepin installation command

      bash
      apt install nexttrace
    • x-cmd installation command

      bash
      x env use nexttrace
    • Termux installation command

      bash
      pkg install root-repo
      pkg install nexttrace
    • ImmortalWrt installation command

      bash
      opkg install nexttrace
  • macOS

    • macOS Homebrew's installation command
      • Homebrew-core version
        bash
        brew install nexttrace
      • nxtrace/nexttrace tap version (periodically synced from the latest NTrace-core release)
        bash
        brew tap nxtrace/nexttrace
        brew install nxtrace/nexttrace/nexttrace
        brew install nxtrace/nexttrace/nexttrace-tiny
        brew install nxtrace/nexttrace/ntr
      • The homebrew-core build is maintained by chenrui333, please note that this version's updates may lag behind the repository Action automatically version
  • Windows

    • Windows WinGet installation command

      • WinGet version
        powershell
        winget install nexttrace
      • WinGet build maintained by Dragon1573
    • Windows Scoop installation command

      • Scoop-extras version
        powershell
        scoop bucket add extras && scoop install extras/nexttrace
      • Scoop-extra is maintained by soenggam

Please note:

  • The nexttrace-debs APT repository is maintained by nxtrace and wcbing.
  • Other package sources above are maintained by open-source enthusiasts. Availability and timely updates are not guaranteed. If you encounter problems, please contact the repository maintainer to solve them, or use the binary packages provided by the official build of this project.

Manual Install

  • Download the precompiled executable

    For users not covered by the above methods, please go directly to Release to download the compiled binary executable.

    • Release provides compiled binary executables for many systems and different architectures. If none are available, you can compile it yourself.
    • Some essential dependencies of this project are not fully implemented on Windows by Golang, so currently, NextTrace is in an experimental support phase on the Windows platform.

Build Variants

Starting from this release, NextTrace is published in three flavors under the same tag. Choose the one that best fits your use case:

Feature nexttrace (Full) nexttrace-tiny ntr
Normal traceroute ✅ ✅ —
Environment check (--doctor) ✅ ✅ ✅
Standalone MTU (--mtu) ✅ ✅ —
DNS client (-l / --dns) ✅ — —
CDN Speed (--speed) ✅ — —
IP annotation (--nali) ✅ — —
MTR TUI ✅ ✅ ✅ (default)
MTR report (-r) ✅ ✅ ✅
MTR wide (-w) ✅ ✅ ✅
MTR raw (--raw) ✅ ✅ ✅
MTR JSON / NDJSON ✅ ✅ ✅
MTR custom columns (--mtr-columns) ✅ ✅ ✅
MTR recording / replay (--mtr-record / --mtr-replay) ✅ ✅ ✅
Linux policy routing (--fwmark, local probes only) ✅ ✅ ✅
Globalping (--from) ✅ — —
WebUI (--deploy) / MCP (--deploy --mcp) ✅ — —
Fast Trace (-F) ✅ ✅ —
Default mode traceroute traceroute MTR TUI
Binary name nexttrace nexttrace-tiny ntr

Note: APT (nexttrace-debs) and the Homebrew tap (nxtrace/nexttrace) provide all three flavors: Full (nexttrace), Tiny (nexttrace-tiny), and NTR (ntr). homebrew-core, AUR, Scoop, and other package managers currently install the Full (nexttrace) version only.

Feature Matrix

  • nexttrace — Full-featured build. Includes traceroute, the standalone DNS client and MTU modes, CDN speed test, IP annotation, MTR, Globalping, Fast Trace, WebUI, and deploy MCP.
  • nexttrace-tiny — Lightweight build. Keeps normal traceroute, standalone MTU, and Fast Trace. Includes optional MTR TUI, reports, and RAW. No DNS client / CDN speed test / IP annotation / Globalping / WebUI / MCP. Suitable for embedded or minimal environments.
  • ntr — MTR-focused build. Runs MTR TUI by default. No normal traceroute mode, standalone DNS client or --mtu, CDN speed test, IP annotation, Globalping, Fast Trace, WebUI, or MCP.

Manual Build

Build from source with Go 1.27.1+ installed. Release-equivalent builds use GOEXPERIMENT=nojsonv2; the Go 1.27 default JSON runtime remains covered by CI, but its WebSocket encoding cost does not meet the release performance threshold. See the JSON runtime ADR.

bash
export GOTOOLCHAIN=go1.27.1
export GOEXPERIMENT=nojsonv2

# Full (all features)
go build -trimpath -o dist/nexttrace -ldflags "-w -s" .

# Tiny (optional MTR; no DNS client, no Globalping, no WebUI)
go build -tags flavor_tiny -trimpath -o dist/nexttrace-tiny -ldflags "-w -s" .

# NTR (MTR-only)
go build -tags flavor_ntr -trimpath -o dist/ntr -ldflags "-w -s" .

On macOS, source builds require macOS 13.0 or later, Xcode Command Line Tools, and cgo because TCP/UDP packet capture links against the system libpcap. For a native build, go env CGO_ENABLED must report 1. If it reports 0, remove any persistent override with go env -u CGO_ENABLED, ensure xcode-select -p succeeds, and build with CGO_ENABLED=1.

Cross-compile example:

bash
# Linux arm64, Tiny flavor
GOTOOLCHAIN=go1.27.1 GOEXPERIMENT=nojsonv2 \
  GOOS=linux GOARCH=arm64 CGO_ENABLED=0 \
  go build -tags flavor_tiny -trimpath -o dist/nexttrace-tiny_linux_arm64 -ldflags "-w -s" .

Benchmark tooling is pinned in go.mod; compare saved results with go tool benchstat before.txt after.txt.

The tiny and ntr flavors use compile-time build tags to exclude modules — this is not a runtime switch. You can verify with go version -m <binary> that gin, globalping-cli, and github.com/natesales/q are absent from nexttrace-tiny and ntr.

The .cross_compile.sh script supports building flavors:

bash
./.cross_compile.sh all     # Build all three flavors for all platforms
./.cross_compile.sh full    # Build only nexttrace (Full)
./.cross_compile.sh tiny    # Build only nexttrace-tiny
./.cross_compile.sh ntr     # Build only ntr

Release Assets Naming

Release binaries follow this naming convention:

{binary}_{os}_{arch}[v{arm}][.exe][_softfloat]

Examples:

  • nexttrace_linux_amd64, nexttrace-tiny_linux_amd64, ntr_linux_amd64
  • nexttrace_darwin_universal, nexttrace-tiny_darwin_universal, ntr_darwin_universal
  • nexttrace_windows_amd64.exe, ntr_windows_amd64.exe

Get Started

NextTrace uses the ICMP protocol to perform TraceRoute requests by default, which supports both IPv4 and IPv6

…

Normal traceroute reports why it stopped: destination reached, a terminal unreachable response (including its marker), or the configured maximum hop count. --json keeps the existing top-level result shape and adds optional StopReason with lowercase nested fields hop, reason, responses, and markers; responses contains human-readable descriptions while markers contains machine-readable codes. Classic/raw/JSON modes do not receive an extra human-readable footer. --output writes the same plain stop line to the log without ANSI escapes.

--no-stop-reason hides all Trace Stopped: ... summaries in both the terminal and --output / --output-default files; they remain visible by default. Available in full and tiny builds, not ntr. It applies to normal traceroute, Fast

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goapias-pathasn-lookupgeoip

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedOct 2, 2026
Category前端框架
PricingOpen source

> Related tools

R
React
用于构建用户界面的 JavaScript 库
V
Vue.js
渐进式 JavaScript 框架
N
Next.js
基于 React 的全栈 Web 框架