@youtyan/code-viewer 0.2.4 → 0.2.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
@@ -112,14 +112,14 @@ Use `scope.omitDirs` for directories that should stay visible as skipped, and
112
112
  `scope.excludeNames` for file or directory names that should be hidden entirely.
113
113
  `.DS_Store` is hidden by default.
114
114
 
115
- ## Database Viewer
115
+ ## Datastore Viewer
116
116
 
117
- code-viewer auto-discovers databases in your repository and provides a
117
+ code-viewer auto-discovers local datastores in your repository and provides a
118
118
  browser-based viewer for exploring their contents.
119
119
 
120
120
  **SQLite** files (`.db`, `.sqlite`, `.sqlite3`, `.s3db`) are detected
121
121
  automatically by scanning the repository tree. **PostgreSQL**, **MySQL**,
122
- **Redis**, and **Elasticsearch** services are detected from any
122
+ **Redis**, **Elasticsearch**, **MinIO**, and **LocalStack S3** services are detected from any
123
123
  `docker-compose.yml` (or `compose.yml`) found by the same recursive
124
124
  scan — both the repository root and subdirectories are considered, so a
125
125
  single `code-viewer --cwd <root>` brings up every DB defined under that
@@ -131,10 +131,19 @@ SCAN keys, and view values per type (string/hash/list as dedicated
131
131
  panes, set/zset/stream as raw JSON). Elasticsearch support is read-only
132
132
  too: list indices, view mappings, paginate docs with `search_after`, run
133
133
  lucene `q=` searches, and take snapshots / diffs over `_search` iteration.
134
+ S3-compatible object storage support is read-only: browse buckets, search by
135
+ prefix or filename, sort scanned objects by update time, and preview images,
136
+ video, audio, PDFs, Markdown, HTML, and text files. Updated-time sorting is
137
+ scoped to the objects scanned for the current prefix/search rather than a
138
+ persistent whole-bucket index. HTML previews are rendered in a sandboxed
139
+ `srcdoc` iframe; relative subresources inside the HTML are not rewritten.
140
+ If the S3 service publishes a host port, code-viewer connects through
141
+ `localhost:<port>`; otherwise it falls back to `docker exec <container> curl`
142
+ against the service's container-local endpoint.
134
143
 
135
144
  ### Browser UI
136
145
 
137
- Open the database icon in the sidebar to access:
146
+ Open Datastores in the global navigation to access:
138
147
 
139
148
  - **Multi-DB tabs** — open multiple databases side by side (each tab has
140
149
  its own sidebar, panes, and history). `+` adds an empty tab; `×` or
@@ -228,7 +237,7 @@ The body is Markdown. Long bodies can be passed with `--body-file <path>` or
228
237
  piped through stdin. `code-viewer annotate --help` shows all commands,
229
238
  including `move`, `edit`, `list`, `delete <id>`, and `clear`. `add` and
230
239
  `add-db` accept `--before <id>`, `--after <id>`, or `--position <n>` when a
231
- note belongs somewhere other than the end. On the Database screen, the
240
+ note belongs somewhere other than the end. On the Datastores screen, the
232
241
  annotations panel also has a pin button that captures the current data grid,
233
242
  query editor, or global search state as a database annotation. For AI agents,
234
243
  `code-viewer annotate agent-help` prints a skill-style guide covering the