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

tciv-client

v0.0.6

Published

HTTP client for TCIV-series intercom systems (TCIV-2+, TCIV-3). Control relays, SIP configuration, DAK provisioning, webcall, audio settings, and camera feeds.

Readme

tciv-client

npm license

TypeScript HTTP client for TCIV-series intercom systems — device administration, network discovery, and CLI.

Zero runtime dependencies · Native fetch (Node 18+) · Tested on TCIV-2+ firmware 9.2.3.0

Trademark Notice: This project is not affiliated with, endorsed by, or sponsored by Zenitel AS. "Zenitel" and "TCIV" are trademarks of their respective owners. This library is an independent tool for authorized administrators to manage their own intercom systems.

Intended Use

This library is intended for system integrators and IT administrators managing TCIV-series intercoms they own or are authorized to administer. All operations require valid device credentials.

Table of Contents


Install

npm install tciv-client

Quick Start

import { TcivClient } from 'tciv-client';

const z = new TcivClient({ host: '192.168.1.143' });

// Check if device is reachable
await z.isReachable();           // true

// Get device info
const info = await z.getDeviceInfo();
console.log(info.model);         // "TCIV-2+"

// Open the door for 7 seconds
await z.activateRelay({ timer: 7 });

// Read audio settings
const audio = await z.getAudioSettings();
console.log(audio.speaker.gain); // 0

// Set speaker volume to +3 dB
await z.setAudioSettings({ speaker: { gain: 3 } });

CLI

The tciv CLI is included for hardware testing and debugging.

npx tciv <command> [options]

Device Discovery

tciv scan

# 🔍 Scanning for TCIV devices...
#
#   🟢 192.168.1.143
#      MAC: 00:13:cb:28:35:ca
#      Model: TCIV-2+
#      Firmware: 9.2.3.0
#      Hostname: zenitel01
#      Mode: sip
#      Camera: Yes
#
# Found 1 device(s).

Device Information

tciv info -h 192.168.1.143

# 📋 Device info:
#   Model:          TCIV-2+
#   System:         Turbine Compact - Video Plus
#   Firmware:       9.2.3.0
#   MAC:            00:13:cb:28:35:ca
#   Serial:         22040000
#   Hostname:       zenitel01
#   Mode:           sip
#   Camera:         Yes
#   Webcall:        Enabled
#   SIP Registered: Yes

Call Status & Relays

tciv status -h 192.168.1.143        # Full status
tciv relay -h 192.168.1.143          # Open door (relay1, 3s)
tciv relay -h 192.168.1.143 --id gpio2 --timer 5  # GPIO output
tciv relay -h 192.168.1.143 --off    # Deactivate
tciv call 122 -h 192.168.1.143       # Place SIP call
tciv stop -h 192.168.1.143           # Hang up

SIP Configuration

tciv sip get -h 192.168.1.143        # Read SIP config
tciv sip set -h 192.168.1.143 \
  --domain my-trunk.sip.twilio.com \
  --number station01

Webcall API Management

tciv webcall -h 192.168.1.143           # Check status
tciv webcall enable -h 192.168.1.143    # Enable HTTP API
tciv webcall disable -h 192.168.1.143   # Disable

Audio Settings

# Read current audio config
tciv audio -h 192.168.1.143

# 🎵 Audio settings for 192.168.1.143:
#
#   Speaker:     -5 dB  (range: -10 to +13)
#   Mic:         0 dB   (range: -10 to +10)
#   AEC:         ✅ ON  (moderate)
#   ANC:         ✅ ON  (moderate)
#   DRC:         ❌ OFF (5 dBA)
#   AVC:         ❌ OFF
#   FESS:        ❌ OFF (threshold: -60 dBFS)
#   Mode:        Voice

# Adjust speaker and mic
tciv audio set -h 192.168.1.143 --speaker 3 --mic 3

# Toggle DSP features
tciv audio set -h 192.168.1.143 --aec-on --drc-on --anc-off

# Backup raw audio config as JSON
tciv audio backup -h 192.168.1.143 -o audio-backup.json

Config Backup & Restore

tciv backup -h 192.168.1.143 -o backup.tar.gz
tciv restore backup.tar.gz -h 192.168.1.143

Video

tciv video -h 192.168.1.143
# 📷 Video URLs:
#   MJPG:  http://192.168.1.143/mjpg/video.mjpg
#   RTSP:  rtsp://192.168.1.143:554/1/RTSP

Call Button (DAK) Configuration

tciv dak get -h 192.168.1.143
tciv dak set --number portia-ae3c -h 192.168.1.143

Downloads config → modifies XML → re-uploads → reboots. Zero external dependencies.

Full Device Provisioning

One command to configure a factory-reset intercom:

tciv provision -h 192.168.1.143 \
  --domain testing-mo16m3gw.sip.twilio.com \
  --sip-user zenitel01 \
  --sip-pass 'your-sip-password' \
  --number portia-ae3c

# ✅ Provisioned! Device is rebooting (~30s).

Device Reboot

tciv reboot -h 192.168.1.143

Factory Reset

# Full reset (IP → 169.254.1.100)
tciv factory-reset -h 192.168.1.143

# Reset but keep current IP settings (recommended)
tciv factory-reset -h 192.168.1.143 --keep-ip

# Reset with DHCP enabled
tciv factory-reset -h 192.168.1.143 --dhcp

Mode (SIP/Edge)

# Read current mode
tciv mode -h 192.168.1.143
# 📡 Current mode: SIP (sip)

# Switch to SIP mode (reboots device, waits ~40s)
tciv mode set sip -h 192.168.1.143

# Switch to Edge mode
tciv mode set exc -h 192.168.1.143

| Mode value | Description | |------------|-------------| | sip | SIP mode (required for Portia) | | dip | ICX-AlphaCom | | exc | Edge | | srv | Edge Controller |

CLI Options

| Flag | Short | Description | Default | |------|-------|-------------|---------| | --host | -h | Device IP address | required | | --user | -u | Web UI username | admin | | --pass | -p | Web UI password | alphaadmin (change on first login) | | --id | | Relay ID (relay1, gpio1gpio6) | relay1 | | --timer | | Relay timer (seconds) | 3 | | --timeout | | Scan timeout (ms) | 5000 | | --off | | Deactivate relay | | | --domain | | SIP domain | | | --number | | SIP number / agent number | | | --proxy | | Outbound proxy | | | --transport | | SIP transport (udp/tcp/tls) | | | --out | -o | Backup output filename | ipst_config.tar.gz | | --no-reboot | | Skip reboot after DAK set | | | --sip-user | | SIP auth username (provision) | | | --sip-pass | | SIP auth password (provision) | | | --keep-ip | | Factory reset: keep IP settings | | | --dhcp | | Factory reset: enable DHCP | |


API

TcivClient

import { TcivClient } from 'tciv-client';

const z = new TcivClient({
  host: '192.168.1.143',
  user: 'admin',         // default
  password: 'alphaadmin', // default
  timeout: 5000,          // ms, default
});

Connectivity

const reachable = await z.isReachable(); // true | false

Device Info

const info = await z.getDeviceInfo();
// { model, firmware, mac, ip, hostname, serialNumber, hardwareType,
//   mode, hasCamera, sipDomain, sipRegistered, webcallEnabled, ... }

Webcall (Place / Stop / Answer calls)

await z.placeCall('122');
await z.stopCall();
await z.answerCall();
const status = await z.getCallStatus(); // 'Idle' | 'Calling' | 'Connected' | 'Ringing'

Relay / Door Control

await z.activateRelay({ relayId: 'relay1', timer: 3 });
await z.activateRelay({ relayId: 'gpio2', timer: 5 });
await z.deactivateRelay('relay1');
const relays = await z.getRelayStatus();
// { relay1: 'Deactivated', gpio1: ..., gpio6: ... }

Relay IDs: relay1, gpio1gpio6

SIP Configuration

const sip = await z.getSIPConfig();
// { displayName, directoryNumber, domain, authUsername, outboundProxy, transport }

await z.setSIPConfig({ domain: 'my-trunk.sip.twilio.com' });
await z.reboot(); // Required for SIP changes

Webcall Management

await z.enableWebcall();
await z.disableWebcall();

Firmware ≥4.11.3.1 disables webcall by default. Enable it for relay/call HTTP control.

Config Backup & Restore

const backup = await z.downloadConfig();
fs.writeFileSync('backup.tar.gz', backup);

const tarGz = fs.readFileSync('backup.tar.gz');
await z.uploadConfig(tarGz);
await z.reboot();

Video

z.getMJPGUrl();   // "http://192.168.1.143/mjpg/video.mjpg"
z.getRTSPUrl();   // "rtsp://192.168.1.143:554/1/RTSP"
z.getVideoAuth(); // { user: 'admin', password: '...' }

Call Button (DAK) Configuration

const dak = await z.readDAK();
// { number: '222', domain: 'sip.twilio.com', raw: '[email protected]' }

await z.configureCallButton('portia-ae3c');
// Downloads backup → modifies XML → uploads → reboots (~2s)

Full Device Provisioning

await z.provisionDevice({
  sipDomain: 'testing-mo16m3gw.sip.twilio.com',
  sipAuthUser: 'zenitel01',
  sipAuthPassword: 'your-sip-password',
  agentNumber: 'portia-ae3c',
  enableWebcall: true,   // default
  autoAnswer: true,      // default
});

Audio Settings

Read and write the full audio configuration — speaker/mic gain, echo cancellation, noise suppression, compression, and automatic volume control.

The config endpoint requires the complete JSON payload. setAudioSettings() handles this automatically — it reads, merges your changes, and writes back.

const audio = await z.getAudioSettings();
// { speaker, mic, aec, anc, drc, avc, fess, lineOut, mode }

await z.setAudioSettings({ speaker: { gain: 3 } });
await z.setAudioSettings({ mic: { gain: 3 } });
await z.setAudioSettings({ drc: { enabled: true, gain: 8 } });
await z.setAudioSettings({
  speaker: { gain: 2 },
  aec: { enabled: true, mode: 'aggressive' },
});

// Backup raw config
const raw = await z.getAudioSettingsRaw();
fs.writeFileSync('audio-backup.json', JSON.stringify(raw, null, 2));

| Setting | Property | Range | Description | |---------|----------|-------|-------------| | Speaker Volume | speaker.gain | -10 to +13 dB | Playback level | | Mic Sensitivity | mic.gain | -10 to +10 dB | Input level | | Echo Cancel | aec.enabled / .mode | moderate · aggressive | Removes speaker bleed from mic | | Noise Suppress | anc.enabled / .mode | moderate · aggressive | Filters ambient noise | | Compression | drc.enabled / .gain | 0–20 dBA | Normalizes volume | | Auto Volume | avc.enabled | bool | Adjusts to ambient noise | | Squelch | fess.enabled / .threshold | -92–0 dBFS | Silences weak signals | | Line Out | lineOut.gain | -20 to +20 dB | External speaker |

Reboot

await z.reboot(); // ~30 seconds offline

Factory Reset

// Full reset (static IP 169.254.1.100)
await z.factoryReset('full');

// Reset but keep current IP (recommended)
await z.factoryReset('keep-ip');

// Reset with DHCP
await z.factoryReset('dhcp');

| Mode | Behavior | |------|----------| | full | All defaults, IP → 169.254.1.100 | | dhcp | All defaults, DHCP enabled | | keep-ip | All defaults, current IP preserved |

Mode

// Read current mode
const mode = await z.getMode();
// 'sip' | 'dip' | 'pulse' (Edge) | 'srv'

// Switch to SIP mode
await z.setMode('sip');
await z.applyChanges(); // triggers reboot
await z.waitForReboot(); // polls until online (~40s)

Wait for Reboot

// Poll until device comes back online (default 60s timeout)
const online = await z.waitForReboot(60000, 3000);
// true = device is back, false = timeout

scanNetwork()

import { scanNetwork } from 'tciv-client';

const devices = await scanNetwork({ timeout: 5000 });
// [{ ip, mac, model, firmware, hasCamera, hostname, mode }]

| Strategy | Method | Speed | |----------|--------|-------| | arp-oui | ARP table + MAC prefix 00:13:CB | Fast | | http-probe | Probe every IP for tciv-fingerprint | Thorough |


Supported Hardware

| Model | Camera | Relay | Webcall | Audio | Firmware | |-------|--------|-------|---------|-------|----------| | TCIV-2+ | ✅ | ✅ relay1 + gpio1–6 | ✅ | ✅ | 9.2.3.0 | | TCIV-3+ | ✅ | ✅ | ✅ | ✅ | Expected | | TCIS-2 | — | ✅ | ✅ | ✅ | Expected |

HTTP API Reference

All endpoints require valid administrator credentials via HTTP Basic Auth.

| Endpoint | Method | Purpose | |----------|--------|---------| | /goform/zForm_header | GET | Device metadata | | /goform/zForm_stn_info | GET | Station info table | | /goform/zForm_webcall | GET/POST | Webcall + relay control | | /goform/zForm_sip_configuration | GET | SIP config | | /goform/zForm_save_changes | POST | Write SIP config | | /goform/zForm_audio_configuration | GET | Audio config (JSON) | | /goform/zForm_auto_config | POST | Write audio/DSP config | | /goform/zForm_config_backup | POST | Config restore (upload) | | /ipst_config.tar.gz | GET | Config backup download | | /goform/zForm_system_prefs | POST | Reboot device | | /goform/zForm_send_cmd | POST | Factory reset (full/DHCP/keep-ip) | | /mjpg/video.mjpg | GET | Live MJPG stream |

License

Apache-2.0