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

devbubble

v0.2.0

Published

A development debugging overlay widget with logging API and visual feedback

Readme

DevBubble 🫧

🎉 CURRENT RELEASE - v0.2.0
Panel UI implemented! Complete logging interface with expandable panel. Ready for development use.

DevBubble is a development-only debugging overlay widget that displays logs, errors, and debug information in a beautiful, user-friendly interface during development.

🎯 Core Philosophy: DevBubble is a display layer - your application detects issues, DevBubble makes them beautiful and accessible.

✅ Current Status (v0.2.0)

  • Logging API - error(), warn(), log(), clear(), getLogs()
  • Visual feedback - Bubble changes color based on log severity
  • Panel UI - Expandable interface for viewing detailed logs
  • Smart storage - FIFO system with automatic cleanup
  • TypeScript + ES/UMD builds - Full type safety
  • Comprehensive tests - 50 tests covering all functionality

🚀 Current API (v0.2.0 - Available Now!)

Available Now

import { init, error, warn, log, clear, getLogs } from 'devbubble';

// Initialize DevBubble (call once)
init(); // Uses default position (bottom-right)
// or customize position
init({ position: 'top-left' }); // 'top-left', 'top-right', 'bottom-left', 'bottom-right'

// Simple usage
error('Email validation failed');
warn('Deprecated API used');
log('User logged in', { userId: 123 });

// With rich context
error('Database connection failed', {
  description: 'Could not connect after 3 retries',
  database: 'users',
  retryCount: 3
});

// Clear logs when needed
clear();

// Get all stored logs
const logs = getLogs(); // Returns LogEntry[]

Visual States & Panel

  • 🔴 Red bubble - Errors present
  • 🟡 Yellow bubble - Warnings (no errors)
  • 🔵 Blue bubble - Info logs only
  • Gray bubble - No logs
  • 📋 Click bubble - Opens expandable panel with detailed logs

🎯 Installation

npm install devbubble
# or
yarn add devbubble
# or
pnpm add devbubble

🚀 Quick Start

import { init, error, warn, log, clear, getLogs } from 'devbubble';

// Initialize once in your app
init();

// The bubble appears automatically when you log something
error('Email validation failed');
warn('Deprecated API used');
log('User logged in', { userId: 123 });

// Click the bubble to see detailed logs in the panel

🎨 Development

This project uses:

  • pnpm for package management
  • Vite for building and development
  • TypeScript for type safety
  • Storybook for component development

Setup

git clone https://github.com/nascjoao/devbubble
cd devbubble
pnpm install

Development Scripts

pnpm dev          # Start Vite development server
pnpm build        # Build library for production
pnpm test         # Run tests with coverage
pnpm test:run     # Run tests once
pnpm storybook    # Start Storybook development server

🎯 How It Works

import { init, error } from 'devbubble';

// 1. Initialize DevBubble once
init();

// 2. Your app detects a problem
if (!email.includes('@')) {
  
  // 3. Report to DevBubble with clear summary
  error('Email validation failed', { 
    description: 'Email must contain @ symbol',
    field: 'email',
    value: email,
    component: 'UserForm' 
  });
  
  // 4. DevBubble displays it visually
  // - Bubble appears and turns red to indicate errors
  // - Click bubble to see detailed logs in expandable panel
}

Responsibility split:

  • Your app: Detects issues, validates data, decides what to report
  • DevBubble: Receives, formats and displays information beautifully

📚 Documentation

📖 Roadmap

Next Versions

  • [x] v0.1.0: Basic widget + positioning (completed)
  • [x] v0.2.0: Essential API (error(), warn(), log()) + panel UI + visual feedback (completed - current)
  • [ ] v0.3.0: Advanced filtering, search, and theme customization
  • [ ] v0.4.0: Performance optimization, advanced configuration
  • [ ] v1.0.0: Stable API + comprehensive documentation

Current Implementation Details (v0.2.0)

  • ✅ FIFO storage with 100 log limit (automatic cleanup)
  • ✅ Safe serialization (handles circular references)
  • ✅ Visual severity indication (red/yellow/blue/gray states)
  • ✅ Expandable panel interface with real-time updates
  • ✅ Full TypeScript support with proper types

🤝 Contributing

This project is in active collaborative development! Please read our Contributing Guide to understand the project scope and development workflow.

Quick Start:

  1. Read ARCHITECTURE.md to understand the design principles
  2. Check the current issues
  3. Fork, create a feature branch, and submit a PR

📄 License

MIT © nascjoao


Note: This library is designed for development environments. Make sure to disable it in production builds.