@tacone/prosey 0.2.3 → 0.2.6

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/README.md CHANGED
@@ -4,20 +4,43 @@
4
4
 
5
5
  You can read, skim, search, copy, and manipulate the text using the tools you love the most.
6
6
 
7
- ## Usage
7
+ ## Features
8
+
9
+ | Feature | Description |
10
+ | ------------------------------------ | ----------------------------------------------------------------------------------------------- |
11
+ | **📋 Transcript download** | Fetch YouTube transcripts as plain text or JSON |
12
+ | **🤖 AI summarization** | Pipe transcripts to any AI agent (opencode, Claude, Copilot, Codex) |
13
+ | **🎨 Smart pager** | Automatic syntax highlighting if bat, glow or mdcat are installed (or configure your own pager) |
14
+ | **🛠️ Customization** | Use `prosey config` to access and edit your configuration |
15
+ | **💾 Disk caching** | Transcripts and summaries cached for instant repeat |
16
+ | **📄 Supported formats** | Plain text and JSON |
17
+
18
+ ## Quickstart
19
+
20
+ Try it out immediately with npx:
8
21
 
9
22
  ```bash
10
23
  npx @tacone/prosey 771PQEDeRmw
11
24
  npx @tacone/prosey https://youtu.be/771PQEDeRmw --lang es -o transcript.txt
12
- npx @tacone/prosey info 771PQEDeRmw
13
25
  ```
14
26
 
15
27
  ## Install
16
28
 
17
- ### Global install (npm)
29
+ Install globally with your favorite package manager:
18
30
 
19
31
  ```bash
20
32
  npm install -g @tacone/prosey
33
+ # or
34
+ yarn global add @tacone/prosey
35
+ # or
36
+ pnpm add -g @tacone/prosey
37
+ # or
38
+ bun install -g @tacone/prosey
39
+ ```
40
+
41
+ Then use it anywhere:
42
+
43
+ ```bash
21
44
  prosey 771PQEDeRmw
22
45
  ```
23
46
 
@@ -43,6 +66,7 @@ Grab a compiled binary from the `dist/` directory (requires no runtime).
43
66
  prosey [options] <video-url-or-id>
44
67
  prosey info [options] <video-url-or-id>
45
68
  prosey summarize [options] <video-url-or-id>
69
+ prosey config
46
70
  ```
47
71
 
48
72
  Pass a full YouTube URL or a bare video ID. The transcript is printed to
@@ -51,35 +75,41 @@ stdout by default, with video details prepended.
51
75
  The `summarize` command fetches a transcript, prepends the prompt from the
52
76
  `[summarize]` config section, and pipes the result to the configured command.
53
77
 
78
+ The `config` command opens your config file in `$EDITOR` for editing. If
79
+ `$EDITOR` is not set, the config file path is printed.
80
+
54
81
  ### Examples
55
82
 
56
83
  ```bash
57
84
  # Basic — plain text with details
58
- npx @tacone/prosey 771PQEDeRmw
85
+ prosey 771PQEDeRmw
59
86
 
60
87
  # Specify language
61
- npx @tacone/prosey https://youtu.be/771PQEDeRmw --lang es
88
+ prosey https://youtu.be/771PQEDeRmw --lang es
62
89
 
63
90
  # Include timestamps
64
- npx @tacone/prosey 771PQEDeRmw -t
91
+ prosey 771PQEDeRmw -t
65
92
 
66
93
  # Save to file
67
- npx @tacone/prosey 771PQEDeRmw -o transcript.txt
94
+ prosey 771PQEDeRmw -o transcript.txt
68
95
 
69
96
  # JSON output (timestamps always included)
70
- npx @tacone/prosey 771PQEDeRmw --json
97
+ prosey 771PQEDeRmw --json
71
98
 
72
99
  # Transcript only, no video details
73
- npx @tacone/prosey 771PQEDeRmw --no-details
100
+ prosey 771PQEDeRmw --no-details
74
101
 
75
102
  # List available transcript languages
76
- npx @tacone/prosey 771PQEDeRmw --list
103
+ prosey 771PQEDeRmw --list
77
104
 
78
105
  # Show video metadata
79
- npx @tacone/prosey info 771PQEDeRmw
106
+ prosey info 771PQEDeRmw
80
107
 
81
108
  # Summarize via the configured command
82
- npx @tacone/prosey summarize 771PQEDeRmw
109
+ prosey summarize 771PQEDeRmw
110
+
111
+ # Edit config in $EDITOR
112
+ prosey config
83
113
  ```
84
114
 
85
115
  ## Options
@@ -95,6 +125,13 @@ npx @tacone/prosey summarize 771PQEDeRmw
95
125
  | `--details` | Prepend video details (title, channel, duration, views, description) to the transcript (default). |
96
126
  | `--no-details` | Suppress video details, transcript only. |
97
127
  | `--no-decode-entities` | Preserve raw HTML entities (e.g. `&#39;`). Decoded by default in text mode. |
128
+ | `--no-cache` | Skip cache reads and force a fresh fetch. |
129
+ | `--no-format` | Skip prettier markdown formatting on summarize output. |
130
+ | `-q`, `--quiet` | Suppress all stderr logging. |
131
+ | `-v`, `--verbose` | Print debug information to stderr. |
132
+ | `--no-pager` | Disable pager for stdout output (auto-detected by default). |
133
+ | `--pager` | Use pager for stdout output (default). |
134
+ | `--reset-config` | Reset config file to defaults and exit. |
98
135
  | `--help` | Show help message and exit. |
99
136
  | `--version` | Show version number and exit. |
100
137
 
@@ -140,6 +177,15 @@ environment variable to use a custom path.
140
177
  The config file is created automatically on first run with default values.
141
178
  Use `--reset-config` to restore the defaults at any time.
142
179
 
180
+ ### `pager`
181
+
182
+ Pager command for transcript and summary output. Defaults to `"auto"`, which
183
+ detects the first available of: `bat -lmd --style plain` → `glow -p` → `mdcat -l -p` → `less`.
184
+ Set to a custom command (e.g. `"less -R"`) to override. The `PROSEY_PAGER`
185
+ environment variable takes precedence over this setting.
186
+
187
+ ### `[summarize]`
188
+
143
189
  The `[summarize]` section configures the `summarize` command:
144
190
 
145
191
  | Key | Description |
@@ -147,6 +193,11 @@ The `[summarize]` section configures the `summarize` command:
147
193
  | `prompt` | Instruction prepended to the transcript |
148
194
  | `command` | Shell command that receives the prompt via stdin |
149
195
 
196
+ ### `PROSEY_PAGER`
197
+
198
+ Environment variable to set the pager command. Takes precedence over the
199
+ `pager` config value. Set to `"auto"` or empty to use auto-detection.
200
+
150
201
  ## Cache
151
202
 
152
203
  Transcripts and summaries are cached to `/tmp/prosey/`. Repeated invocations