@youtyan/code-viewer 0.6.9 → 0.7.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 +21 -13
- package/dist/code-viewer.js +2083 -372
- package/package.json +1 -1
- package/web/app.js +1102 -135
- package/web/style.css +182 -0
package/README.md
CHANGED
|
@@ -32,8 +32,9 @@ Requires Node.js 20 or newer when installed from npm. Development uses
|
|
|
32
32
|
- Switch the viewer UI between English and Japanese from Viewer Settings —
|
|
33
33
|
the language toggle live-updates every screen including the datastore
|
|
34
34
|
viewer.
|
|
35
|
-
- Browse SQLite, PostgreSQL, MySQL, Redis, Elasticsearch, and
|
|
36
|
-
object storage (MinIO, LocalStack) with a built-in datastore
|
|
35
|
+
- Browse SQLite, PostgreSQL, MySQL, Redis, Elasticsearch, DynamoDB, and
|
|
36
|
+
S3-compatible object storage (MinIO, LocalStack) with a built-in datastore
|
|
37
|
+
viewer.
|
|
37
38
|
Local Supabase CLI (`supabase start`) Postgres projects are auto-discovered
|
|
38
39
|
too, without needing a `docker-compose.yml`.
|
|
39
40
|
- Read the built-in Help page for getting started, the `.code-viewer/`
|
|
@@ -210,13 +211,14 @@ browser-based viewer for exploring their contents.
|
|
|
210
211
|
|
|
211
212
|
**SQLite** files (`.db`, `.sqlite`, `.sqlite3`, `.s3db`) are detected
|
|
212
213
|
automatically by scanning the repository tree. **PostgreSQL**, **MySQL**,
|
|
213
|
-
**Redis**, **Elasticsearch**, **
|
|
214
|
-
detected from any `docker-compose.yml`,
|
|
215
|
-
or `compose.yaml` found by the same
|
|
216
|
-
|
|
217
|
-
brings up every DB defined under that
|
|
218
|
-
`node_modules/` are skipped, and discovery
|
|
219
|
-
a few dozen services per scan to keep
|
|
214
|
+
**Redis**, **Elasticsearch**, **DynamoDB on LocalStack**, **MinIO**, and
|
|
215
|
+
**LocalStack S3** services are detected from any `docker-compose.yml`,
|
|
216
|
+
`docker-compose.yaml`, `compose.yml`, or `compose.yaml` found by the same
|
|
217
|
+
recursive scan — both the repository root and subdirectories are considered,
|
|
218
|
+
so a single `code-viewer --cwd <root>` brings up every DB defined under that
|
|
219
|
+
root. `.git/`, `.code-viewer/`, and `node_modules/` are skipped, and discovery
|
|
220
|
+
is capped at a few-level depth and a few dozen services per scan to keep
|
|
221
|
+
startup cheap.
|
|
220
222
|
|
|
221
223
|
Services whose names collide across subdirectories are kept distinct via
|
|
222
224
|
`docker:<service>@<relDir>` ids (cwd-direct compose files keep the historical
|
|
@@ -243,6 +245,11 @@ small allowlist of `_search` / `_count` / `_msearch` / `_explain` /
|
|
|
243
245
|
concurrency via `_seq_no` / `_primary_term`), create new documents, and delete
|
|
244
246
|
existing ones. Snapshots and diffs over `_search` iteration are supported.
|
|
245
247
|
|
|
248
|
+
**DynamoDB** support: detect LocalStack services with DynamoDB enabled, list
|
|
249
|
+
tables across paginated responses, inspect key schemas, scan or query items,
|
|
250
|
+
page with `LastEvaluatedKey`, and open an item detail view with a copyable key.
|
|
251
|
+
The explorer is read-only.
|
|
252
|
+
|
|
246
253
|
**S3-compatible object storage** (MinIO, LocalStack): browse
|
|
247
254
|
buckets as a folder tree, search by prefix or filename, sort scanned objects by
|
|
248
255
|
update time, and preview images, video, audio, PDFs, Markdown, HTML, and text
|
|
@@ -311,10 +318,11 @@ Open Datastores in the global navigation to access:
|
|
|
311
318
|
snapshots to see inserted, updated, and deleted rows with full before/after
|
|
312
319
|
values.
|
|
313
320
|
- **Datastore explorers** — first-class sidebars for Redis (DB / SCAN),
|
|
314
|
-
Elasticsearch (indices / mappings / docs),
|
|
315
|
-
badges) so the same Multi-DB tab UI works for
|
|
316
|
-
|
|
317
|
-
|
|
321
|
+
Elasticsearch (indices / mappings / docs), DynamoDB (tables / scan / query),
|
|
322
|
+
and S3 (folder tree, kind badges) so the same Multi-DB tab UI works for
|
|
323
|
+
non-SQL stores too. Redis, Elasticsearch, and S3 support editing or creation
|
|
324
|
+
through in-line panes and confirmation dialogs; DynamoDB browsing is
|
|
325
|
+
read-only.
|
|
318
326
|
|
|
319
327
|
### CLI
|
|
320
328
|
|