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

tauq

v0.2.0

Published

Tauq (τq): Token-efficient data notation - 49% fewer tokens than JSON overall, 54% for flat data

Readme

Tauq for JavaScript/TypeScript

44% fewer tokens than JSON overall. 54% fewer for flat data. Verified with tiktoken.

Tauq (τq) is a token-efficient data notation built for the AI era. This package provides WebAssembly bindings for Node.js and browsers.

Installation

npm install tauq

Usage

const tauq = require('tauq');

// Parse Tauq to JavaScript object
const data = tauq.parse(`
!def User id name email
1 Alice [email protected]
2 Bob [email protected]
`);
console.log(data);
// [{ id: 1, name: "Alice", email: "[email protected]" }, ...]

// Convert Tauq to JSON string
const json = tauq.to_json(`
name Alice
age 30
`);
// '{"name":"Alice","age":30}'

// Execute TauqQ (query language)
const result = tauq.exec(`
!set greeting "Hello"
!emit echo $greeting
`, false); // false = not safe mode

// Minify Tauq
const minified = tauq.minify(`
!def User id name
1 Alice
2 Bob
`);
// "!def U id name; 1 Alice; 2 Bob"

Streaming Support (AI Era Integration)

Tauq provides a TauqStream for processing data chunk-by-chunk. This is essential for LLM applications that need to process or display data as tokens arrive from the server.

const stream = new tauq.TauqStream();

// Simulate arriving chunks (e.g., from an LLM response)
const chunk1 = '!def U name; "Al';
const chunk2 = 'ice"; "Bo';
const chunk3 = 'b"';

console.log(stream.push(chunk1)); // []
console.log(stream.push(chunk2)); // [{ name: "Alice" }]
console.log(stream.push(chunk3)); // [{ name: "Bob" }]
console.log(stream.finish());     // []

Binary Format (TBF)

For maximum size reduction, use the binary format:

// Convert Tauq to TBF bytes (Uint8Array)
const bytes = tauq.to_tbf(`!def U name; Alice; Bob`);

// Convert TBF back to Tauq string
const tauqStr = tauq.tbf_to_tauq(bytes);

API

parse(input: string): any

Parse Tauq notation to a JavaScript value.

exec(input: string, safeMode: boolean): any

Execute TauqQ (Tauq Query) and return the result.

  • safeMode: true disables shell commands (!emit, !pipe, !run)

minify(input: string): string

Compress Tauq to single-line format.

stringify(value: any): string

Convert a JavaScript value to Tauq notation.

to_json(input: string): string

Parse Tauq and return as JSON string.

to_tbf(input: string): Uint8Array

Encode Tauq or JSON string to Tauq Binary Format.

tbf_to_tauq(data: Uint8Array): string

Decode TBF bytes to Tauq notation.

new TauqStream()

Class for incremental stream parsing.

  • .push(chunk: string): any[] - Returns array of completed objects from this chunk.
  • .finish(): any[] - Flushes remaining objects.

TypeScript

Type definitions are included:

import * as tauq from 'tauq';

const stream = new tauq.TauqStream();
const objects = stream.push('key val');

Browser Usage

For browser usage, build with web target:

npm run build:web

Then import in your bundler:

import init, { parse, stringify } from 'tauq';

await init();
const data = parse('key value');

License

MIT