No description
  • Python 63.1%
  • JavaScript 28.1%
  • HTML 5.6%
  • CSS 2.1%
  • Shell 0.9%
  • Other 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-03 12:58:30 +00:00
.agents/skills feat(agents): add full-output-enforcement, industrial-brutalist-ui, and redesign-existing-projects skills 2026-09-09 11:30:51 -04:00
.claude/skills feat(agents): add full-output-enforcement, industrial-brutalist-ui, and redesign-existing-projects skills 2026-09-09 11:30:51 -04:00
.forgejo/workflows docs: resolve PR 79 review findings and verify references 2026-09-24 19:29:24 -04:00
.scratch/industrial-brutalist-ui refactor(ui): resolve PR #13 second review (Zone 2 deck selector, visualizer graph, CCTV matrix, unit & timezone fixes) 2026-09-11 09:48:18 -04:00
app refactor(statistics): third-pass P3 follow-ups from PRs #167 and #168 (#227) 2026-10-03 12:58:30 +00:00
docs refactor(statistics): third-pass P3 follow-ups from PRs #167 and #168 (#227) 2026-10-03 12:58:30 +00:00
scripts fix(review): address fifth review of PR 185 2026-10-02 09:19:13 -04:00
tests refactor(statistics): third-pass P3 follow-ups from PRs #167 and #168 (#227) 2026-10-03 12:58:30 +00:00
.env.example fix(server): address review #8 findings, prune dataclass dict shims, add lifecycle lock, type snapshot manifest and system resources, support configurable service account 2026-09-18 10:11:06 -04:00
.gitignore docs(agents): tea CLI and per-branch worktree workflow 2026-09-26 12:11:25 -04:00
.pre-commit-config.yaml fix(tooling): update ruff-pre-commit to v0.16.6 and apply whitespace fixes 2026-09-08 10:25:17 -04:00
AGENTS.md docs(agents): tighten milestone membership wording 2026-10-03 08:34:55 -04:00
check_hikcentral_live.py refactor: enforce code standards, automated pre-commit, agent directives, and docs overhaul 2026-09-08 09:59:50 -04:00
CONTEXT.md refactor(statistics): address pass 1 review findings for PR #227 2026-10-03 08:11:52 -04:00
hikctl feat(cli): system PATH registration across Linux and Windows Server 2019 (#23) 2026-09-22 09:14:24 -04:00
hikctl.cmd feat(server): implement auxiliary server lifecycle CLI, supervisor daemon, remote DB sync, and rollback engine (hikctl) 2026-09-17 12:15:51 -04:00
install_windows_service.ps1 fix(windows): auto-discover Python installation paths in PowerShell installer 2026-08-31 16:30:45 -04:00
pyproject.toml feat(server): implement auxiliary server lifecycle CLI, supervisor daemon, remote DB sync, and rollback engine (hikctl) 2026-09-17 12:15:51 -04:00
README.md docs: audit code coverage and reorganize documentation 2026-09-24 19:03:37 -04:00
requirements-dev.txt refactor: enforce code standards, automated pre-commit, agent directives, and docs overhaul 2026-09-08 09:59:50 -04:00
requirements.txt fix(occupancy): address review follow-ups from PR #53 and #54 (#65, #66) 2026-09-25 14:47:24 -04:00
run.sh feat: configure dedicated OpenAPI AppKey and exact HMAC-SHA256 signature calculation 2026-08-31 10:43:14 -04:00
run_windows.bat feat: add Windows Server runner (run_windows.bat) and auto-start service installer (install_windows_service.ps1) 2026-08-31 16:01:14 -04:00
skills-lock.json feat(agents): add full-output-enforcement, industrial-brutalist-ui, and redesign-existing-projects skills 2026-09-09 11:30:51 -04:00
tailwind.config.js feat(ui): External CDN Deprecation, Standalone Tailwind CLI & Air-Gapped Lockdown (Phase 5) (#19) 2026-09-10 15:15:01 -04:00

HikCentral Professional Gateway & Real-Time Analytics Dashboard

An enterprise integration, access control telemetry, and passenger flow occupancy platform built for HikCentral Professional systems. It bridges HikCentral's dual upstream gateways (Artemis OpenAPI and Bumblebee ISAPI), provides live magnetic sensor audits, tracks mall occupancy with adaptive proportional calibration, and exposes interactive Swagger and API explorer interfaces.


🌟 Key Capabilities

  • 🟢 Real-Time Access Control & Door Telemetry: Observational sensor classification (VERIFIED_SENSOR, SENSORLESS_OPEN, SENSORLESS_JUMPERED), access session lifecycle tracking (CARD_PASS, DOOR_OPEN, DOOR_CLOSE, ALARM_TIMEOUT), and live WebSocket streams.
  • 👥 Passenger Flow & Mall Occupancy Engine: Real-time inside headcount computation from camera counting channels, facility-time business cycles with a configurable reset boundary, and daytime transit bleed compensation.
  • 📐 Adaptive Proportional Calibration Model: Dynamically learns sensor exit multiplier (k) from nocturnal quiet-hour convergence, featuring an automated quarantine engine (AUTO_EXCLUDED) for abnormal operational cycles.
  • 📊 Admin Data Visualizer & Audit Suite: Live time-series analytics, interactive drift charts, historical cycle reconciliation, and high-performance streaming export (CSV/JSON).
  • 🔐 Dual Upstream Gateway Architecture:
    • Artemis OpenAPI: HMAC-SHA256 request signing using AppKey/AppSecret over port 9016/443.
    • Bumblebee ISAPI: Encrypted administrative session negotiation (MD5/AES challenge-response) with automated keepalive pings over port 443.
  • 📖 Interactive API Documentation & Explorer:
    • FastAPI Swagger UI at /docs
    • ReDoc UI at /redoc
    • HikCentral Dual API Explorer at /api-docs (with 189+ parsed Artemis APIs and Bumblebee catalog)
  • 🌐 Dynamic Internationalization (i18n): Instant runtime English/Spanish language toggling across all dashboard views.

🚀 Quick Start & Operations

1. Prerequisites

  • Python 3.11+ (Python 3.14 compatible)
  • SQLite3

2. Automated Host Provisioning (hikctl)

The repository includes hikctl, a unified cross-platform lifecycle supervisor for Linux (systemd) and Windows Server 2019+ (SCM via WinSW v3):

# Linux (Debian / Ubuntu / Systemd)
sudo ./hikctl setup

# Windows Server 2019+ (Elevated PowerShell / CMD)
.\hikctl.cmd setup

The gateway will start on http://localhost:8888 (configurable via APP_PORT).

Tip

Detailed Guides Available:


🛠️ Development, Standards & Testing

Development Dependencies & Pre-Commit

# Install development and linting tools
pip install -r requirements-dev.txt

# Install git pre-commit hooks
pre-commit install

Running Linter & Formatter

# Run Ruff linting and formatting check
./scripts/lint.sh

# Or invoke ruff directly
ruff check .
ruff format --check .

Running Test Suite

pytest

📂 Documentation & Architecture

Comprehensive documentation is available in the docs/ directory: