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

react-recall

v1.0.3

Published

Debug session recorder for AI-assisted development

Downloads

448

Readme

React Recall | react-recall.com

React Recall is a debug session recorder that makes it really easy for you and your AI agents to view logs and trace user flows.

It captures every click, log, error, and network request in your React app to a .react-recall/logs.jsonl file, so your coding agent can use the tools it already knows to analyze the logs in context to the user flow.

Installation

npm install -D react-recall

Quick Start

1. Add the provider to your app

// app/layout.tsx (Next.js) or App.tsx (CRA/Vite)
import { ReactRecallProvider } from "react-recall";

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        <ReactRecallProvider>{children}</ReactRecallProvider>
      </body>
    </html>
  );
}

2. Start the dashboard server

npx react-recall

Navigate to http://localhost:4312 to view captured events in real-time.

Tip: Add react-recall to your dev script so you don't need to run an extra command:

"dev": "next dev & react-recall"

3. (Recommended) Add to your AGENTS.md

Help your AI coding agents discover React Recall by adding this to your project's AGENTS.md:

## React Recall Debug Logs

React Recall captures user interactions, console logs, errors, and network requests in `.react-recall/logs.jsonl`. Each line is a JSON object.

### Querying Logs

```bash
# Last 10 events
tail -n 10 .react-recall/logs.jsonl

# All errors
grep '"type":"error"' .react-recall/logs.jsonl

# All network failures (4xx, 5xx)
grep '"type":"network"' .react-recall/logs.jsonl | grep -E '"status":[45][0-9]{2}'

# Search for specific text
grep -i "submit" .react-recall/logs.jsonl

# Get just error messages
grep '"type":"error"' .react-recall/logs.jsonl | jq -r '.message'

# Events from last 60 seconds
SINCE=$(($(date +%s) * 1000 - 60000)) && awk -v since="$SINCE" -F'"ms":' '$2+0 > since' .react-recall/logs.jsonl
```

### Event Types

- `type: "event"` - User interactions (clicks, inputs, navigation)
- `type: "error"` - Uncaught errors and unhandled rejections
- `type: "log"` - Console logs (log, info, warn, debug)
- `type: "network"` - Fetch/XHR requests with full request/response data

Configuration

<ReactRecallProvider
  config={{
    // Server URL (default: localhost:4312)
    serverUrl: "ws://localhost:4312",

    // Only runs in development by default
    enabled: process.env.NODE_ENV === "development",

    // Toggle capture types
    captureClicks: true,
    captureInputs: true,
    captureNavigation: true,
    captureLogs: true,
    captureErrors: true,
    captureNetwork: true,

    // Exclude elements from capture
    excludeSelectors: [".sensitive-data"],

    // Mask input values (passwords masked by default)
    maskInputs: ['[type="password"]', "[data-sensitive]"],
  }}
>
  {children}
</ReactRecallProvider>

CLI Options

react-recall [options]

Options:
  --port <number>           Server port (default: 4312)
  --max-file-size <number>  Max log file size in MB before rotation (default: 10)
  --help, -h                Show help

How It Works

React Recall uses standard browser APIs to observe your application without interfering:

  • Console/Errors: Wraps native methods, calls originals after capture
  • Network: Intercepts fetch/XHR, clones responses before reading
  • Events: Passive listeners that never block propagation
  • React Components: Reads fiber nodes from DOM (read-only)

Zero impact on your app's functionality. Automatically disables if the server is unreachable.

Storage

Logs are stored in .react-recall/logs.jsonl in your project directory. This folder is automatically added to .gitignore.

License

MIT