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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@tak-ps/node-tak

v11.18.0

Published

Lightweight JavaScript library for communicating with TAK Server

Downloads

2,314

Readme

Lightweight JavaScript library for managing TAK TLS connections for streaming CoT data as well as a typed SDK for performing TAK Server REST API operations

API Documentation

API Documentation for the latest version can be found on our Github Pages Site

Or generated locally with

npm run doc

Installation

NPM

To install node-tak with npm run

npm install @tak-ps/node-tak

or for use with the global CLI:

npm install --global @tak-ps/node-tak

CLI Usage Examples

Initial Setup

The initial run of the CLI will generate a new Connection Profile & Credentials

tak

Once the profile is generated you can specify it with --profile <profile> in any command or if it is not provided it will be interactively requested

Streaming COTs

tak stream

API Operations

Example of a couple different operations:

tak <command> <subcommand>
tak mission list
tak package list

Command Line Args

The following command line args are supported by all or many of the different command modes

Use custom P12 cert file

--auth <p12 file to use>

Output Raw JSON where possible

--format json

Environment Variables

| Variable | Notes | | -------- | ----- | | TAK_P12_PASSWORD | Avoid the P12 Password prompt when using in a script |

SDK Usage Examples

Basic Streaming COT Usage

import TAK from '@tak-ps/node-tak';

const tak = await TAK.connect('ConnectionID', new URL('https://tak-server.com:8089'), {
    key: conn.auth.key,
    cert: conn.auth.cert
});

tak.on('cot', async (cot: CoT) => {
    console.error('COT', cot); // See node-cot library
}).on('end', async () => {
    console.error(`Connection End`);
}).on('timeout', async () => {
    console.error(`Connection Timeout`);
}).on('ping', async () => {
    console.error(`TAK Server Ping`);
}).on('error', async (err) => {
    console.error(`Connection Error`);
});

Basic API Usage

import { TAKAPI, APIAuthCertificate } from '@tak-ps/node-tak'

const api = await TAKAPI.init(new URL('TAK SERVER Marti API & Port'), new APIAuthCertificate(auth.cert, auth.key));

const missions = await api.Mission.list(req.query);

console.error(missions);