1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
The npm distribution of **agtop** wraps the static Rust binary. On install
the postinstall script either downloads the prebuilt binary from GitHub
Releases (once cut) or falls back to `cargo install agtop` if the user has
Rust on PATH.
```sh
./build.sh
```
Produces `agtop-<version>.tgz` here. Inspect it with:
```sh
tar -tzf agtop-0.2.0.tgz
```
```sh
npm publish ./agtop-0.2.0.tgz --access public
```
```sh
npm install -g agtop
agtop # launch TUI
agtop --once --top 10 # one-shot snapshot
```
If you don't have a prebuilt binary yet (or are on an unusual platform), the
postinstall script will run `cargo install agtop` for you. Install Rust from
[rustup.rs](https://rustup.rs) if you don't have it.
Once we cut GitHub Releases (`v0.2.0`, …) with prebuilt artefacts named
`agtop-<platform>-<arch>` for the standard targets, the postinstall fetches
those over HTTPS and unpacks into `vendor/<platform>-<arch>/agtop`. The
`bin/agtop` shim already looks in that path first.