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

devpulse

v1.1.0

Published

A powerful terminal-based focus timer with enhanced notifications

Readme

🧠 DevPulse - Enhanced Terminal Focus Tracker

A powerful, terminal-based focus timer with multiple notification methods to ensure you never miss when your session completes!

✨ Features

🔥 Core Functionality

  • Focus sessions - Pomodoro-style focused work periods
  • Break timers - Reminder for rest periods
  • Session logging - Track your daily and weekly progress
  • Beautiful terminal UI - Colorful, animated spinner with real-time countdown

🚨 Enhanced Notifications (NEW!)

When your timer completes, DevPulse uses multiple notification methods for maximum impact:

  1. 🔊 System Audio Alerts

    • Multiple sound methods (PulseAudio, ALSA, SoX, speaker-test)
    • Synthetic beep sounds as fallback
    • Optional voice announcements (espeak/festival)
  2. 🖥️ Visual Notifications

    • Colorful terminal flash alerts
    • Desktop notifications (node-notifier)
    • Full-screen browser popup with animations
  3. 📱 Browser Alarm Page

    • Animated gradient background
    • Confetti effects
    • Multiple audio sources
    • Auto-closing popup
  4. ⚡ Terminal Features

    • Multiple terminal bells
    • Vibrant colored alerts
    • ASCII celebration messages

🚀 Installation

Global Installation (Recommended)

Install from npm/Bun registry:

# Using Bun (recommended)
bun add -g devpulse

# Or using npm
npm install -g devpulse

Install from source:

git clone <repository-url>
cd devpulse
bun install
bun link

Local Development

git clone <repository-url>
cd devpulse
bun install

📖 Usage

Global Commands (After Installation)

# Quick test (1 minute)
devpulse focus 1

# Standard sessions
devpulse focus 25      # 25-minute Pomodoro
devpulse focus 45      # 45-minute extended focus
devpulse break 5       # 5-minute break

# Check your progress
devpulse log           # Today's sessions
devpulse report        # Weekly summary

# Get help
devpulse --help
devpulse --version

Local Development Commands

# Start a 25-minute focus session
bun run src/index.ts focus

# Start a custom focus session (e.g., 45 minutes)
bun run src/index.ts focus 45

# Start a 5-minute break
bun run src/index.ts break 5

# View today's sessions
bun run src/index.ts log

# Weekly summary
bun run src/index.ts report

Testing Notifications

# Test all notification methods
bun run test-notifications.ts

# Test just the sound alerts
bun run test-sound

# Quick timer test (6 seconds)
bun run test-timer

🛠️ Requirements

  • Bun runtime (v1.2.14+)
  • Linux desktop environment (for full notification support)
  • Audio system (PulseAudio/ALSA recommended)
  • Web browser (for enhanced alarm popup)

📁 Project Structure

devpulse/
├── src/index.ts              # Main application
├── alerts/
│   ├── alarm.html            # Enhanced browser notification
│   └── play-sound.sh         # Multi-method sound script
├── data/logs.json            # Session history
└── test-notifications.ts    # Notification test suite

🎨 Notification Customization

The notification system is designed to work across different Linux environments:

  • Desktop environments: Full visual + audio notifications
  • Server/headless: Terminal + audio notifications
  • Minimal systems: Terminal bells + text alerts

🔧 Troubleshooting

No sound?

  • Check audio system: speaker-test -t sine -f 800 -l 1
  • Install audio tools: sudo apt install alsa-utils pulseaudio-utils sox

No desktop notifications?

  • Install notification daemon: sudo apt install notification-daemon

Browser popup not opening?

  • Ensure you have a web browser installed
  • Check if xdg-open works: xdg-open https://google.com

🎯 ✅ SIMPLE COMMANDS

🚀 Global Commands (After bun add -g devpulse):

# Quick test (1 minute)
devpulse focus 1

# Standard sessions
devpulse focus 25      # 25-minute Pomodoro focus
devpulse focus 45      # 45-minute extended focus
devpulse break 5       # 5-minute break

# Default sessions
devpulse focus         # 25-minute focus (default)
devpulse break         # 25-minute break (default)

# Check progress
devpulse log           # Today's sessions
devpulse report        # Weekly summary

# Help & info
devpulse --help
devpulse --version

🚀 Local Development Commands:

# Quick test (1 minute)
bun focus1

# Standard sessions
bun focus25        # 25-minute Pomodoro focus
bun focus45        # 45-minute extended focus
bun break5         # 5-minute break

# Default sessions
bun focus          # 25-minute focus (default)
bun break          # 25-minute break (default)

📊 Check Your Progress:

# Global install
devpulse log       # Today's sessions
devpulse report    # Weekly summary

# Local development
bun devlog         # Today's sessions
bun devreport      # Weekly summary

🧪 Quick Testing:

# Global install
devpulse focus 0.1     # 6-second test

# Local development
bun test           # Test all notifications
bun test-sound     # Test sound alerts only

📱 What You Get When Timer Completes:

  • 🎨 Colorful terminal alerts
  • 🔔 8 terminal bells (extra loud!)
  • 🔊 System beep sound (1000Hz tone)
  • 📱 Desktop notification (if available)
  • 🌐 Browser alarm popup (if display available)
  • Celebration messages

🎯 Quick Start:

# Install globally first
bun add -g devpulse

# Try this first to test all notifications:
devpulse focus 1

💡 Alternative Commands:

# If you prefer longer commands or local development:
bun run src/index.ts focus 1       # 1-minute test
bun run src/index.ts focus 25      # 25-minute focus
bun run src/index.ts break 5       # 5-minute break
bun run src/index.ts log           # Today's sessions
bun run src/index.ts report        # Weekly summary

Built with ❤️ using Bun - the fast all-in-one JavaScript runtime.