@csselectronics/can-pipeline
v0.2.0
Published
Frame storage, filtering and statistics engine for CANsub frame streams.
Maintainers
Readme
@csselectronics/can-pipeline
Frame storage, filtering and statistics engine for CANsub frame streams: Turns a raw CanFrame stream into storage, filter selection, per-message statistics and time-control state, as used by webCAN.
Part of the CANsub JS SDK, which has a starter app and runnable examples (see message-summary and filtered-trace). Published in compiled form; the type definitions document the API.
npm install @csselectronics/can-pipelineWhat's included
| Module | Purpose |
|---|---|
| services/pipeline/storage/FullFrameStorageService | Archive of all frames: Per-bus circular buffers with shared-capacity eviction. Allocates buffers as buses connect when given the connectedBuses signal |
| services/pipeline/storage/FiltFrameStorageService | Filtered view on top of the archive. Rebuilds on filter or connection changes |
| services/pipeline/storage/PerBusBufferPool | Shared-capacity buffer pool with eviction by oldest timestamp |
| services/pipeline/FilterSelectionService | Message and signal registration, selection state, display modes (decoded, PGN, TP), search |
| services/pipeline/StatisticsService | Per-message and per-signal sliding-window summaries (MessageSummary, SignalSummary) |
| services/pipeline/TimeControlService | Live and history time window, freeze and jump to live, row navigation |
| utils/CircularBuffer | Ring buffer with evictOldestByEpoch |
| utils/epochQuery | sliceBefore, countBefore, sliceTimeWindow, kWayMergeAscending/Descending: binary-search query helpers |
| utils/compareItemKeys | Sort comparators for filter rows (raw, PGN-aware) |
Licence
For use with CSS Electronics hardware only. See LICENSE.
