zyphor 0.1.0 โ†’ 0.1.1

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 +236 -0
  2. package/package.json +6 -1
package/README.md ADDED
@@ -0,0 +1,236 @@
1
+ <div align="center">
2
+ <img src="https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/docs/assets/logo.png" alt="Zyphor Logo" width="120" />
3
+
4
+ # Zyphor
5
+
6
+ **The Next-Generation Terminal Operating Environment**
7
+ *Zero-allocation, blazing-fast system observatory written in pure Zig.*
8
+
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>
14
+
15
+ ---
16
+
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.
18
+
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.
20
+
21
+ ## ๐Ÿš€ The Next-Gen Vibe
22
+
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.
32
+
33
+ ---
34
+
35
+ ## โšก Zero-Flicker Architecture
36
+
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.
42
+
43
+ The result? Absolute zero tearing, zero flickering, and sub-0.1% CPU overhead even at high refresh rates.
44
+
45
+ ---
46
+
47
+ ## ๐Ÿ“ฆ Installation
48
+
49
+ ### 1. Universal One-Line Installers
50
+
51
+ #### Linux & macOS (Bash / Zsh):
52
+ ```bash
53
+ curl -fsSL https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/install.sh | bash
54
+ ```
55
+
56
+ #### Windows (PowerShell):
57
+ ```powershell
58
+ irm https://raw.githubusercontent.com/miyaniakshar1234/Zyphor/master/install.ps1 | iex
59
+ ```
60
+
61
+ ---
62
+
63
+ ### 2. JavaScript & Web Toolchains (NPM, Bun, PNPM, Yarn)
64
+
65
+ Execute immediately without installing or install globally:
66
+
67
+ ```bash
68
+ # Run immediately via npx, bunx, or pnpm dlx
69
+ npx zyphor
70
+ bunx zyphor
71
+ pnpm dlx zyphor
72
+
73
+ # Or install globally
74
+ npm install -g zyphor
75
+ bun install -g zyphor
76
+ pnpm add -g zyphor
77
+ ```
78
+
79
+ ---
80
+
81
+ ### 3. Rust Ecosystem (Cargo / Crates.io)
82
+
83
+ ```bash
84
+ cargo install zyphor
85
+ ```
86
+
87
+ ---
88
+
89
+ ### 4. Native OS Package Managers
90
+
91
+ #### Homebrew (macOS & Linux):
92
+ ```bash
93
+ brew tap miyaniakshar1234/zyphor
94
+ brew install zyphor
95
+ ```
96
+
97
+ #### Windows Package Manager (Winget):
98
+ ```powershell
99
+ winget install miyaniakshar1234.Zyphor
100
+ ```
101
+
102
+ #### Scoop (Windows):
103
+ ```powershell
104
+ scoop bucket add zyphor https://github.com/miyaniakshar1234/scoop-zyphor
105
+ scoop install zyphor
106
+ ```
107
+
108
+ #### Arch Linux (AUR):
109
+ ```bash
110
+ yay -S zyphor-bin
111
+ # or with paru:
112
+ paru -S zyphor-bin
113
+ ```
114
+
115
+ ---
116
+
117
+ ### 5. Docker / Podman Container (GHCR)
118
+
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/):
138
+
139
+ ```bash
140
+ git clone https://github.com/miyaniakshar1234/Zyphor.git
141
+ cd Zyphor
142
+ zig build -Doptimize=ReleaseFast
143
+ ./zig-out/bin/zyphor
144
+ ```
145
+
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
169
+
170
+ # Export comprehensive instantaneous system snapshot to JSON
171
+ zyphor snapshot -o system-state.json
172
+ ```
173
+
174
+ ---
175
+
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
+ ---
196
+
197
+ ## ๐ŸŽจ Hand-Tuned TrueColor Themes
198
+
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.
211
+
212
+ ---
213
+
214
+ ## ๐Ÿ“š Comprehensive Documentation
215
+
216
+ Exhaustive, deeply technical documentation is available in the [`docs/`](docs/) directory:
217
+
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. |
227
+
228
+ ---
229
+
230
+ ## ๐Ÿค Contributing
231
+
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!
233
+
234
+ <div align="center">
235
+ <i>Created and maintained with precision for the systems engineering community.</i>
236
+ </div>
package/package.json CHANGED
@@ -1,11 +1,16 @@
1
1
  {
2
2
  "name": "zyphor",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Next-generation native terminal system observatory written in pure Zig",
5
5
  "main": "bin/zyphor.js",
6
6
  "bin": {
7
7
  "zyphor": "bin/zyphor.js"
8
8
  },
9
+ "files": [
10
+ "bin",
11
+ "scripts",
12
+ "README.md"
13
+ ],
9
14
  "scripts": {
10
15
  "postinstall": "node scripts/install.js"
11
16
  },