zyphor 0.1.1 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +265 -136
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,52 +1,252 @@
1
1
  <div align="center">
2
- <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/docs/assets/logo.png" alt="Zyphor Logo" width="120" />
2
+ <picture>
3
+ <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/assets/logo.svg" alt="ZYPHOR Logo" width="700">
4
+ </picture>
5
+
6
+ <p align="center">
7
+ <strong>A mercilessly optimized, zero-allocation native systems observatory, real-time diagnostic engine, and process profiler.</strong>
8
+ </p>
9
+
10
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/miyaniakshar1234/Zyphor/release.yml?branch=master&style=for-the-badge&logo=github)](https://github.com/miyaniakshar1234/Zyphor/actions)
11
+ [![Zig Version](https://img.shields.io/badge/Zig-0.15.2+-F7A41D?style=for-the-badge&logo=zig)](https://ziglang.org)
12
+ [![Binary Size](https://img.shields.io/badge/Binary_Size-1.1_MB-00f0ff?style=for-the-badge)](https://github.com/miyaniakshar1234/Zyphor/releases)
13
+ [![Memory Footprint](https://img.shields.io/badge/RAM_Footprint-<3_MB-00ff66?style=for-the-badge)](https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/architecture.md)
14
+ [![License](https://img.shields.io/badge/License-MIT-purple.svg?style=for-the-badge)](https://github.com/miyaniakshar1234/Zyphor/blob/master/LICENSE)
15
+
16
+ <p align="center">
17
+ <a href="#-why-zyphor-the-manifesto">The Manifesto</a> •
18
+ <a href="#-interface-gallery--subsystems">Interface Gallery</a> •
19
+ <a href="#-feature-matrix--comparison">Comparison</a> •
20
+ <a href="#-core-architecture--systems-design">Architecture</a> •
21
+ <a href="#-cli-toolchain--automation">CLI Suite</a> •
22
+ <a href="#-keyboard-controls--navigation">Keybinds</a> •
23
+ <a href="#-installation--getting-started">Installation</a> •
24
+ <a href="#-about-the-developer">Author</a> •
25
+ <a href="https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/user-manual.md">User Manual</a>
26
+ </p>
27
+
28
+ <br>
29
+
30
+ <!-- Primary Hero Live Dashboard -->
31
+ <picture>
32
+ <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/01-overview.png" alt="Zyphor Overview Dashboard" width="920">
33
+ </picture>
34
+ </div>
3
35
 
4
- # Zyphor
36
+ ---
5
37
 
6
- **The Next-Generation Terminal Operating Environment**
7
- *Zero-allocation, blazing-fast system observatory written in pure Zig.*
38
+ ## 🛑 Why Zyphor? (The Manifesto)
8
39
 
9
- [![Zig 0.15+](https://img.shields.io/badge/Zig-0.15%2B-F7A41D?logo=zig)](https://ziglang.org)
10
- [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
11
- [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)
12
- [![Platform: Windows | Linux | macOS](https://img.shields.io/badge/Platform-Windows%20%7C%20Linux%20%7C%20macOS-lightgrey)](#)
13
- </div>
40
+ Modern system monitoring software has lost its way.
41
+
42
+ On one side, we have **bloated GUI applications and Electron wrappers** that consume hundreds of megabytes of RAM, take seconds to boot, and spin up entire Chromium browser instances just to display a CPU percentage. On the other side, we have **legacy terminal monitors** that write raw ANSI streams directly to `stdout`, causing severe visual tearing, flickering at high frame rates, and dropping frames when rendering complex graphs.
43
+
44
+ **Zyphor was designed and engineered by Akshar Miyani to eliminate this compromise.**
45
+
46
+ Built from bare metal in **Zig**, Zyphor operates on pure systems-programming principles:
47
+ 1. **Direct Kernel Interfacing:** Bypasses slow management abstraction layers (like Windows WMI) in favor of raw ring-0 telemetry via `ntdll.dll` (`NtQuerySystemInformation`) on Windows and zero-copy `/proc` parsing on Linux.
48
+ 2. **Zero-Allocation Render Loop:** The entire rendering pipeline runs with **zero general-purpose heap allocations** in the hot path. All frame allocations utilize dual swapping `ArenaAllocators` with instantaneous pointer resets.
49
+ 3. **Double-Buffered Differential ANSI Engine:** Frames are rendered to an off-screen virtual framebuffer and diffed against the previous frame at the cell level. Only modified screen cells emit ANSI escape codes, yielding absolute zero flicker and rock-solid 30–60 FPS rendering at less than **0.1% CPU overhead**.
50
+ 4. **Autonomous Root-Cause Diagnostics:** Zyphor does not simply dump numbers; an embedded heuristic engine mathematically correlates telemetry (thermal velocity, VMM swap thrashing, I/O wait) to provide actionable English playbooks for resolving system bottlenecks.
51
+ 5. **Standalone 1.1 MB Single-File Executable:** Statically linked with zero runtime dependencies. No DLLs, no Python virtual environments, no node_modules.
52
+
53
+ ---
54
+
55
+ ## 📸 Interface Gallery & Subsystems
56
+
57
+ Zyphor provides 7 dedicated observatory panels alongside interactive profilers, command palettes, and custom themes.
58
+
59
+ ### 1. Process Explorer & Storage Fabric
60
+ | Process Explorer & Lineage Trees (`2`) | Storage Fabric & Disk I/O (`3`) |
61
+ | :--- | :--- |
62
+ | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/02-processes.png" width="450" alt="Process Explorer"> | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/03-storage.png" width="450" alt="Storage Analyzer"> |
63
+ | Recursive DFS parent/child tree hierarchy (`t`), live sorting (`c`, `m`, `p`, `n`), real-time search (`/`), deep inspector (`Enter`), and process termination (`x`, `s`, `u`). | Real-time partition space distribution across all mounted drives (`NTFS`, `ext4`, `apfs`, `btrfs`), transfer throughput (MB/s), and storage IOPS. |
64
+
65
+ ---
66
+
67
+ ### 2. Network Observability & AI Root-Cause Diagnostics
68
+ | Network Observability & Active Sockets (`4`) | Autonomous Health & AI Diagnostics (`5`) |
69
+ | :--- | :--- |
70
+ | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/04-network.png" width="450" alt="Network Dashboard"> | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/05-health-diagnostics.png" width="450" alt="AI Diagnostics"> |
71
+ | Sub-cell Unicode Braille throughput curves, NIC adapter status cards, active TCP/UDP socket process mapping, and broadband speed testing (`s`, `S`). | 5-subsystem health radar (0–100 score), deterministic anomaly detection, explainable root-cause insights, and defensive action playbooks. |
72
+
73
+ ---
74
+
75
+ ### 3. Background Services & Container Observatory
76
+ | System Services & Background Daemons (`6`) | Container Observatory (Docker/OCI) (`7`) |
77
+ | :--- | :--- |
78
+ | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/06-services.png" width="450" alt="System Services"> | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/07-containers.png" width="450" alt="Containers"> |
79
+ | Real-time OS background service monitoring (Windows Services / systemd units), status tracking, startup modes, and binary inspector cards. | Direct cgroup telemetry, container RAM usage vs hard memory quota limits, CPU utilization, image tags, and isolated network I/O. |
80
+
81
+ ---
82
+
83
+ ### 4. Interactive Profiler & Fast Command Launcher
84
+ | Microsecond Process Profiler (`P`) | Quick Action Command Palette (`:` / `Ctrl+P`) |
85
+ | :--- | :--- |
86
+ | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/09-profiler.png" width="450" alt="Process Profiler"> | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/08-command-palette.png" width="450" alt="Command Palette"> |
87
+ | 10-second high-frequency rolling telemetry trace on any selected PID. Computes Peak Jitter, Rolling Averages, and Memory Leaks. | Floating keyboard launcher for instant jumps, theme cycling, hardware benchmarks, telemetry freezing, and instant state exports. |
88
+
89
+ ---
90
+
91
+ ### 5. Hand-Tuned 24-Bit TrueColor Theme Catalog
92
+ | Anthropic (Default Warm Aesthetic) | Cyber (High-Contrast Neon Cyberpunk) |
93
+ | :--- | :--- |
94
+ | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/10-theme-anthropic.png" width="450" alt="Anthropic Theme"> | <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/screenshot/11-theme-cyber.png" width="450" alt="Cyber Theme"> |
95
+ | Warm dark charcoal (`#1F1D1C`), terracotta accents (`#D97757`), sand highlights, and sage green nominal meters. | High-contrast synthwave palette featuring electric cyan (`#00F0FF`) and vibrant neon magenta (`#FF0080`). |
96
+
97
+ *Zyphor includes 10 built-in palettes (Anthropic, Cyber, Tokyo Night, Hacker, Midnight, Aurora, Nord, Solarized Dark, Gruvbox, High Contrast). Hot-swap instantly with <kbd>]</kbd> or <kbd>Shift+T</kbd>.*
14
98
 
15
99
  ---
16
100
 
17
- > **Why Zyphor?** `htop` is from 2004, and `btm` is too heavy. Zyphor is raw Zig performance combined with an unprecedented Sci-Fi HUD utilizing true sub-pixel Braille rendering, dynamic masonry layouts, and root-cause diagnostics.
101
+ ## 📊 Feature Matrix & Comparison
102
+
103
+ | Feature / Metric | **Zyphor** | **btop++** | **htop** | **Glances** | **Windows Task Mgr** |
104
+ | :--- | :---: | :---: | :---: | :---: | :---: |
105
+ | **Implementation Language** | **Zig (Native)** | C++ | C | Python | C++ / WinUI |
106
+ | **Binary Size** | **1.1 MB** | ~8.2 MB | ~3.5 MB | ~45 MB (deps) | System Native |
107
+ | **Memory Usage (RAM)** | **< 3 MB** | ~25 MB | ~5 MB | ~90 MB | ~60 MB |
108
+ | **Zero-Allocation Render Path** | **Yes (Dual Arena)** | No | No | No | No |
109
+ | **Double-Buffered Diff Engine** | **Yes (Zero Flicker)** | Partial | No (Flickers) | No | N/A |
110
+ | **Autonomous AI Diagnostics** | **Yes (Deterministic)**| No | No | Basic Alerts | No |
111
+ | **Time-Bound Process Profiler** | **Yes (Hotkey `P`)** | No | No | No | No |
112
+ | **Remote HTTP / TCP JSON Daemon**| **Yes (`zyphor daemon`)**| No | No | Yes (Web UI) | No |
113
+ | **Instant Telemetry Snapshot (`E`)**| **Yes (`.json`)** | No | No | Export flags | No |
114
+ | **Container Engine Telemetry** | **Yes (Docker/OCI)** | No | No | Yes | No |
115
+ | **Parent-Child Lineage Tree** | **Yes (`t` DFS)** | Yes | Yes | No | Partial |
116
+ | **Command Palette (`Ctrl+P`)** | **Yes** | No | No | No | No |
117
+ | **24-Bit TrueColor Palettes** | **10 Built-in** | Custom RGB | 16-color | 16-color | OS Theme |
118
+
119
+ ---
120
+
121
+ ## 🧠 Core Architecture & Systems Design
122
+
123
+ Zyphor's extreme performance is achieved through strict adherence to **Data-Oriented Design (DOD)** and cache-locality principles.
124
+
125
+ ```
126
+ ┌──────────────────────────────────────────────┐
127
+ │ OPERATING SYSTEM │
128
+ │ Windows (ntdll) / Linux (/proc) │
129
+ └──────────────────────┬───────────────────────┘
130
+ │ Direct Syscalls / Zero-Copy Reads
131
+
132
+ ┌──────────────────────────────────────────────┐
133
+ │ CORE TELEMETRY ENGINE │
134
+ │ CPU • RAM • Disks • Network • Services │
135
+ └──────────────────────┬───────────────────────┘
136
+
137
+ ├──────────────────────────┐
138
+ │ Snapshot Data │
139
+ ▼ ▼
140
+ ┌──────────────────────────────────────────────┐ ┌────────────────────────┐
141
+ │ DOUBLE ARENA ALLOCATION MODEL │ │ HEURISTIC AI ENGINE │
142
+ │ [FrameArenaA] ──swap──> [FrameArenaB] │ │ Thermal / Thrashing │
143
+ │ (Zero heap mallocs in critical loop) │ │ Anomaly Correlator │
144
+ └──────────────────────┬───────────────────────┘ └──────────┬─────────────┘
145
+ │ │
146
+ ▼ ▼
147
+ ┌───────────────────────────────────────────────────────────────────────────┐
148
+ │ DOUBLE-BUFFERED DIFFERENTIAL RENDERER │
149
+ │ │
150
+ │ [Current Virtual Framebuffer] <───diff───> [Previous Screen Framebuffer]│
151
+ │ │
152
+ │ Compute Cell Mutex Deltas: │
153
+ │ dirty_cells = (curr[i] != prev[i]) │
154
+ └──────────────────────────────────────┬────────────────────────────────────┘
155
+
156
+ ▼ Only modified ANSI sequences emitted
157
+ ┌──────────────────────────────┐
158
+ │ TERMINAL EMULATOR │
159
+ │ Zero Tearing • 30–60 FPS │
160
+ └──────────────────────────────┘
161
+ ```
162
+
163
+ ### Key Architectural Invariants:
164
+ 1. **The Double-Arena Memory Model:** Two static arenas (`ArenaAllocator`) alternate every frame. Dynamic process lists and strings are allocated into the active arena. At the start of the next cycle, the inactive arena is completely cleared via an `O(1)` pointer reset, preventing heap fragmentation and memory leaks entirely.
165
+ 2. **Cell-Level Differential Rendering:** The screen is maintained as an array of `Cell` structures containing glyphs and 24-bit RGB values. The rendering pass updates an off-screen buffer. The diffing pass compares `current_cells[i]` against `prev_cells[i]` and generates an optimized ANSI sequence that positions the cursor only where data has changed.
166
+ 3. **Low-Latency Platform Probes:**
167
+ * On **Windows**, Zyphor links dynamically against `ntdll.dll` to invoke `NtQuerySystemInformation(SystemProcessInformation)`, retrieving global thread and process states in a single atomic kernel transition.
168
+ * On **Linux**, Zyphor performs zero-copy parsing of `/proc/stat`, `/proc/meminfo`, `/proc/net/dev`, and `/proc/[pid]/stat` using pre-allocated stack buffers without regular expression engines.
169
+
170
+ ---
171
+
172
+ ## 🛠️ CLI Toolchain & Automation
173
+
174
+ Zyphor is designed for both interactive monitoring and automated headless scripting in CI/CD pipelines.
175
+
176
+ ```bash
177
+ # 1. Start the interactive Zero-Flicker TUI
178
+ zyphor
179
+
180
+ # 2. Start TUI with a specific TrueColor theme (e.g., cyber, tokyo_night, hacker, nord)
181
+ zyphor --theme cyber
182
+
183
+ # 3. Plain ASCII mode for minimal or legacy terminals
184
+ zyphor --plain
185
+
186
+ # 4. Run an automated environment audit (Kernel probes, permissions, sensors)
187
+ zyphor doctor
188
+
189
+ # 5. Run native CPU compute (Integer MOP/s) and RAM bandwidth (GB/s) benchmarks
190
+ zyphor bench
18
191
 
19
- Zyphor entirely re-imagines what a terminal system monitor can be. We use $2 \times 4$ Braille matrices to push sub-pixel resolution graphs, custom trigonometric radial dials, and a zero-flicker double-buffered rendering engine that sips CPU cycles.
192
+ # 6. Prove Zyphor's lightweight nature (Measures telemetry sampling latency & RAM footprint)
193
+ zyphor overhead
20
194
 
21
- ## 🚀 The Next-Gen Vibe
195
+ # 7. Start the headless TCP daemon streaming live JSON telemetry on port 7777
196
+ zyphor daemon
22
197
 
23
- Unlike traditional tabular layouts, Zyphor renders real-time telemetry like a **High-Density Sci-Fi Command Center**:
24
- - **Radial Dials & CPU Matrices:** Sub-pixel circular Braille load gauges for CPU and Memory, coupled with per-core activity heatmaps.
25
- - **Topological Process Lineage:** True depth-first search (`DFS`) process trees using Unicode box-drawing (`├─`, `└─`, `│`). Instantly suspend, resume, or kill misbehaving trees.
26
- - **Masonry Storage & Directory Tree Analyzer (PRD §16):** Responsive 2D masonry cards for mounted partitions coupled with a directory-level capacity tree explorer (`Program Files`, `AppData`, `Projects`).
27
- - **Global Network & Active Socket Map (PRD §18):** Massive flowing Braille waveforms for aggregate Ingress/Egress, alongside live process-to-socket mapping (`PID`, `Local Port`, `Remote IP:Port`, `State`).
28
- - **Explainable Root-Cause Diagnostics (PRD §30):** A composite 0-100 Health Score radar that detects memory leaks, swap thrashing, thermal throttling, and anomalies automatically with actionable remediation advice.
29
- - **System Services & Daemons Observatory (PRD §23):** Real-time tracking of OS background services with startup type and status monitoring.
30
- - **Quick Command Palette (PRD §33):** Instant developer-tool command launcher (`Ctrl+P` or `:`) for 17 direct actions, sorting modes, theme switches, and process controls.
31
- - **Native Hardware Benchmark Engine (PRD §25):** Built-in single-core integer MOP/s, multi-threaded GFLOPS, and memory bandwidth (GB/s) profiler.
198
+ # 8. Export an instantaneous, comprehensive system telemetry snapshot to JSON
199
+ zyphor snapshot -o system-state.json
200
+
201
+ # 9. Query top processes from the CLI without launching the TUI
202
+ zyphor process --sort cpu --limit 10
203
+ ```
32
204
 
33
205
  ---
34
206
 
35
- ## Zero-Flicker Architecture
207
+ ## 🎮 Keyboard Controls & Navigation
36
208
 
37
- Zyphor operates entirely on a **Double-Buffered Differential Rendering Engine**:
38
- 1. Telemetry snapshot sampled with near-zero overhead (`NtQuerySystemInfo` on Windows, `/proc` on Linux).
39
- 2. Renders all viewport layers to a virtual off-screen `ScreenBuffer`.
40
- 3. Computes a strict `Cell`-level diff against the previous frame.
41
- 4. Emits only the exact ANSI escape sequences for cells that changed.
209
+ Zyphor supports standard navigation keys, arrow keys, and full **Vim-style navigation** (`h`, `j`, `k`, `l`, `g`, `G`).
42
210
 
43
- The result? Absolute zero tearing, zero flickering, and sub-0.1% CPU overhead even at high refresh rates.
211
+ ### Viewport Navigation
212
+ | Hotkey | Action | Description |
213
+ | :--- | :---: | :--- |
214
+ | <kbd>1</kbd> .. <kbd>7</kbd> | Direct Jump | Switch to Overview, Processes, Disks, Network, Health, Services, or Containers. |
215
+ | <kbd>Tab</kbd> / <kbd>Shift+Tab</kbd> | Next / Prev Tab | Advance viewport sequentially across panels. |
216
+ | <kbd>:</kbd> or <kbd>Ctrl+P</kbd> | Command Palette | Open floating quick-action command launcher. |
217
+ | <kbd>?</kbd> | Help Overlay | Display full modal cheatsheet of all keyboard shortcuts. |
218
+ | <kbd>q</kbd> or <kbd>Ctrl+C</kbd> | Clean Exit | Restore terminal cursor state and exit cleanly. |
219
+
220
+ ### Process & List Manipulation
221
+ | Hotkey | Action | Description |
222
+ | :--- | :---: | :--- |
223
+ | <kbd>j</kbd> / <kbd>k</kbd> or <kbd>↓</kbd> / <kbd>↑</kbd> | Navigate Cursor | Move process / service selection down or up. |
224
+ | <kbd>g</kbd> / <kbd>G</kbd> | Top / Bottom | Jump cursor to the top or bottom of the list. |
225
+ | <kbd>PgUp</kbd> / <kbd>PgDn</kbd> | Page Scroll | Scroll list by 10 items at a time. |
226
+ | <kbd>/</kbd> | Global Search | Enter live search filter mode (filters active panel in real time). |
227
+ | <kbd>Esc</kbd> | Clear / Close | Clear active search query or close the open modal. |
228
+ | <kbd>Enter</kbd> | Deep Inspector | Toggle side-pane telemetry inspector for selected item. |
229
+ | <kbd>t</kbd> | Lineage Tree | Toggle hierarchical DFS process parent/child tree mode. |
230
+ | <kbd>c</kbd> / <kbd>m</kbd> / <kbd>p</kbd> / <kbd>n</kbd> | Sort Modes | Instantly sort by CPU%, Memory (RSS), PID, or Name. |
231
+ | <kbd>x</kbd> | Terminate (Kill) | Send `SIGKILL` / `TerminateProcess` to highlighted process. |
232
+ | <kbd>s</kbd> | Suspend | Send `SIGSTOP` to pause execution of target process. |
233
+ | <kbd>u</kbd> | Resume | Send `SIGCONT` to unpause execution of target process. |
234
+
235
+ ### Telemetry & Diagnostics Control
236
+ | Hotkey | Action | Description |
237
+ | :--- | :---: | :--- |
238
+ | <kbd>P</kbd> | Process Profiler | Launch 10-second high-frequency telemetry trace on selected PID. |
239
+ | <kbd>E</kbd> | Export Snapshot | Dump instantaneous machine state to `zyphor-export-[timestamp].json`. |
240
+ | <kbd>Space</kbd> | Freeze Telemetry | Pause live sampling loop to freeze screen metrics for inspection. |
241
+ | <kbd>]</kbd> or <kbd>Shift+T</kbd> | Cycle Theme | Hot-swap between all 10 built-in 24-bit TrueColor palettes. |
44
242
 
45
243
  ---
46
244
 
47
- ## 📦 Installation
245
+ ## 📦 Installation & Getting Started
246
+
247
+ Zyphor compiles to a single, standalone `1.1 MB` static executable.
48
248
 
49
- ### 1. Universal One-Line Installers
249
+ ### 1. One-Line Universal Installers
50
250
 
51
251
  #### Linux & macOS (Bash / Zsh):
52
252
  ```bash
@@ -60,15 +260,11 @@ irm https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/install.ps1
60
260
 
61
261
  ---
62
262
 
63
- ### 2. JavaScript & Web Toolchains (NPM, Bun, PNPM, Yarn)
64
-
65
- Execute immediately without installing or install globally:
263
+ ### 2. JavaScript & Web Toolchains (NPM, Bun, PNPM)
66
264
 
67
265
  ```bash
68
- # Run immediately via npx, bunx, or pnpm dlx
266
+ # Execute immediately via npx
69
267
  npx zyphor
70
- bunx zyphor
71
- pnpm dlx zyphor
72
268
 
73
269
  # Or install globally
74
270
  npm install -g zyphor
@@ -86,20 +282,20 @@ cargo install zyphor
86
282
 
87
283
  ---
88
284
 
89
- ### 4. Native OS Package Managers
285
+ ### 4. Native Package Managers
90
286
 
91
- #### Homebrew (macOS & Linux):
287
+ #### macOS & Linux (Homebrew):
92
288
  ```bash
93
289
  brew tap miyaniakshar1234/zyphor
94
290
  brew install zyphor
95
291
  ```
96
292
 
97
- #### Windows Package Manager (Winget):
293
+ #### Windows (Winget):
98
294
  ```powershell
99
295
  winget install miyaniakshar1234.Zyphor
100
296
  ```
101
297
 
102
- #### Scoop (Windows):
298
+ #### Windows (Scoop):
103
299
  ```powershell
104
300
  scoop bucket add zyphor https://github.com/miyaniakshar1234/scoop-zyphor
105
301
  scoop install zyphor
@@ -108,129 +304,62 @@ scoop install zyphor
108
304
  #### Arch Linux (AUR):
109
305
  ```bash
110
306
  yay -S zyphor-bin
111
- # or with paru:
307
+ # or
112
308
  paru -S zyphor-bin
113
309
  ```
114
310
 
115
311
  ---
116
312
 
117
- ### 5. Docker / Podman Container (GHCR)
313
+ ### 5. Build from Source
118
314
 
119
- Run with host PID access for complete host telemetry:
120
- ```bash
121
- docker run -it --rm --pid=host ghcr.io/miyaniakshar1234/zyphor
122
- ```
123
-
124
- ---
125
-
126
- ### 6. Pre-built Standalone Binaries
127
- Download the compiled single-file binary directly from [GitHub Releases](https://github.com/miyaniakshar1234/Zyphor/releases):
128
- - `zyphor-linux-x86_64.tar.gz`
129
- - `zyphor-linux-aarch64.tar.gz`
130
- - `zyphor-macos-x86_64.tar.gz`
131
- - `zyphor-windows-x86_64.zip`
132
- - `zyphor-windows-aarch64.zip`
133
-
134
- ---
135
-
136
- ### 7. Build from Source
137
- Building Zyphor requires [Zig 0.15+](https://ziglang.org/download/):
315
+ Building Zyphor requires [Zig 0.15.2+](https://ziglang.org/download/):
138
316
 
139
317
  ```bash
318
+ # Clone the repository
140
319
  git clone https://github.com/miyaniakshar1234/Zyphor.git
141
320
  cd Zyphor
142
- zig build -Doptimize=ReleaseFast
143
- ./zig-out/bin/zyphor
144
- ```
145
321
 
146
- ### CLI Automation & Diagnostics Pipelines
147
- Zyphor isn't just a TUI; it's a scriptable observability engine:
148
- ```bash
149
- # Full environment readiness, permissions, and sensor audit
150
- zyphor doctor
151
-
152
- # Run native CPU compute and RAM bandwidth benchmark
153
- zyphor bench
154
-
155
- # Explainable root-cause health & diagnostics audit
156
- zyphor health
157
-
158
- # Storage partitions and directory space consumer tree
159
- zyphor disk
160
-
161
- # Network interfaces and active process socket connection table
162
- zyphor net
163
-
164
- # OS background services and daemons
165
- zyphor services
166
-
167
- # Top 10 processes sorted by CPU utilization
168
- zyphor process --sort cpu --limit 10
322
+ # Compile with ReleaseFast optimizations
323
+ zig build -Doptimize=ReleaseFast
169
324
 
170
- # Export comprehensive instantaneous system snapshot to JSON
171
- zyphor snapshot -o system-state.json
325
+ # The optimized static binary is generated at:
326
+ ./zig-out/bin/zyphor
172
327
  ```
173
328
 
174
329
  ---
175
330
 
176
- ## 🎮 Global Controls & Navigation
177
-
178
- Zyphor supports standard arrow keys, numerical hotkeys, and full **Vim-style navigation** (`h`, `j`, `k`, `l`, `g`, `G`):
179
-
180
- | Key | Action | Description |
181
- | :--- | :---: | :--- |
182
- | <kbd>Tab</kbd> / <kbd>Shift+Tab</kbd> | Next / Prev Tab | Advances viewport across the 6 sub-system panels. |
183
- | <kbd>1</kbd> .. <kbd>6</kbd> | Direct Jump | Switch to Overview, Processes, Storage, Net, Health, or Services. |
184
- | <kbd>:</kbd> / <kbd>Ctrl+P</kbd> | Command Palette | Opens floating quick action command palette (PRD §33). |
185
- | <kbd>/</kbd> | Search / Filter | Activates live search mode to filter processes or services. |
186
- | <kbd>Enter</kbd> | Deep Inspector | Opens full-screen process inspector modal for highlighted task. |
187
- | <kbd>t</kbd> | Lineage Tree | Toggles hierarchical process parent/child trees. |
188
- | <kbd>c</kbd> / <kbd>m</kbd> / <kbd>p</kbd> / <kbd>n</kbd>| Sort Modes | Instantly sort by CPU, Memory, PID, or Name. |
189
- | <kbd>x</kbd> / <kbd>s</kbd> / <kbd>u</kbd> | Process Actions | Kill, Suspend (SIGSTOP), or Resume (SIGCONT) selected process. |
190
- | <kbd>Space</kbd> | Pause/Resume | Toggles freeze mode on live telemetry sampling. |
191
- | <kbd>T</kbd> | Cycle Theme | Cycles through 10 built-in 24-bit TrueColor palettes (Default: `Anthropic`). |
192
- | <kbd>?</kbd> | Help Modal | Opens full keyboard shortcut overlay. |
193
- | <kbd>q</kbd> | Exit | Restores terminal cursor and exits cleanly. |
194
-
195
- ---
331
+ ## 📚 Exhaustive Documentation Index
196
332
 
197
- ## 🎨 Hand-Tuned TrueColor Themes
333
+ For in-depth operational and engineering guides, explore the dedicated documentation suite:
198
334
 
199
- Zyphor ships with 10 built-in 24-bit TrueColor palettes. The default theme is **Anthropic**:
200
-
201
- * 🏺 **Anthropic (Default):** Warm dark charcoal `#1F1D1C`, terracotta `#D97757`, biscuit sand `#E5C07B`, and sage green `#718E75`.
202
- * **Cyber:** High-contrast cyberpunk palette with magenta `#FF0080` and neon blue `#00F0FF`.
203
- * 🌃 **Tokyo Night:** Deep indigo `#1a1b26`, electric cyan `#7dcfff`, and magenta `#bb9af7`.
204
- * 💻 **Hacker:** Classic terminal aesthetic with CRT phosphors `#20C20E` and dark obsidian `#0C100C`.
205
- * 🌌 **Midnight:** Deep slate-navy base with electric cyan and emerald accents.
206
- * 🌿 **Aurora:** Nordic evening glow featuring seafoam greens and soft amethyst.
207
- * ❄️ **Nord:** Arctic slate aesthetic based on authentic Nord design tokens.
208
- * ☀️ **Solarized Dark:** Classic low-glare palette tuned for long diagnostic sessions.
209
- * ☕ **Gruvbox:** Warm retro contrast with amber accents and terracotta highlights.
210
- * ⬛ **High Contrast:** Pure monochrome black/white for maximum accessibility.
335
+ | Document | Focus Area |
336
+ | :--- | :--- |
337
+ | 📖 [**Observatory User Manual**](https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/user-manual.md) | Complete guide to all 7 panels, process trees, inspector cards, profiling workflows, and metrics. |
338
+ | 🧠 [**Internal Systems Architecture**](https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/architecture.md) | Low-level design, memory models, double arenas, differential rendering, and zero-allocation invariants. |
339
+ | 🚨 [**Alerts & Diagnostics Engine**](https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/alerts-and-diagnostics.md) | Heuristic algorithms, 0–100 health scoring formulas, anomaly detection, and remediation playbooks. |
340
+ | 🧬 [**Platform Internals & Probes**](https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/platform-internals.md) | Kernel telemetry implementations: Windows NT direct syscalls, Linux `/proc` zero-copy, and macOS Mach probes. |
341
+ | 🤖 [**CLI & Automation Reference**](https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/cli-reference.md) | Comprehensive subcommand reference, JSON export schemas, Prometheus exporter integration, and scripting recipes. |
342
+ | 🎨 [**Theming & Customization**](https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/theming-and-customization.md) | 24-bit TrueColor tokens, custom palette configuration, and visual overrides. |
343
+ | 🔧 [**Troubleshooting & FAQ**](https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/troubleshooting.md) | Terminal compatibility, Windows console modes, Linux capability permissions (`CAP_SYS_PTRACE`), and FAQ. |
344
+ | 🤝 [**Contributing Guide**](https://github.com/miyaniakshar1234/Zyphor/blob/master/docs/contributing.md) | Coding standards, memory safety invariants, testing harness, benchmarking requirements, and PR workflows. |
211
345
 
212
346
  ---
213
347
 
214
- ## 📚 Comprehensive Documentation
348
+ ## 👨‍💻 About the Developer
215
349
 
216
- Exhaustive, deeply technical documentation is available in the [`docs/`](docs/) directory:
350
+ Zyphor was architected, designed, and built by **Akshar Miyani**.
217
351
 
218
- | Document | Focus Area |
219
- | :--- | :--- |
220
- | 📖 [**Observatory User Manual**](docs/user-manual.md) | Full guide to all 6 panels, process tree inspection, kill/suspend workflows, and telemetry metrics. |
221
- | 🚀 [**Getting Started & Setup**](docs/getting-started.md) | Prebuilt binaries, distribution packages, source builds, permissions, and configuration. |
222
- | 🤖 [**CLI & Automation Reference**](docs/cli-reference.md) | Subcommands, JSON schemas, pipeable automation scripts, and Prometheus exporters. |
223
- | 🧠 [**Internal Systems Architecture**](docs/architecture.md) | Low-level systems design, zero-allocation memory models, double arenas, and differential rendering engine. |
224
- | 🚨 [**Alerts & Diagnostics Engine**](docs/alerts-and-diagnostics.md) | Root-cause analysis heuristics, 0-100 health scoring formulas, anomaly detection, and hysteresis. |
225
- | 🧬 [**Platform Internals & Probes**](docs/platform-internals.md) | Deep kernel telemetry implementation: Windows NT, Linux `/proc` & netlink, and macOS Mach ports. |
226
- | 🤝 [**Contributing Guide**](CONTRIBUTING.md) | Coding standards, memory safety invariants, testing harness, benchmarking, and PR workflows. |
352
+ * **Philosophy:** Software should treat hardware with absolute respect. A diagnostic tool should never impose a significant burden on the system it is tasked with observing.
353
+ * **Focus:** Low-level systems engineering, cache-friendly data-oriented design, kernel telemetry, compiler-level optimizations, and modern terminal user experiences.
354
+ * **GitHub:** [@miyaniakshar1234](https://github.com/miyaniakshar1234)
355
+ * **Repository:** [https://github.com/miyaniakshar1234/Zyphor](https://github.com/miyaniakshar1234/Zyphor)
227
356
 
228
357
  ---
229
358
 
230
- ## 🤝 Contributing
359
+ ## 📄 License
231
360
 
232
- We want to make Zyphor the undisputed king of terminal monitors. If you want to contribute new OS abstractions, UI widgets, or analytics engines, read our [Contributing Guide](CONTRIBUTING.md) to get started!
361
+ Zyphor is open-source software licensed under the **MIT License**. See the [LICENSE](https://github.com/miyaniakshar1234/Zyphor/blob/master/LICENSE) file for details.
233
362
 
234
363
  <div align="center">
235
- <i>Created and maintained with precision for the systems engineering community.</i>
364
+ <sub>Engineered with precision for the global systems community by <b>Akshar Miyani</b>.</sub>
236
365
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zyphor",
3
- "version": "0.1.1",
3
+ "version": "1.0.0",
4
4
  "description": "Next-generation native terminal system observatory written in pure Zig",
5
5
  "main": "bin/zyphor.js",
6
6
  "bin": {