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

@girik/cti

v1.1.0

Published

Girik CTI (Computer Telephony Integration) Node/TypeScript SDK — telephony, calls, CDR, recordings, and real-time call events for the Girik Communication platform.

Readme

@girik/cti

Node/TypeScript SDK for the Girik Communication CTI (Computer Telephony Integration) platform — telephony, call control, CDR, recordings, and real-time call events. This is the reference SDK (Phase 1); other language SDKs port its object model.

Scope: core CTI. See docs/SDK-FEATURES.md for the full feature list and docs/SDK-LOGIC-AND-FLOW.md for architecture and flows.

Install

npm install @girik/cti

Requires Node ≥ 18 (native fetch/WebSocket).

Quick start

import { Girik } from '@girik/cti';

const girik = new Girik({ baseUrl: 'https://cti.girikon.ai' });

// Authenticate (or pass { auth: { token } } to the constructor)
await girik.auth.signin('[email protected]', 'secret');

// Softphone click-to-dial: mint a browser Voice token
const { token, identity } = await girik.telephony.getVoiceToken();

// Pull data (lists are normalized to a Page<T>)
const logs = await girik.callLogs.list({ page: 1, limit: 50 });

// Live call control
await girik.telephony.hold({ cdrId, hold: true });
await girik.telephony.transfer({ transferTo, parentCallSid });

// Real-time events (auto-joins org/user rooms)
girik.realtime.connect();
girik.realtime.on('call:connected:broadcast', (p) => console.log(p));

Auth modes

new Girik({ baseUrl, auth: { token: jwt } });          // pre-obtained JWT
new Girik({ baseUrl, auth: { apiKey: KEY } });         // x-api-key (third-party surface)
new Girik({ baseUrl, auth: { getToken: () => jwt } }); // dynamic / refreshable

Resources

| Namespace | Purpose | |---|---| | girik.auth | signin/signup/password, token management | | girik.telephony | voice token, call/hold/cancel/transfer, numbers, agents, missed calls | | girik.calls | call-record CRUD | | girik.callLogs | historical call logs (paginated) | | girik.cdr | call detail records, legs, AI re-analysis (regenerate) | | girik.recordings | metadata + audio streaming | | girik.webhooks | outbound webhook config + delivery logs | | girik.realtime | Socket.IO call events |

Errors

All API errors extend GirikApiError (.status, .body, .code): AuthError, AuthExpiredError, ForbiddenError, ValidationError, NotFoundError, ConflictError, RateLimitError, TelephonySyncError (502 — record not saved). Network/timeouts throw GirikTransportError.

Develop

npm install
npm run typecheck
npm run build      # tsup → dist (ESM + CJS + d.ts)