pepe-http 0.41.0 → 0.42.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/CHANGELOG.md CHANGED
@@ -6,6 +6,96 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
8
  ## [Unreleased]
9
+ ## [0.42.0](https://github.com/omarmhaimdat/pepe/compare/v0.41.0...v0.42.0) - 2026-10-13
10
+
11
+ ### Added
12
+
13
+ - *(ui)* themes, and a settings page on every screen that keeps this machine's defaults ([#181](https://github.com/omarmhaimdat/pepe/pull/181))
14
+
15
+ ## What
16
+
17
+ **Themes.** Seven true colour themes beside `terminal`, `light` and
18
+ `none`: `pepe`, `nord`, `dracula`, `gruvbox`, `tokyo-night`,
19
+ `catppuccin`, and `paper` for a light ground. Each is a dozen colours in
20
+ `src/ui/theme.rs`; the rest of its palette is mixed from those, so the
21
+ screens still draw in one dark palette and `adjust` repaints the frame.
22
+
23
+ **A settings page on every screen.** `F2` opens it over the setup, saved
24
+ tests, history, API plan, dashboard, ramp, ping and logs screens, and
25
+ each screen's `?` help lists it.
26
+
27
+ - The first line is the theme: `←` `→` step through them and the screen
28
+ repaints at once.
29
+ - Below it: the defaults a run starts from (requests, duration,
30
+ concurrency, timeout, threads, rate, warm-up, user agent, proxy,
31
+ keep-alive, compression, redirects, TLS verification), a ramp's steps,
32
+ the guardrails, and whether pepe looks for new releases.
33
+ - `enter` types a value, which is checked; `del` goes back to pepe's
34
+ own; `esc` closes. Every change is saved as it's made.
35
+
36
+ **Kept on the host.** `~/.config/pepe/settings.toml`
37
+ (`$XDG_CONFIG_HOME/pepe`, `%APPDATA%\pepe` on Windows, or the directory
38
+ `PEPE_CONFIG_DIR` names):
39
+
40
+ ```toml
41
+ theme = "nord"
42
+ update-check = false
43
+
44
+ [defaults] # what a pepe.toml can say, for every run on this machine
45
+ concurrency = 50
46
+ max-rate = 500
47
+ ```
48
+
49
+ ## Why
50
+
51
+ The theme could only be picked with `PEPE_THEME`, between pepe's palette
52
+ and the terminal's, and a default could only be changed per directory in
53
+ a `pepe.toml`.
54
+
55
+ ## For the reviewer
56
+
57
+ - **Precedence:** flags, then `pepe.toml`, then the settings'
58
+ `[defaults]`, then pepe's own. The defaults are read when pepe starts,
59
+ so only the theme changes mid-session.
60
+ - **Caps:** where a `pepe.toml` and the settings both set
61
+ `max-requests`, `max-rate` or `max-concurrency`, the lower holds, so a
62
+ file in a directory can't loosen a machine-wide cap. This is a choice,
63
+ and the place to push back if the project file should simply win.
64
+ - **Every mode:** the saved defaults apply with `--json` and under `pepe
65
+ mcp` too, as a `pepe.toml` does.
66
+ - **A settings file that doesn't parse** stops pepe with exit 1 and
67
+ names the file, rather than dropping a cap it holds.
68
+ - **`PEPE_THEME`** still wins over the saved theme at startup (the page
69
+ says so when it's set); `NO_COLOR` wins over everything. A theme name
70
+ this pepe doesn't know is not an error.
71
+ - **`update-check = false`** also stops the setup screen mentioning a
72
+ cached newer release.
73
+ - Where the page covers the mascot, the page shows: the kept pixel-art
74
+ area is cut around it.
75
+ - A saved test (`--load`, `pepe rerun`) sits over the defaults like a
76
+ `pepe.toml`; its mode is read from the test alone, so a `[ramp]` in the
77
+ settings doesn't make every test a ramp.
78
+ - While the page is up, the mouse is no screen's.
79
+ - No `--theme` flag and no `pepe settings` subcommand.
80
+
81
+ ## Checked
82
+
83
+ - After merging master: `cargo test` (357 pass), `cargo clippy
84
+ --all-targets -- -D warnings`, `cargo fmt --check`.
85
+ - `UPDATE_CONTRIB=1 cargo test contrib` for the man page's environment
86
+ section.
87
+ - `python3 site/build-docs.py` **not run**: `site/` had unrelated
88
+ uncommitted changes locally, so the built pages are not in this PR.
89
+ - By hand, in tmux with `PEPE_CONFIG_DIR` pointed at a scratch
90
+ directory: opened the page from the setup screen and from a finished
91
+ dashboard (40 requests at a local `python3 -m http.server`), stepped the
92
+ themes and read the escape codes for the new palette, typed and cleared
93
+ defaults, read the file back, and confirmed with `--dry-run` that a
94
+ saved `concurrency` reaches a run and that `-c` wins over it.
95
+ - The palettes are held to contrast floors by a test; the shades
96
+ themselves were not judged by eye in a terminal.
97
+
98
+
9
99
  ## [0.41.0](https://github.com/omarmhaimdat/pepe/compare/v0.40.0...v0.41.0) - 2026-10-13
10
100
 
11
101
  ### Added
package/man/pepe.1 CHANGED
@@ -332,6 +332,9 @@ A GitHub token for pepe self\-update, for forks or rate\-limited CI
332
332
  Set to anything to draw without colour: reverse video and shades instead
333
333
  .TP
334
334
  \fBPEPE_THEME\fR
335
- light or dark, for the terminal\*(Aqs background; otherwise COLORFGBG decides
335
+ A theme by name (pepe, nord, dracula, gruvbox, tokyo\-night, catppuccin, paper, terminal, light, none); otherwise the one saved in the settings (F2 on any screen), or what the terminal suggests
336
+ .TP
337
+ \fBPEPE_CONFIG_DIR\fR
338
+ Where settings.toml is kept: the theme and this machine\*(Aqs defaults (~/.config/pepe otherwise)
336
339
  .SH "SEE ALSO"
337
340
  pepe\-ping(1), pepe\-ramp(1), pepe\-api(1), pepe\-self\-update(1), and \fBhttps://github.com/omarmhaimdat/pepe\fR
@@ -19,7 +19,7 @@
19
19
  "hasInstallScript": true,
20
20
  "license": "MIT",
21
21
  "name": "pepe-http",
22
- "version": "0.41.0"
22
+ "version": "0.42.0"
23
23
  },
24
24
  "node_modules/detect-libc": {
25
25
  "engines": {
@@ -48,5 +48,5 @@
48
48
  }
49
49
  },
50
50
  "requires": true,
51
- "version": "0.41.0"
51
+ "version": "0.42.0"
52
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "artifactDownloadUrls": [
3
- "https://github.com/omarmhaimdat/pepe/releases/download/v0.41.0"
3
+ "https://github.com/omarmhaimdat/pepe/releases/download/v0.42.0"
4
4
  ],
5
5
  "author": "Omar MHAIMDAT",
6
6
  "bin": {
@@ -119,7 +119,7 @@
119
119
  "zipExt": ".tar.xz"
120
120
  }
121
121
  },
122
- "version": "0.41.0",
122
+ "version": "0.42.0",
123
123
  "volta": {
124
124
  "node": "18.14.1",
125
125
  "npm": "9.5.0"