explainthisrepo 0.21.0 → 0.22.5

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
@@ -3,6 +3,7 @@
3
3
  _The fastest way to understand any codebase in plain English using real project signals. Not blind AI summarization._
4
4
 
5
5
  ExplainThisRepo analyzes real project signals; configs, entrypoints, manifests, dependencies graph, file structure and high-signal files producing a clear, structured `EXPLAIN.md` that explains what the codebase does and how it is organized in plain English.
6
+ This is a deterministic repo signal extractor that feeds LLMs correctly.
6
7
 
7
8
  [![PyPI Version](https://img.shields.io/pypi/v/explainthisrepo?color=blue)](https://pypi.org/project/explainthisrepo/)
8
9
  [![PyPI Downloads](https://static.pepy.tech/personalized-badge/explainthisrepo?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/explainthisrepo)
@@ -22,8 +23,8 @@ Not blind AI summarization.
22
23
  - Translates complex code structures into plain English
23
24
  - Speeds up understanding of unfamiliar codebases
24
25
  - Extract architecture signals from configs, entrypoints, and manifests
25
- - Works with GitHub repositories, local directories, private repositories, and monorepos
26
- - Outputs the explanation to an `EXPLAIN.md` file in your current directory or prints it directly in the terminal
26
+ - Works with GitHub repositories, local directories, private repositories, individual files and monorepos
27
+ - Outputs the explanation to an `EXPLAIN.md` file in your current directory, prints it directly in the terminal, or a specified output file (`.txt`, `.pdf`, `.docs`)
27
28
  - Multiple explanation modes (quick, simple, detailed)
28
29
 
29
30
  ## Installation
@@ -182,6 +183,8 @@ For step-by-step instructions, see [docs/GITHUB_TOKEN.md](docs/GITHUB_TOKEN.md)
182
183
 
183
184
  - `--llm` → Override provider selection
184
185
 
186
+ - `--output` / `-o` → Specify output file or directory (default: `EXPLAIN.md`)
187
+
185
188
  ## Flexible Repository and Local Directory Input
186
189
 
187
190
  Accepts various formats for repository input, full GitHub URLs (with or without https), `owner/repo` format, issue links, query strings, and SSH clone links
@@ -318,6 +321,50 @@ When analyzing a local directory:
318
321
 
319
322
  This allows analysis of projects directly from the local filesystem, without requiring a GitHub repository.
320
323
 
324
+
325
+ ## File Analysis
326
+
327
+ ExplanThisRepo analyzes individual files directly
328
+
329
+ ```bash
330
+ explainthisrepo ./path/to/file.py
331
+ ```
332
+
333
+ Supports all explanation modes:
334
+
335
+ ```bash
336
+ explainthisrepo ./file.py --quick
337
+ explainthisrepo ./file.py --simple
338
+ explainthisrepo ./file.py --detailed
339
+ ```
340
+
341
+ When analyzing a file:
342
+ - The file is read safely with encoding and size limits
343
+ - Structure and basic signals (size, lines, type) are extracted
344
+ - The explanation focuses on purpose, logic, and behavior
345
+ - This makes it easy to understand unfamiliar files without scanning entire repositories.
346
+
347
+ ### Custom output
348
+
349
+ `--output`, `-o` → Specify output file or directory (default: `EXPLAIN.md`)
350
+
351
+ Write to a specific file:
352
+
353
+ ```bash
354
+ explainthisrepo owner/repo --output notes.md
355
+ ```
356
+
357
+ Write to a nested path:
358
+ ```bash
359
+ explainthisrepo owner/repo --output path/to/file.md
360
+ ```
361
+
362
+ Write to a directory (creates EXPLAIN.md inside):
363
+
364
+ ```bash
365
+ explainthisrepo owner/repo --output path/to/directory
366
+ ```
367
+
321
368
  ### Version
322
369
 
323
370
  Check the installed CLI version:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "explainthisrepo",
3
- "version": "0.21.0",
3
+ "version": "0.22.5",
4
4
  "description": "The fastest way to understand any codebase in plain English. Not blind AI summarization",
5
5
  "license": "MIT",
6
6
  "type": "module",