@ubercode/dcmtk 0.1.4 → 0.3.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.
Files changed (40) hide show
  1. package/README.md +20 -15
  2. package/dist/DicomInstance-D9plqHp5.d.ts +625 -0
  3. package/dist/DicomInstance-DNHPkkzl.d.cts +625 -0
  4. package/dist/{dcmodify-CTXBWKU9.d.cts → dcmodify-B-_uUIKB.d.ts} +4 -2
  5. package/dist/{dcmodify-Daeafqrm.d.ts → dcmodify-Gds9u5Vj.d.cts} +4 -2
  6. package/dist/dicom.cjs +329 -51
  7. package/dist/dicom.cjs.map +1 -1
  8. package/dist/dicom.d.cts +368 -3
  9. package/dist/dicom.d.ts +368 -3
  10. package/dist/dicom.js +329 -51
  11. package/dist/dicom.js.map +1 -1
  12. package/dist/index.cjs +1993 -423
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +324 -10
  15. package/dist/index.d.ts +324 -10
  16. package/dist/index.js +1962 -417
  17. package/dist/index.js.map +1 -1
  18. package/dist/servers.cjs +2380 -197
  19. package/dist/servers.cjs.map +1 -1
  20. package/dist/servers.d.cts +1654 -3
  21. package/dist/servers.d.ts +1654 -3
  22. package/dist/servers.js +2306 -146
  23. package/dist/servers.js.map +1 -1
  24. package/dist/tools.cjs +98 -51
  25. package/dist/tools.cjs.map +1 -1
  26. package/dist/tools.d.cts +21 -4
  27. package/dist/tools.d.ts +21 -4
  28. package/dist/tools.js +98 -52
  29. package/dist/tools.js.map +1 -1
  30. package/dist/{types-zHhxS7d2.d.cts → types-Cgumy1N4.d.cts} +1 -24
  31. package/dist/{types-zHhxS7d2.d.ts → types-Cgumy1N4.d.ts} +1 -24
  32. package/dist/utils.cjs.map +1 -1
  33. package/dist/utils.d.cts +1 -1
  34. package/dist/utils.d.ts +1 -1
  35. package/dist/utils.js.map +1 -1
  36. package/package.json +8 -8
  37. package/dist/index-BZxi4104.d.ts +0 -826
  38. package/dist/index-CapkWqxy.d.ts +0 -1295
  39. package/dist/index-DX4C3zbo.d.cts +0 -826
  40. package/dist/index-r7AvpkCE.d.cts +0 -1295
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ubercode/dcmtk
2
2
 
3
- > **ALPHA PREVIEW RELEASE** — This library has not been thoroughly tested by humans. Use in production at your own risk.
3
+ > **ALPHA PREVIEW** — API may have breaking changes before 1.0. Use in production at your own risk.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@ubercode/dcmtk.svg)](https://www.npmjs.com/package/@ubercode/dcmtk)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/@ubercode/dcmtk.svg)](https://www.npmjs.com/package/@ubercode/dcmtk)
@@ -9,14 +9,14 @@
9
9
  [![Node.js](https://img.shields.io/badge/Node.js-%3E%3D20-green.svg)](https://nodejs.org/)
10
10
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
11
11
 
12
- Type-safe Node.js bindings for the [DCMTK](https://dicom.offis.de/dcmtk.php.en) (DICOM Toolkit) command-line utilities. Wraps 51 DCMTK binaries and 6 long-lived server processes with a modern async/await API, branded types, and the Result pattern for safe error handling.
12
+ Type-safe Node.js bindings for the [DCMTK](https://dicom.offis.de/dcmtk.php.en) (DICOM Toolkit) command-line utilities. Wraps 51 DCMTK binaries, 6 long-lived server processes, a pooled DicomReceiver with auto-scaling workers, and a high-throughput DicomSender with queuing and backpressure — all with a modern async/await API, branded types, and the Result pattern for safe error handling.
13
13
 
14
14
  ## Features
15
15
 
16
16
  - **51 tool wrappers** — async functions for every DCMTK command-line binary (data conversion, network, image processing, structured reports, presentation state)
17
- - **6 server classes** — long-lived DICOM listeners with typed EventEmitter APIs and graceful shutdown
17
+ - **6 server classes + DicomReceiver + DicomSender** — long-lived DICOM listeners with typed EventEmitter APIs, a pooled receiver with auto-scaling workers, and a high-throughput sender with queuing, bucketing, and backpressure
18
18
  - **PacsClient** — high-level PACS client with Echo, Query, Retrieve, and Store operations
19
- - **DICOM data layer** — immutable `DicomDataset`, explicit `ChangeSet` builder, and `DicomFile` I/O
19
+ - **DICOM data layer** — immutable `DicomDataset`, explicit `ChangeSet` builder, and `DicomInstance` unified file I/O
20
20
  - **Result pattern** — all fallible operations return `Result<T>` instead of throwing
21
21
  - **Branded types** — `DicomTag`, `AETitle`, `Port`, and more prevent primitive-type mix-ups at compile time
22
22
  - **Full TypeScript** — strict mode, dual CJS/ESM build, complete `.d.ts` declarations
@@ -26,7 +26,7 @@ Type-safe Node.js bindings for the [DCMTK](https://dicom.offis.de/dcmtk.php.en)
26
26
  ## Prerequisites
27
27
 
28
28
  - **Node.js** >= 20
29
- - **DCMTK** installed on the system — set the `DCMTK_PATH` environment variable or install to a standard location (`/usr/bin`, `/usr/local/bin`, `C:\Program Files\DCMTK`)
29
+ - **DCMTK** installed on the system — set the `DCMTK_PATH` environment variable or install to a standard location (`/usr/bin`, `/usr/local/bin`, `C:\Program Files\DCMTK`). Pre-built Docker images with Node.js + DCMTK are available: [`michaelleehobbs/nodejs-dcmtk`](https://hub.docker.com/r/michaelleehobbs/nodejs-dcmtk)
30
30
 
31
31
  ## Installation
32
32
 
@@ -92,6 +92,8 @@ if (result.ok) {
92
92
  }
93
93
  ```
94
94
 
95
+ > For production workloads with concurrent connections, use [`DicomReceiver`](docs/servers.md#dicomreceiver) — a pooled receiver that manages multiple `Dcmrecv` workers behind a TCP proxy with auto-scaling.
96
+
95
97
  ## Documentation
96
98
 
97
99
  | Guide | Description |
@@ -99,8 +101,9 @@ if (result.ok) {
99
101
  | [Getting Started](docs/GETTING_STARTED.md) | Installation, DICOM glossary, tutorials, troubleshooting |
100
102
  | [Core Concepts](docs/core-concepts.md) | Result pattern, branded types, timeouts, AbortSignal |
101
103
  | [PACS Client](docs/pacs-client.md) | High-level Echo, Query, Retrieve, Store API |
102
- | [DICOM Data Layer](docs/dicom-data-layer.md) | DicomDataset, ChangeSet, DicomFile |
103
- | [Servers](docs/servers.md) | 6 long-lived server classes with typed events |
104
+ | [DICOM Data Layer](docs/dicom-data-layer.md) | DicomDataset, ChangeSet, DicomInstance |
105
+ | [Servers](docs/servers.md) | 6 server classes + DicomReceiver pooled receiver |
106
+ | [Senders](docs/senders.md) | DicomSender high-throughput sender with backpressure |
104
107
  | [Utilities](docs/utilities.md) | batch processing, retry with backoff |
105
108
 
106
109
  ## Tool Reference
@@ -119,14 +122,16 @@ if (result.ok) {
119
122
 
120
123
  ## Server Reference
121
124
 
122
- | Class | Binary | Description | Docs |
123
- | ---------- | -------- | ------------------------------------------ | -------------------------------------- |
124
- | `Dcmrecv` | dcmrecv | DICOM receiver (C-STORE SCP) | [servers.md](docs/servers.md#dcmrecv) |
125
- | `StoreSCP` | storescp | Storage SCP with advanced options | [servers.md](docs/servers.md#storescp) |
126
- | `DcmQRSCP` | dcmqrscp | Query/Retrieve SCP (C-FIND, C-MOVE, C-GET) | [servers.md](docs/servers.md#dcmqrscp) |
127
- | `Wlmscpfs` | wlmscpfs | Worklist Management SCP | [servers.md](docs/servers.md#wlmscpfs) |
128
- | `DcmprsCP` | dcmprscp | Print Management SCP | [servers.md](docs/servers.md#dcmprscp) |
129
- | `Dcmpsrcv` | dcmpsrcv | Viewer network receiver | [servers.md](docs/servers.md#dcmpsrcv) |
125
+ | Class | Binary | Description | Docs |
126
+ | --------------- | --------------- | ------------------------------------------ | ------------------------------------------- |
127
+ | `Dcmrecv` | dcmrecv | DICOM receiver (C-STORE SCP) | [servers.md](docs/servers.md#dcmrecv) |
128
+ | `StoreSCP` | storescp | Storage SCP with advanced options | [servers.md](docs/servers.md#storescp) |
129
+ | `DcmQRSCP` | dcmqrscp | Query/Retrieve SCP (C-FIND, C-MOVE, C-GET) | [servers.md](docs/servers.md#dcmqrscp) |
130
+ | `Wlmscpfs` | wlmscpfs | Worklist Management SCP | [servers.md](docs/servers.md#wlmscpfs) |
131
+ | `DcmprsCP` | dcmprscp | Print Management SCP | [servers.md](docs/servers.md#dcmprscp) |
132
+ | `Dcmpsrcv` | dcmpsrcv | Viewer network receiver | [servers.md](docs/servers.md#dcmpsrcv) |
133
+ | `DicomReceiver` | dcmrecv (pool) | Pooled receiver with auto-scaling workers | [servers.md](docs/servers.md#dicomreceiver) |
134
+ | `DicomSender` | storescu (pool) | High-throughput sender with backpressure | [senders.md](docs/senders.md) |
130
135
 
131
136
  ## License
132
137