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

@tracehound/core

v1.4.3

Published

Deterministic runtime security buffer for high-velocity APIs

Readme

@tracehound/core

Security buffer system for threat quarantine. Part of the Tracehound Cyberimmune System.

Status

Phase 1-4 Complete:

  • Phase 1: Foundation (Types, Utils)
  • Phase 2: Evidence, Quarantine, AuditChain
  • Phase 3: Agent, RateLimiter
  • Phase 4: HoundPool, Scheduler, Watcher, BinaryCodec

Installation

pnpm add @tracehound/core

Core Components

1. Agent (IAgent)

The main entry point. Orchestrates the threat detection flow.

  • Stateless: Depends on injected services.
  • Fail-safe: Defaults to "clean" on error.
import { createTracehound } from '@tracehound/core'

const th = createTracehound({ maxPayloadSize: 1_000_000 })
const result = th.agent.intercept(scent)

2. Hound Pool (IHoundPool)

Process-separated child worker pool for evidence processing.

  • Containment-Oriented: Uses process separation and hardening flags; OS sandboxing depends on deployment policy.
  • Fire-and-Forget: Agent never awaits detection.
  • Resilient: Auto-replenish on crash/timeout.
// Activate analysis (returns immediately)
houndPool.activate(evidence)

3. Watcher (IWatcher)

Pull-based observability.

  • Passive: Does not emit events (no EventEmitter).
  • Snapshot: Provides immutable view of system state.
const snapshot = watcher.snapshot()
console.log(`Threats: ${snapshot.threats.total}`)

4. Scheduler (IScheduler)

Background task management.

  • Jittered: Prevents timing attacks.
  • Load-Aware: Skips ticks if system is busy (skipIfBusy).

Usage Example

import { createTracehound } from '@tracehound/core'

// 1. Create Tracehound Instance
const th = createTracehound({
  maxPayloadSize: 1_000_000,
  quarantine: { maxCount: 1000 },
  rateLimit: { windowMs: 60000, maxRequests: 100 },
  houndPool: { poolSize: 4 }, // Automatically provisions process-separated workers
})

// 2. Intercept Traffic
const result = th.agent.intercept({
  id: 'req-1',
  source: '192.168.1.1',
  payload: { user: 'input' },
  timestamp: Date.now(),
})

if (result.status === 'quarantined') {
  console.log('Threat quarantined:', result.handle.signature)
}

Architecture

[Traffic] → (Agent) → [RateLimiter]
               │
               ▼
[EvidenceFactory] → (Hash/Compress) → [Evidence]
                                         │
                                         ▼
                                   [Quarantine]
                                         │
                                         ▼
                                    (HoundPool) → [Analysis]

License

Open-Core — this package is the open-source substrate of the Tracehound ecosystem.