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

@brickert/kerio-connect-api

v0.0.8

Published

An unofficial API wrapper for Kerio Connect Mail Server jsonrpc Admin API.

Readme

kerio-connect-api

An unofficial API wrapper in NodeJS for Kerio Connect mail server.

Notes

Tested on Kerio Connect Linux (using Debian 12 .deb file install) version 10.0.8 Patch 2. You can download it here: http://download.kerio.com/archive/

Under the hood it uses jsonrpc protocol version 2. With session cookies SESSION_CONNECT_WEBADMIN and an X-Token Header for CSRF protection, and a json body

The official documentation can be viewed here: https://manuals.gfi.com/en/kerio/api/connect/admin/reference/index.html

Although the documentation looks hard to read I did find an official PHP library example that helped greatly.

Features

Currently only implemented a very small set of methods for the Administrative API under endpoint /admin/api/jsonrpc

When importing this library a log file is created relative to the where the process is started. E.g. node /opt/kerio/app.js will have a json log file at /opt/kerio/log/kerio.log Generated by the pino package. With also pino-pretty printed to stdout

Installation

Use the package manager npm to install.

npm install @brickert/kerio-connect-api

Usage

A typical quick one-off script can be such as:

import { Kerio } from "@brickert/kerio-connect-api";

var kerio = new Kerio({
    hostname: "192.168.1.1",
    port: 4040,
    endpoint_url: '/admin/api/jsonrpc',
    https: true
}, {
    name: "kerio-connect-api",
    vendor: "Example Inc",
    version: "1.0"
}, {
    logLevel: 'info'
});

try {
    await kerio.login({
        username: "operator",
        password: "foobar"
    });

    let add_host_id = await kerio.IPAddressGroups.addHostToIPAddressGroup("192.168.1.2", "Example Client Name", "My Group Name", true);

    console.log(add_host_id);
    // keriodb://ipaddressgroup/1234-5678-901-2345

} catch (e) {
    console.log(e);
}