@ivan-bekker/ghav 0.0.0-stage → 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ivan Bekker
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,49 @@
1
- # Temporary Holding Version
1
+ # ghav
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ A localhost web viewer for running GitHub Actions workflows from the browser. Point it at local repos, pick a workflow, job and event, press Run, and watch live logs, job and step status, and run history. Nothing is pushed to GitHub.
4
+
5
+ It is a UI over [`act`](https://github.com/nektos/act), which runs the workflows in Docker. Results approximate GitHub; they are not identical.
6
+
7
+ ## Requirements
8
+
9
+ - Node.js 24 or newer
10
+ - [`act`](https://github.com/nektos/act) on your `PATH`
11
+ - Docker, running (not needed for host-mode runs or dry runs)
12
+
13
+ The **Setup check** button in the sidebar reports what is missing.
14
+
15
+ ## Install and run
16
+
17
+ ```sh
18
+ npm i -g @ivanbekker/ghav
19
+ ghav
20
+ ```
21
+
22
+ The server listens on `http://localhost:4780` (the next free port if that is busy) and opens the browser on macOS. It binds to `127.0.0.1` only. Stop it with Ctrl-C; running workflows are cancelled.
23
+
24
+ ## Environment variables
25
+
26
+ | Variable | Meaning |
27
+ |---|---|
28
+ | `GHA_VIEW_HOME` | Data directory (database, logs, secrets). Default `~/.gha-view` |
29
+ | `GHA_VIEW_PORT` | Fixed port, no fallback to the next one |
30
+ | `GHA_VIEW_ACT_BIN` | Path to the `act` binary. Default `act` |
31
+ | `GHA_VIEW_DOCKER_BIN` | Path to the `docker` binary. Default `docker` |
32
+ | `GHA_VIEW_NO_OPEN=1` | Don't open the browser |
33
+
34
+ ## Security
35
+
36
+ The server runs workflow code on your machine. It accepts requests from `127.0.0.1` only, checks `Host` and `Origin`, and requires a per-process token for every write. Secrets are stored per repo in `~/.gha-view/secrets` (mode 0600) and passed to `act` through its environment, never on the command line.
37
+
38
+ ## Develop
39
+
40
+ ```sh
41
+ npm install
42
+ npm run dev # API on :4780, UI on http://localhost:5173
43
+ npm test
44
+ npm run build && npm start
45
+ ```
46
+
47
+ ## License
48
+
49
+ MIT