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

@nisoku/satori-log

v0.1.2

Published

Event-centric observability layer for complex apps.

Readme

Observable Event Logging Library for JavaScript/TypeScript

CI Deploy npm version License: MIT

Documentation | Demo | API Reference


Satori is a powerful observability library that provides structured logging with advanced features like state watching, causal linking, filtering, rate limiting, and persistence.

Features

| Feature | Description | | --------- | ------------- | | Structured Logging | Log events with levels, scopes, tags, and state | | State Watching | Automatically log when values change | | Causal Linking | Track cause-and-effect relationships between events | | Tags and Filtering | Categorize and query events with powerful filters | | Rate Limiting | Protection against log floods with drop/sample/buffer strategies | | Deduplication | Prevent duplicate events within time windows | | Circuit Breaker | Error recovery and protection for watchers | | Persistence | Store events in memory, localStorage, or IndexedDB | | Self-Monitoring | Track metrics about the logging system itself | | Multi-Runtime | Works in browser, Node.js, Deno, Bun, and edge runtimes |

Quick Start

import { createSatori } from '@nisoku/satori-log';

// Create a Satori instance
const satori = createSatori({
  logLevel: 'info',
  rateLimiting: { enabled: true, maxEventsPerSecond: 100 }
});

// Create a scoped logger
const logger = satori.createLogger('myApp');

// Log events
logger.info('Application started');
logger.warn('Config not found, using defaults');
logger.error('Failed to connect', { state: { error: 'timeout' } });

// Watch for changes
const store = { count: 0 };
logger.watch(() => store.count, 'counter');
store.count++;  // Automatically logs the change!

// Subscribe to events
satori.bus.subscribe((event) => {
  console.log(`[${event.level}] ${event.scope}: ${event.message}`);
});

Installation

npm install @nisoku/satori-log

Satori is available on NPM!

Documentation

| Section | Description | | --------- | ------------- | | Quick Start | Get up and running in 5 minutes | | Configuration | Complete configuration options | | State Watching | Automatic change detection | | Causal Linking | Event relationship tracking | | Filtering | Query and filter events | | Advanced Features | Rate limiting, deduplication, circuit breaker | | API Reference | Complete API documentation | | Filter Functions | Filter API reference | | Examples | Real-world usage patterns |

Demo

Open the live demo in a browser to see Satori in action with an interactive playground.

The demo showcases all major features:

  • Logging at different levels
  • State watching with counters
  • Rate limiting under burst load
  • Deduplication of repeated messages
  • Causal event chains
  • Real-time metrics

Development

Install dependencies

cd Build && npm install

Run tests

cd Build && npm test

Run tests in watch mode

cd Build && npm run test:watch

Type check

cd Build && npm run typecheck

Build

cd Build && npm run build

Build docs

cd ../Docs && npm run build

Project Structure

Satori/
  assets/           # Shared icons and images
  Build/            # Source code and build config
    src/            # TypeScript source
  Demo/             # Interactive demo
  Docs/             # Documentation (docmd)

Contributing

We love contributors! Feel free to open up PRs or issues for any ideas or bugs you find!

License

MIT