npx claudepluginhub uchkunr/hikvision-best-practicesBuild and debug Hikvision ISAPI integrations: Digest auth, access control, events, video and PTZ
A practical guide to integrating with Hikvision cameras, NVRs and access control terminals over ISAPI, their local HTTP API. It has documentation, runnable TypeScript examples, and a skill that gives Claude Code and Codex the same knowledge.
Checked against Hikvision's ISAPI developer guides and against open-source clients tested on real devices. Behaviour still differs between models and firmware versions, so each page says where to check your device's capabilities.
| Page | What it covers |
|---|---|
| Overview | What ISAPI is, which API to use, resource tree, channel IDs |
| Authentication | Digest auth, user levels, login lock, HTTPS with self-signed certificates |
| Requests and responses | JSON and XML, ResponseStatus and error codes, pagination, time format |
| System and device | Device info, time and NTP, reboot, factory reset, accounts |
| Persons | Create, update, search and delete persons; sync pattern |
| Cards | Add, search and delete cards |
| Faces | Face library, multipart upload, picture requirements |
| Doors | Remote open, always open, door state |
| Access events | Event search, major and minor codes |
| Real-time events | alertStream (arming) and HTTP hosts (listening) |
| Video and PTZ | Channels, snapshots, RTSP, PTZ |
| Troubleshooting | Symptoms, causes and fixes |
TypeScript, no runtime dependencies. Node.js 22.18 or later runs the .ts files directly.
cd examples
cp .env.example .env # set HIK_HOST, HIK_USER, HIK_PASS
node --env-file=.env device-info.ts
| Script | What it does |
|---|---|
lib/client.ts | Digest client with nonce reuse, lockout detection and ResponseStatus checks |
lib/search.ts | Pager for every ISAPI search endpoint |
device-info.ts | Model, serial and firmware |
list-persons.ts | All persons on a terminal |
create-person.ts | Create or update a person |
delete-person.ts | Delete a person |
add-card.ts | Link a card to a person |
upload-face.ts | Upload a face photo |
open-door.ts | Open, lock or release a door |
access-events.ts | Access events from the last 24 hours |
alert-stream.ts | Live events over alertStream, with reconnect |
http-host-listener.ts | Receive events the device pushes, and configure the device |
snapshot.ts | Save a JPEG from a camera channel |
skills/hikvision-isapi teaches an AI coding agent the rules from this guide: Digest and lockout handling, status codes, pagination, access-control payloads, event codes and the common firmware traps. It follows the Agent Skills format.
Claude Code
/plugin marketplace add uchkunr/hikvision-best-practices
/plugin install hikvision-isapi@hikvision-best-practices
Codex
codex plugin marketplace add uchkunr/hikvision-best-practices
codex plugin add hikvision-isapi@hikvision-best-practices
Manual install. Copy skills/hikvision-isapi to ~/.claude/skills/ (Claude Code) or ~/.agents/skills/ (Codex), or to .claude/skills/ / .agents/skills/ inside one project.
docs/, this README): CC BY 4.0. Share and adapt with attribution.examples/, skills/) and code snippets in the docs: MIT (examples, skills).Not affiliated with or endorsed by Hikvision. Hikvision is a trademark of Hangzhou Hikvision Digital Technology Co., Ltd.
7-day visitors to each marketplace page
Harness-native ECC skills, hooks, rules, MCP conventions, and operator workflows
Anthropic's Claude Code plugins, installed from the claude-plugins-official repository
RuFlo Marketplace: Claude Code native agents, swarms, workers, and MCP tools for continuous software engineering