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

@cognisos/liminal

v2.5.1

Published

Liminal — transparent LLM context compression proxy

Downloads

477

Readme

@cognisos/liminal

Transparent LLM context compression proxy. Liminal sits between your AI coding tools and the LLM API, compressing context to save tokens, reduce costs, and extend effective context windows — all without changing your workflow.

Install

npm install -g @cognisos/liminal

Quick Start

liminal init       # Guided setup — auth, tool detection, config
liminal start      # Start the compression proxy
liminal            # Launch the TUI dashboard

Features

  • Zero-config compression — Routes through Claude Code, Codex, Cursor, and OpenAI-compatible tools automatically
  • TUI dashboard — Run liminal to launch a full-screen live dashboard with stats, config, and logs
  • Setup wizard — 5-step guided setup with verification and error recovery
  • Stats tracking — Session and all-time metrics with token savings, context extension, and cost estimates
  • Cursor hooks — Transparent file compression via preToolUse hooks (no sudo, no TLS hacks)
  • Multi-session — Concurrent session management with circuit breakers and graceful degradation
  • Zero UI dependencies — All terminal rendering uses raw ANSI codes

Commands

liminal                               Launch TUI dashboard
liminal init                          Guided setup wizard
liminal start [-d] [--port PORT]      Start the compression proxy
liminal stop                          Stop the proxy
liminal status                        Quick health check
liminal stats [--json]                Compression metrics & savings
liminal config [--set k=v] [--get k]  View or edit configuration
liminal logs [--follow] [--lines N]   View proxy logs
liminal setup cursor [--teardown]     Install Cursor compression hooks
liminal login                         Log in or create an account
liminal logout                        Log out
liminal trust-ca                      Install CA cert (TLS intercept)
liminal untrust-ca                    Remove CA cert
liminal uninstall                     Remove all Liminal configuration

TUI Dashboard

Run liminal with no arguments to launch the interactive dashboard:

  • Dashboard — Live daemon health, tool routing status, session metrics, recent activity
  • Stats — Token savings, cost impact, context extension (session + all-time)
  • Config — Current configuration at a glance
  • Logs — Colorized live tail of daemon logs

Navigate with arrow keys or Tab. Press q to exit.

How It Works

  1. Proxy — Liminal runs a local HTTP proxy (default port 3141)
  2. Intercept — Your AI tool sends API requests through the proxy
  3. Compress — RSC (Recursive Semiotic Computation) normalizes and compresses the context
  4. Forward — Compressed request goes to the upstream LLM API
  5. Learn — Patterns are learned over time to improve compression

Supported protocols: Anthropic Messages API, OpenAI Chat Completions, OpenAI Responses API.

Configuration

Config is stored at ~/.liminal/config.json. Key settings:

| Key | Default | Description | |-----|---------|-------------| | port | 3141 | Proxy listen port | | compressionThreshold | 100 | Min tokens to compress | | learnFromResponses | true | Learn patterns from LLM responses | | latencyBudgetMs | 10000 | Max compression time before fallback | | enabled | true | Global compression toggle |

Requirements

  • Node.js >= 18.0.0
  • A Cognisos account (created during liminal init)

License

MIT