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

sipkit-engine-native

v0.3.0

Published

sipkit SoftphoneEngine over a native SIP stack (baresip sidecar via IPC): plain SIP over UDP/TCP/TLS for desktop shells and Node

Readme

sipkit-engine-native

A SoftphoneEngine for sipkit-core that speaks plain SIP over UDP, TCP or TLS through a native SIP stack (baresip) running as a sidecar. No WebRTC, no WebSocket, no gateway. It is meant for desktop shells (Electron) and Node, where the browser's WebRTC-only transport is not enough.

Softphone (sipkit-core) → NativeSipEngine → transport (IPC / stdio / TCP) → BaresipSidecar → baresip → SIP PBX

Install

npm install sipkit-engine-native sipkit-core

ESM only. You also need a baresip binary (4.x with the ctrl_tcp module). The package ships a reference Docker build in sidecar/ (headless baresip 4.12 with menu, ctrl_tcp, g711).

Quick start

import { createSoftphone } from 'sipkit-core';
import { nativeSipEngine, createBridgeTransport } from 'sipkit-engine-native';

const softphone = createSoftphone({
  config: {
    transportMode: 'native',
    sipServer: 'pbx.example.com:5060',
    sipTransport: 'udp', // 'udp' | 'tcp' | 'tls'
    username: '2001',
    password: '…',
  },
  // A factory: the orchestrator restarts engines on config changes.
  engine: nativeSipEngine({ transport: () => createBridgeTransport(window.sipkitNativeSip) }),
});

On the other side of the bridge (Electron main process, a utility process or plain Node), drive baresip with the Node half of the package:

import { BaresipSidecar } from 'sipkit-engine-native/node';

// `transport` implements NativeSipTransport over your IPC channel (see TransportBase).
new BaresipSidecar(transport, { host: '127.0.0.1', port: 4444 });

Or run it out of process: sipkit-native-sidecar --baresip 127.0.0.1:4444 speaks JSON lines on stdio (spawnSidecarTransport()), or --listen <port> for TCP.

Entry points

| Import | Runs in | What it is | | --- | --- | --- | | sipkit-engine-native | Anywhere core runs (browser-safe, no Node imports) | NativeSipEngine / nativeSipEngine(), the IPC protocol, transports (createBridgeTransport, createMemoryTransportPair), FakeSidecarNetwork for tests | | sipkit-engine-native/node | Node / Electron main only | BaresipSidecar, BaresipControl (ctrl_tcp client), JsonLinesTransport, spawnSidecarTransport, connectTcpTransport | | sipkit-native-sidecar (bin) | Node | Stand-alone sidecar process |

Supported

Register / unregister, outgoing and incoming calls, early media, answer / reject / cancel, hold, local mute, DTMF (RFC 4733 or SIP INFO), blind transfer, extra INVITE headers. Not supported (yet): attended transfer, browser-side media streams (so no local conference mixing; use server conferences), presence, MWI, chat and video.

The engine passes the same engine contract suite (sipkit-core/testing) as the other engines, against FakeSidecarNetwork and against a real Asterisk.

License

MIT. baresip itself is BSD-licensed and is not bundled in this package.