readingroom 0.1.0 → 0.2.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # readingroom - Zero-config doc browser for your codebase.
2
2
 
3
- One command, and every `.md`, `.txt`, and image file in your project is browsable in a clean UI - no files touched, nothing installed into your repo.
3
+ One command, and every `.md`, `.txt`, image, and PDF file in your project is browsable in a clean UI - no files touched, nothing installed into your repo.
4
4
 
5
5
  ```bash
6
6
  npx readingroom
@@ -10,10 +10,11 @@ Codebases are drowning in documentation: READMEs, design docs, agent instruction
10
10
 
11
11
  ## What you get
12
12
 
13
- - **Sidebar tree** of every `.md`, `.txt`, and image file, with document counts per folder.
14
- - **File-type filter** under the search box - All / Markdown / Text / Images with live counts.
13
+ - **Sidebar tree** of every `.md`, `.txt`, image, and PDF file, with document counts per folder.
14
+ - **File-type filter** under the search box - All / Markdown / Text / Images / PDF with live counts.
15
15
  - **Rendered markdown** - GitHub-flavored (tables, task lists), syntax-highlighted code blocks, collapsed YAML frontmatter; `.txt` files shown as plain text
16
16
  - **Images** - `png`, `jpg`, `jpeg`, `webp`, `gif`, `avif`, and `svg` render right in the viewer
17
+ - **PDFs** - rendered by your browser's built-in viewer, with an "Open in system viewer" fallback for browsers that can't display PDFs inline
17
18
  - **Search** - press `/` and type
18
19
  - **Live reload** - files created, edited, or deleted by you (or your AI agents) appear instantly
19
20
  - **Deep-linkable URLs** - `/view/docs/plan.md` works on reload.
@@ -22,13 +23,13 @@ Codebases are drowning in documentation: READMEs, design docs, agent instruction
22
23
 
23
24
  ## What it shows (and skips)
24
25
 
25
- readingroom surfaces `.md` and `.txt` files plus images (`png`, `jpg`, `jpeg`, `webp`, `gif`, `avif`, `svg`), including hidden directories like `.github/` or `.claude/` where agent docs and workflow docs live.
26
+ readingroom surfaces `.md` and `.txt` files plus images (`png`, `jpg`, `jpeg`, `webp`, `gif`, `avif`, `svg`) and PDFs (`pdf`), including hidden directories like `.github/` or `.claude/` where agent docs and workflow docs live.
26
27
 
27
28
  It stays out of your way:
28
29
 
29
30
  - Your `.gitignore` is respected (including nested `.gitignore` files)
30
31
  - `node_modules`, `.git`, `dist`, `build`, `out`, `.next`, `target`, `coverage`, and friends are always skipped
31
- - Symlinks are not followed; files larger than 2 MB (text) or 50 MB (images) are not listed
32
+ - Symlinks are not followed; there is no file size limit - if your browser can handle it, it gets listed
32
33
  - It is strictly **read-only** - readingroom never writes to your project
33
34
 
34
35
  ## CLI
@@ -20,8 +20,9 @@ Options:
20
20
  -h, --help Show this help
21
21
  -v, --version Show version
22
22
 
23
- It scans the directory for .md and .txt files (respecting .gitignore and
24
- skipping node_modules and friends) and serves a read-only browser UI.
23
+ It scans the directory for .md, .txt, image, and PDF files (respecting
24
+ .gitignore and skipping node_modules and friends) and serves a read-only
25
+ browser UI.
25
26
  `;
26
27
 
27
28
  function parseArgs(argv) {