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

chilin

v0.8.0

Published

javascript interface for chilin

Readme

chilin

A javascript Node.js package to interface with chilin.

Quick Start

Connect to a chili Process

const { ChiliConnection } = require("chilin");
const chili = new ChiliConnection({ port: 1800 });
chili.connect((err) => {
  if (err) throw err;
  console.log("connected");
  // send query from here
});

Connect to a TLS-protected chili Process

const { ChiliConnection } = require("chilin");
const chili = new ChiliConnection({ port: 1800, useTLS: true });
chili.connect((err) => {
  if (err) throw err;
  console.log("connected");
  // send query from here
});

Connect to a chili Process with Credentials

const { ChiliConnection } = require("chilin");
const chili = new ChiliConnection({
  port: 1800,
  user: "user",
  password: "password",
});
chili.connect((err) => {
  if (err) throw err;
  console.log("connected");
  // send query from here
});

Send a Sync Query

chili.sync("sum range 10", (err, res) => {
  if (err) throw err;
  console.log("result: ", res);
  // result: 45
});

Send a Sync Function Call

chili.sync(["+", 3, 8], (err, res) => {
  if (err) throw err;
  console.log("result: ", res);
  // result: 11
});

Send an Async Query

chili.asyn("show 99", (err) => {
  if (err) throw err;
});

Send an Async Function Call

chili.asyn(["show", 99], (err) => {
  if (err) throw err;
});

Subscribe

chili.on("upd", (table, data) => {
  console.log(table, data);
});

chili.sync("sub[`trade`quote]", (err, _res) => {
  if (err) throw err;
});

Close chili Connection

chili.close(() => {
  console.log("closed");
});

Data Types

Deserialization

Deserialization of i64/u64 and timestamp can be controlled by ChiliConnection arguments useBigInt and includeNanosecond.

Atom

| chili type | javascript type | | ---------- | -------------------------------------------------- | | boolean | Boolean | | u8 | Number | | i16 | Number | | i32 | Number | | i64 | if useBigInt is true then BigInt else Number | | f32 | Number | | f64 | Number | | string | String | | symbol | String | | date | Date | | time | String | | datetime | Date | | timestamp | if includeNanosecond is true then String else Date | | duration | String | | function | String |

Series (Vector)

| chili type | javascript type | | ----------- | ------------------------------------------------------ | | boolean | boolean[] | | u8 | number[] | | i8 | number[] | | i16 | number[] | | u16 | number[] | | i32 | number[] | | u32 | number[] | | i64 | if useBigInt is true then bigint[] else number[] | | u64 | if useBigInt is true then bigint[] else number[] | | f32 | number[] | | f64 | number[] | | date | Date[] | | time | string[] | | datetime | Date[] | | timestamp | if includeNanosecond is true then string[] else Date[] | | duration | string[] | | string | string[] | | categorical | string[] |

Collection

| chili type | javascript type | | ---------- | --------------- | | list | Array | | dict | Map | | dataframe | Table |

Serialization

Atom

| javascript type | chili type | | --------------- | -------------------------------- | | Boolean | boolean | | BigInt | i64 | | Number | i64 if isInteger(value) else f64 | | String | string | | Date | datetime | | null | null |

Collection

| javascript type | chili type | | ------------------- | ---------- | | Array | list | | Table(apache-arrow) | dataframe | | Map or Object | dict |