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 +6 -5
- package/bin/readingroom.js +3 -2
- package/dist/assets/index-87varIK4.js +190 -0
- package/dist/assets/index-jgmgco4r.css +2 -0
- package/dist/index.html +15 -2
- package/package.json +1 -1
- package/src/openBrowser.js +29 -18
- package/src/scanner.js +3 -6
- package/src/server.js +44 -9
- package/dist/assets/index-BUv67KbK.css +0 -2
- package/dist/assets/index-BpmvxNpC.js +0 -190
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
|
|
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
|
|
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;
|
|
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
|
package/bin/readingroom.js
CHANGED
|
@@ -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
|
|
24
|
-
skipping node_modules and friends) and serves a read-only
|
|
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) {
|