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

@catdoes/watch

v1.0.0

Published

Error tracking and monitoring SDK for React Native and Expo apps - by CatDoes Inc.

Readme

@catdoes/watch

Error tracking and monitoring SDK for React Native and Expo apps.

CatDoes Watch provides real-time error tracking, crash reporting, and debugging tools for your mobile applications built with React Native and Expo.

Features

  • 🚨 Automatic Error Capture - Catches unhandled errors and promise rejections
  • 🎯 React Error Boundary - Integrated error boundary component
  • 📍 Breadcrumbs - Track user actions leading up to errors
  • 📱 Cross-Platform - Works on iOS, Android, and Web
  • 🔄 Offline Support - Queues events when offline, sends when reconnected
  • Lightweight - Minimal impact on app performance

Installation

npm install @catdoes/watch
# or
yarn add @catdoes/watch

Peer Dependencies

Make sure you have these peer dependencies installed:

npx expo install @react-native-async-storage/async-storage expo-crypto

Quick Start

1. Initialize the SDK

In your app's entry point (e.g., _layout.tsx for Expo Router):

import { Watch, setupGlobalHandlers } from "@catdoes/watch";

// Initialize Watch with your API key
const watchClient = Watch.init({
  apiKey: process.env.EXPO_PUBLIC_CATDOES_WATCH_KEY || "",
  debug: __DEV__, // Enable debug logging in development
});

// Set up global error handlers
if (watchClient) {
  setupGlobalHandlers(watchClient);
}

2. Wrap Your App with Error Boundary

import { ErrorBoundary } from "@/components/ErrorBoundary";

export default function RootLayout() {
  return (
    <ErrorBoundary>
      {/* Your app content */}
    </ErrorBoundary>
  );
}

3. Capture Errors Manually (Optional)

import { Watch } from "@catdoes/watch";

try {
  await riskyOperation();
} catch (error) {
  Watch.captureError(error as Error, {
    context: "riskyOperation",
    userId: currentUser.id,
  });
}

API Reference

Watch.init(config)

Initializes the Watch client.

interface WatchConfig {
  apiKey: string;                    // Your CatDoes Watch API key
  endpoint?: string;                 // Custom endpoint (default: CatDoes servers)
  environment?: "development" | "production";
  captureConsoleErrors?: boolean;    // Capture console.error (default: false)
  maxBreadcrumbs?: number;           // Max breadcrumbs to store (default: 20)
  debug?: boolean;                   // Enable debug logging
  beforeSend?: (event) => event | null; // Modify or drop events
}

Watch.captureError(error, extra?)

Manually capture an error.

Watch.captureError(new Error("Something went wrong"), {
  userId: "123",
  action: "checkout",
});

Watch.captureMessage(message, level?)

Capture a message as an error.

Watch.captureMessage("User attempted invalid action", "warning");

Watch.addBreadcrumb(breadcrumb)

Add a breadcrumb for context.

Watch.addBreadcrumb({
  type: "navigation",
  message: "User navigated to Settings",
  data: { screen: "Settings" },
});

Watch.setContext(key, value)

Set context that will be attached to all future events.

Watch.setContext("appVersion", "1.2.3");

Watch.setUser(user)

Set user information for error correlation.

Watch.setUser({
  id: "user123",
  email: "[email protected]",
});

Watch.flush()

Force flush all queued events to the server.

await Watch.flush();

Breadcrumb Types

  • navigation - Route/screen changes
  • ui - User interactions (taps, swipes)
  • http - Network requests
  • console - Console logs
  • custom - Custom events

Environment Variables

Set your API key in your environment:

EXPO_PUBLIC_CATDOES_WATCH_KEY=your_api_key_here

Support

License

Proprietary - All rights reserved by CatDoes.