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

vue-cot

v0.1.1

Published

Vue 3 composables and parser for Cursor on Target (CoT) tactical messaging

Readme

vue-cot

A focused Vue 3 library for Cursor on Target (CoT) — the XML messaging protocol used by NATO/US tactical systems such as ATAK, WinTAK and TAK Server.

Status: feature-complete v0.1. A well-scoped, self-contained library — not a work in progress. Actively maintained.

Live demo: vue-cot-demo.vercel.app — runs entirely in the browser with a built-in mock CoT feed.

Related packages (@vue-tactical/map, @vue-tactical/symbols, @vue-tactical/coords) would be interesting to build but are not currently planned — open an issue if you'd like to collaborate. PRs welcome.

What it does

vue-cot connects to a live CoT stream over a WebSocket, parses each tactical message into typed objects, and keeps a reactive store of entities (units, vehicles, sensors) that updates and expires itself in real time — ready to render in any Vue 3 app.

WebSocket stream  ->  connection layer  ->  parse CoT XML  ->  reactive entity store  ->  your Vue app
   (CoT XML)          reconnect/keepalive    XML -> typed         Map<uid, Entity> + TTL     list / detail

Features

  • useWebSocket / useReconnectingWebSocket — WebSocket lifecycle with exponential backoff + jitter.
  • useTakConnection — application-level keepalive (ping/zombie detection) and newline-delimited CoT framing.
  • useCoTStream — parses framed CoT into typed CoTEvent objects.
  • useEntityStore — reactive Map<uid, Entity> with single-rAF TTL expiry and derived projections.
  • parseCoT / serializeCoT — pure, fully-typed, unit-tested CoT XML parser/serialiser.

Install

npm install vue-cot vue

vue (3.5+) is a peer dependency.

Usage

import { useCoTStream, useEntityStore } from 'vue-cot'

const { upsert, list, count } = useEntityStore()
const { status, reconnect } = useCoTStream('wss://your-tak-server:8087', {
  onEvent: upsert,
})
// `list` is a reactive array of live entities; `status` reflects the connection.

Not in scope for v1

mTLS client certificates, a Web Worker parser, the CoT Protobuf variant, TAK Server federation, mission packages, and map/symbology rendering. These may come in later releases if there's demand — file an issue.

Links

  • Live demo: https://vue-cot-demo.vercel.app/
  • Repository & issues: https://github.com/belblue/vue-cot
  • Contributing: issues and PRs welcome; safe fixes and dependency updates get merged, larger changes are best discussed in an issue first.

License

MIT