IP cameras and NVRs over ONVIF: discovery, device, media streams and snapshots, PTZ, imaging and events
[decks]
"@deckyard/onvif" = "^0.4.0"| Version | Status | Kind | Pin | Requires | Engines | Capabilities |
|---|---|---|---|---|---|---|
| 0.4.0 | live | git | bac95fe05eb3 | - | jennifer >=0.28.0 | net |
| 0.3.0 | live | git | 140a85145ce4 | - | jennifer >=0.26.0 | net |
| 0.2.0 | live | git | 29821dd73d3e | - | jennifer >=0.26.0 | net |
| 0.1.0 | live | git | 6e6c535fbff8 | - | jennifer >=0.26.0 | net |
LGPL-3.0-only
0.4.0Times a client asked this registry where to find this deck. Not downloads: the registry only stores metadata, and the code is fetched from its repository directly, so we never see an install and cannot count one. Repeated builds inflate these numbers; installs from an existing lockfile do not appear at all. Counted in UTC.
IP cameras and NVRs over ONVIF™ for Jennifer programs: WS-Discovery on the LAN, device information and clock, media profiles with RTSP and snapshot URLs, snapshots, PTZ moves and presets, brightness and focus, and events from a pull-point subscription. One client for every vendor that implements the ONVIF profiles; call reaches any other operation.
jvc add @deckyard/onvifThis vendors the deck to vendor/<scope>/onvif/. Without jvc, unpack the src/ subtree of a release archive (<scope>-onvif-<version>.tar.gz) there.
import "@deckyard/onvif/" as onvif;
for (def d in onvif.discover(3000)) {
io.printf("%s %s\n", $d.address, $d.name);
}
def cam as onvif.Device init onvif.connect(
onvif.device("http://192.168.1.64/onvif/device_service", "admin", $password));
for (def p in onvif.profiles($cam)) {
io.printf("%s %s\n", $p.name, onvif.streamUri($cam, $p.token).address);
}
fs.writeBytes("snapshot.jpg", onvif.snapshot($cam, onvif.profiles($cam)[0].token));Requests are signed with a WS-Security PasswordDigest built per request on the camera's clock (the password never travels); HTTP Digest is answered where a camera asks for it. Plain http is allowed to private, link-local and loopback addresses; anything else needs withPlainHttp.
Jennifer 0.28.0 or newer and the capability net (SOAP over HTTP, WS-Discovery over UDP), so not jennifer-tiny. No other deck. RTSP and video decoding are out of scope: the deck returns the stream URLs.
tools/check-all.sh # the full gate, as CI runs it
jennifer test src/onvif_test.j # the test overlay (a loopback fake camera)
tools/check-docs.sh # docs against the code
tools/pack.sh dist # build the release archiveLGPL-3.0-only, see LICENSE. Copyright (C) 2026 mplx <[email protected]>.
ONVIF™ is a trademark of ONVIF, Inc. Hikvision™ is a trademark of Hangzhou Hikvision Digital Technology Co., Ltd. EZVIZ™ is a trademark of Hangzhou EZVIZ Network Co., Ltd. Dahua™ is a trademark of Zhejiang Dahua Technology Co., Ltd. Axis™ is a trademark of Axis AB. Other product and company names may be trademarks of their respective owners. They are used only to identify the products this deck works with. This deck is an independent project, not affiliated with, sponsored or endorsed by ONVIF, Inc. or any camera vendor.