npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@calebcall/camera-ui-amcrest

v1.3.0

Published

Integrates Amcrest and Dahua-compatible IP cameras, doorbells and PTZ cameras into camera.ui via their native CGI API, with discovery, live streaming, two-way audio, PTZ, and motion, object, audio and doorbell events.

Readme

Amcrest

Amcrest and Dahua-compatible camera integration for camera.ui. Provides camera discovery, live streaming, two-way audio, PTZ control, and motion, object, audio and doorbell events via the native Amcrest/Dahua CGI API.

Supported devices

  • Standard Amcrest IP cameras (main/sub stream, motion and object detection).
  • Amcrest doorbells (e.g. AD110/AD410-style models), including doorbell press events and two-way audio.
  • PTZ-capable Amcrest cameras (pan, tilt and zoom).
  • Other Dahua-compatible (OEM) devices that expose the same CGI/RTSP interface.

NVR-attached channels are not supported in this release — see Known limitations below.

Features

  • Live view & snapshot — native RTSP streaming and CGI snapshot capture, no ONVIF required.
  • Two-way audio — talkback over the device's native audio path. Amcrest-branded devices use the AAC path; Dahua-branded doorbells use G.711A (see Known limitations).
  • Events — motion, object detection (person/vehicle), audio detection, and doorbell press, all delivered over the device's native event stream (no polling).
  • PTZ — pan/tilt/zoom control for capable cameras, exposed as a PTZ sensor/service.
  • Discovery — automatic discovery of Dahua-compatible devices on the local network via UDP, plus manual add for devices that don't respond to discovery (e.g. across subnets).

Setup

Manual add

If a device isn't discovered automatically, add it manually with:

| Field | Description | | --- | --- | | IP Address | The camera/doorbell's IP address, e.g. 192.168.1.50. | | Username | Account username (see the admin-credential note below for doorbells). | | Password | Account password. | | Channel | Camera channel (defaults to 1; only relevant for multi-channel devices). |

Discovery

The plugin listens for Dahua DHIP discovery responses on the local network (UDP multicast/broadcast on port 37810) and lists any devices found so they can be adopted with the same IP/username/password/channel fields as manual add.

Admin credential for doorbells

For Amcrest doorbells, the plugin requires the device's local admin account credential — the same admin username and password used to configure the doorbell directly (e.g. via its web UI or Amcrest Smart Home cloud app's device settings).

This is not the same as your Amcrest Smart Home cloud account login. The cloud account uses an email address and is only used to manage the device from the mobile app; it cannot be used to authenticate directly against the device's CGI API. If you don't remember the admin password, it's the one you set the first time you configured the doorbell (before adding it to the cloud app).

Troubleshooting events

If a camera-side detection (person, vehicle, face, line crossing) isn't showing up in camera.ui, the likely cause is an event code this plugin doesn't recognize yet — firmware varies in which codes it emits.

Enable debug logging in camera.ui and look for lines like:

Unhandled Amcrest event code: ParkingDetection (action=Start) — please report it at ...

Each unrecognized code is logged once per camera. If you see one that should map to a detection, please open an issue with that line.

To watch the raw stream directly from a checkout of this repo:

npm run watch-events -- --ip 192.168.1.50 --user admin --pass secret

Then trigger the event on the camera (walk through frame, drive past, ring the doorbell). Each event prints with how the plugin classifies it:

14:02:31  CrossRegionDetection     action=Start   -> object person active box=[0.349, 0.156, 0.125, 0.440] track=863
14:02:44  ParkingDetection         action=Start   -> UNHANDLED

Credentials can also be supplied as AMCREST_IP / AMCREST_USER / AMCREST_PASS.

Known limitations / v2

The following are deferred to a future release:

  • NVR channels — cameras attached to and accessed through an Amcrest/Dahua NVR are not supported; only directly-addressable devices are.
  • Siren / floodlight control — not exposed in this release.
  • Camera-side recording configuration — the plugin does not configure the device's own SD-card/NVR recording settings.
  • Door lock/unlock — Dahua video-intercom lock relay control is not implemented.
  • ONVIF-backchannel talkback fallback — devices that only support two-way audio via an ONVIF backchannel (rather than the native Amcrest/Dahua audio path) are not yet supported.
  • Dahua-doorbell G.711A talkback — implemented per the documented codec path but not yet verified against real Dahua-branded doorbell hardware.
  • Discovery byte format — the Dahua UDP discovery probe/response parsing is based on the documented protocol and has not yet been validated against a real device capture; manual add remains the reliable fallback if discovery doesn't find your device.