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

@pixora-dev-ai/dev-sentinel

v1.0.0

Published

πŸ›‘οΈ Enterprise-grade observability SDK for React applications. Real-time diagnostics with 14+ specialized packs: Network Intelligence, Security Guards, Privacy Protection, Code Quality Analysis, Device Monitoring, and more.

Downloads

4

Readme

πŸ›‘οΈ Dev-Sentinel

npm version License: MIT TypeScript

Enterprise-grade observability SDK for React applications
Real-time diagnostics, intelligent monitoring, and advanced debugging tools for modern web applications.


πŸš€ Why Dev-Sentinel?

Dev-Sentinel is not just another logging library. It's a comprehensive observability platform that gives you:

βœ… 14+ Specialized Monitoring Packs - Network, Security, Privacy, Performance, Testing, and more
βœ… Zero Runtime Overhead in Production - Only runs in development mode
βœ… Smart AI-Assisted Analysis - Detect code smells, patterns, and anti-patterns automatically
βœ… Visual Dev Panel - Beautiful UI to inspect all diagnostics in real-time
βœ… Export & Share - Download logs as JSON for debugging with your team
βœ… Framework Agnostic Core - Works with React, Vite, and modern build tools
βœ… Privacy-First - Built-in PII redaction and sensitive data protection


πŸ“¦ Installation

# npm
npm install @prepilot/dev-sentinel

# yarn
yarn add @prepilot/dev-sentinel

# pnpm
pnpm add @prepilot/dev-sentinel

⚑ Quick Start

1. Basic Setup

import { devSentinel } from '@prepilot/dev-sentinel';

// Log an event
devSentinel.log('network_request', {
  url: '/api/users',
  method: 'GET',
  status: 200,
  duration: 234
});

// Subscribe to events
const unsubscribe = devSentinel.subscribe((event) => {
  console.log('New event:', event);
});

2. With React Components

import { useEffect } from 'react';
import { devSentinel } from '@prepilot/dev-sentinel';

function App() {
  useEffect(() => {
    // Hydrate logs from IndexedDB
    devSentinel.hydrateFromDb();
    
    // Subscribe to runtime events
    const unsubscribe = devSentinel.subscribe((event) => {
      console.log('Event logged:', event);
    });
    
    return () => unsubscribe();
  }, []);
  
  return <YourApp />;
}

3. Enable Privacy Protection

import { 
  devSentinel, 
  configureDevSentinelRedaction,
  defaultDevSentinelRedactor 
} from '@prepilot/dev-sentinel';

// Use default redactor (removes emails, tokens, passwords, etc.)
configureDevSentinelRedaction(defaultDevSentinelRedactor);

// Or create custom redactor
import { createRedactor } from '@prepilot/dev-sentinel';

const customRedactor = createRedactor({
  piiPatterns: [
    /\b\d{3}-\d{2}-\d{4}\b/g, // SSN
    /\b\d{16}\b/g // Credit cards
  ],
  tokenPatterns: [
    /Bearer\s+[\w-]+/gi,
    /api[_-]?key[\s:=]+[\w-]+/gi
  ]
});

configureDevSentinelRedaction(customRedactor);

πŸ“Š Available Packs

Dev-Sentinel organizes monitoring capabilities into specialized Packs:

| Pack | Description | Key Features | |------|-------------|--------------| | 🌐 Network Pack | API monitoring & diagnostics | Endpoint health, waterfall analysis, retry tracking | | πŸ§ͺ Testing Pack | Runtime test intelligence | Flaky tests, race conditions, coverage gaps | | 🎨 Design Pack | UI/UX quality monitoring | Layout shifts, responsive issues, contrast errors | | πŸ” Secure-UI Pack | Fraud & abuse detection | Click injection, autofill abuse, brute-force detection | | πŸ”’ Privacy Guard Pack | PII protection | Console leaks, storage issues, analytics protection | | πŸ“± Device Pack | Hardware diagnostics | CPU throttling, memory pressure, battery saver | | 🌍 Environment Pack | Runtime environment tracking | OS detection, browser info, WebView detection | | 🧠 Code Smell Pack | AI-powered code analysis | Duplicate logic, props explosion, anti-patterns | | πŸ”„ Regression Pack | Issue tracking & history | Novel issues, fingerprints, frequency spikes | | πŸ”‘ Auth & Session Pack | Authentication flow monitoring | Token issues, logout problems, multi-tab sync | | πŸ€– AI Agent Pack | LLM interaction monitoring | Prompt tracking, hallucination detection, context overhead | | πŸ“ˆ SaaS Metrics Pack | Product analytics | Funnel analysis, friction detection, time-to-value | | β™Ώ A11y Interaction Pack | Accessibility UX tracking | Rage clicks, dead taps, small tap targets | | 🚩 Feature Flag Pack | Flag management monitoring | Misconfigurations, conflicts, flag drift |


🎯 Core API

Logging Events

// Basic logging
await devSentinel.log('network_request', payload);

// Network-specific
await devSentinel.log('endpoint_health_update', { 
  endpoint: '/api/users',
  health: 'degraded' 
});

// Security events
await devSentinel.log('secure_ui_brute_force_indicator', {
  attempts: 5,
  ip: '192.168.1.1'
});

// Privacy events
await devSentinel.log('privacy_console_pii_leak', {
  message: 'User email detected in console'
});

Retrieving Logs

// Get all logs
const allLogs = await devSentinel.get();

// Get specific event type
const networkLogs = await devSentinel.getNetwork('network_request');
const securityLogs = await devSentinel.getSecureUi('secure_ui_click_injection_pattern');
const privacyLogs = await devSentinel.getPrivacy('privacy_storage_pii_issue');
const deviceLogs = await devSentinel.getDevice('device_issue');

Subscribing to Events

// Subscribe to all events
const unsubAll = devSentinel.subscribe((event) => {
  console.log('Event:', event);
});

// Subscribe to network events only
const unsubNetwork = devSentinel.subscribeNetwork((event) => {
  console.log('Network event:', event);
});

// Subscribe to security events
const unsubSecurity = devSentinel.subscribeSecureUi((event) => {
  console.log('Security event:', event);
});

// Subscribe to privacy events
const unsubPrivacy = devSentinel.subscribePrivacy((event) => {
  console.log('Privacy event:', event);
});

// Clean up
unsubAll();
unsubNetwork();

Clearing Logs

// Clear all design logs
await devSentinel.clear();

// Clear specific event type
await devSentinel.clearNetwork('network_request');
await devSentinel.clearSecureUi('secure_ui_brute_force_indicator');
await devSentinel.clearPrivacy('privacy_console_pii_leak');

🎨 Dev Panel Integration

Dev-Sentinel includes a beautiful Dev Panel component for visualizing diagnostics:

import { DevPanel } from '@prepilot/dev-sentinel/ui';

function App() {
  return (
    <>
      <YourApp />
      {import.meta.env.DEV && <DevPanel />}
    </>
  );
}

Features:

  • πŸ“Š Real-time event streaming
  • πŸ” Advanced filtering by pack and event type
  • πŸ“₯ Export logs as JSON
  • 🎯 Click to inspect detailed payloads
  • 🎨 Beautiful UI with syntax highlighting
  • πŸŒ™ Dark mode support

πŸ”§ Advanced Usage

Custom Event Types

import type { StoredLog } from '@prepilot/dev-sentinel';

interface CustomPayload {
  userId: string;
  action: string;
  metadata: Record<string, unknown>;
}

await devSentinel.log('custom_event_type' as any, {
  userId: 'user-123',
  action: 'clicked_button',
  metadata: { page: 'dashboard' }
} as CustomPayload);

Hydration from IndexedDB

// Hydrate all stores on app init
await Promise.all([
  devSentinel.hydrateFromDb(),
  devSentinel.hydrateCodeSmellFromDb(),
  devSentinel.hydrateSecureUiFromDb(),
  devSentinel.hydratePrivacyFromDb(),
  devSentinel.hydrateDeviceFromDb(),
  devSentinel.hydrateEnvFromDb()
]);

TypeScript Support

Full TypeScript support with comprehensive type definitions:

import type {
  NetworkEventType,
  TestingEventType,
  CodeSmellEventType,
  SecureUiEventType,
  PrivacyEventType,
  DeviceEventType,
  EnvironmentEventType,
  StoredLog
} from '@prepilot/dev-sentinel';

πŸ—οΈ Architecture

Dev-Sentinel uses a modular store architecture:

devSentinel (main)
β”œβ”€β”€ SentinelStore (design events)
β”œβ”€β”€ NetworkEventStore (network events)
β”œβ”€β”€ CodeSmellStore (code quality events)
β”œβ”€β”€ SecureUiStore (security events)
β”œβ”€β”€ PrivacyStore (privacy events)
β”œβ”€β”€ DeviceEventStore (device events)
└── EnvironmentEventStore (environment events)

Each store:

  • βœ… Persists to IndexedDB automatically
  • βœ… Provides reactive subscriptions
  • βœ… Supports filtering and clearing
  • βœ… Implements hydration from storage

πŸ”’ Privacy & Security

Dev-Sentinel takes privacy seriously:

  • 🚫 Never runs in production (checks import.meta.env.DEV)
  • πŸ” Built-in PII redaction for emails, tokens, passwords
  • πŸ›‘οΈ Customizable redaction rules
  • πŸ“Š Local-only storage (IndexedDB, no external calls)
  • πŸ” Privacy Guard Pack detects accidental PII leaks

πŸ“– Documentation

Comprehensive documentation for each pack:


🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.


πŸ“ License

MIT Β© PrePilot Team


πŸ™ Acknowledgments

Built with:

  • React Error Boundary
  • IndexedDB
  • TypeScript
  • Zod (for schema validation)

πŸ“§ Support