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

@push.rocks/smartlog

v3.1.10

Published

A minimalistic, distributed, and extensible logging tool supporting centralized log management.

Readme

Smartlog Interactive Console Features Plan

Overview

This document outlines the plan for enhancing the console output capabilities of @push.rocks/smartlog by creating a comprehensive interactive console module. This involves renaming the current ts_source_ora module to ts_source_interactive, implementing our own spinner functionality (removing the ora dependency), and adding new features like progress bars and other interactive elements.

Implementation Steps

1. Rename and Restructure

  • Rename directory from ts_source_ora to ts_source_interactive
  • Update all imports, exports, and references
  • Update package.json exports to reflect new module name
  • Maintain backward compatibility through proper export paths

2. Custom Spinner Implementation

  • Create a native spinner implementation to replace ora dependency
  • Implement spinner frames and animation timing
  • Maintain API compatibility with current spinner methods:
    • text(textArg) - Set text and start spinner
    • stop() - Stop the spinner
    • finishSuccess(textArg?) - Mark as succeeded
    • finishFail(textArg?) - Mark as failed
    • successAndNext(textArg) - Success and start new spinner
    • failAndNext(textArg) - Fail and start new spinner
  • Add spinner customization options (speed, frames, colors)

3. Progress Bar Implementation

  • Create a progress bar component with the following features:
    • Configurable width and style
    • Percentage display
    • ETA calculation
    • Current/total value display
    • Custom formatting
    • Theming support
    • Methods for incrementing and updating

4. Additional Interactive Features

  • Add indeterminate progress indicator
  • Add multi-line status display
  • Add table formatting for structured data
  • Add interactive prompts/confirmations

5. Testing

  • Update existing tests to work with new implementation
  • Add tests for new progress bar functionality
  • Add tests for additional interactive features
  • Ensure consistent behavior across platforms

6. Documentation

  • Update README with examples of new features
  • Add API documentation for all new methods
  • Include usage examples

Implementation Details

Progress Bar API

// Creating a progress bar
const progressBar = new SmartlogProgressBar({
  total: 100,
  width: 40,
  complete: '=',
  incomplete: ' ',
  renderThrottle: 100, // ms
  clearOnComplete: false,
  showEta: true
});

// Updating a progress bar
progressBar.update(50); // Update to 50%
progressBar.increment(10); // Increment by 10
progressBar.complete(); // Mark as complete

Spinner API (maintains compatibility)

// Current API (to be maintained)
const spinner = new SmartlogSourceInteractive();
spinner.text('Loading data');
spinner.finishSuccess('Data loaded successfully');

// New additions
spinner.setSpinnerStyle('dots'); // Change spinner style
spinner.setColor('green'); // Change color

Benefits

  • Remove external dependency (ora) for better control and smaller bundle size
  • Provide more interactive console features for improved user experience
  • Maintain consistent API styling across all smartlog modules
  • Improve testability with custom implementation
  • Enable more advanced terminal interactions