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

@james-infotrack/demo-recorder

v0.7.0

Published

Record and replay interactive web demos with AI assistance. Capture user interactions, generate demo configurations, and replay them with visual feedback.

Readme

Demo Recorder - Quick Start

A React library for recording and playing back interactive web application demos with AI assistance.

🚀 Quick Start

Installation

npm install @james-infotrack/demo-recorder
# or
bun add @james-infotrack/demo-recorder

Usage

Option 1: Unified Component (Simplified API)

import { Demo } from '@james-infotrack/demo-recorder';

// Record a demo
<Demo
  mode="record"
  pluginId="my-app"
  pluginName="My Application"
  apiKey="sk-your-openai-api-key"  // Optional - works without AI
  onComplete={(config) => console.log('Recorded!', config)}
/>

// Play back a demo
<Demo
  mode="play"
  config={demoConfig}
  demoId="demo-1"
  onComplete={(summary) => console.log('Completed!', summary)}
/>

Option 2: Separate Components (Full Control)

import { DemoRecorder, DemoPlayer } from '@james-infotrack/demo-recorder';

// Record a demo
<DemoRecorder
  pluginId="my-app"
  pluginName="My Application"
  apiKey="sk-your-openai-api-key"
  onComplete={(config) => console.log('Recorded!', config)}
/>

// Play back a demo
<DemoPlayer
  config={demoConfig}
  demoId="demo-1"
  onComplete={(summary) => console.log('Completed!', summary)}
/>

Note: The Demo component provides a simpler API by combining both recorder and player into a single component with a mode prop. Use whichever approach you prefer!

📁 Repository Structure

  • src/ - Source code for the library
  • dist/ - Built library files (generated)
  • tests/ - Test files
  • examples/ - Example applications
  • docs/ - Full documentation and guides

🛠️ Development

Prerequisites

  • Node.js 16+ or Bun runtime
  • React 18+

Local Development & Testing

To test the library locally without installing it as a package:

Option 1: Using the Dev Server (Recommended)

# Install dependencies
npm install
# or
bun install

# Start the dev server with hot reload
npm run dev
# or
bun run dev

This starts a Vite dev server at http://localhost:5173 where you can test the library with live reloading.

Option 2: Build and Link

# Build the library
npm run build
# or
bun run build

# Link the package locally
npm link
# or
bun link

# In your test project
npm link @james-infotrack/demo-recorder
# or
bun link @james-infotrack/demo-recorder

Option 3: Direct Import (for quick testing)

Create a test file in the root directory:

// test-app.tsx
import { DemoRecorder } from './src/index';

function TestApp() {
  return (
    <DemoRecorder
      pluginId="test"
      pluginName="Test App"
      apiKey="your-key"
      onComplete={(config) => console.log(config)}
    />
  );
}

Run with: npm run dev or bun run dev

Available Scripts

npm run dev          # Start dev server with hot reload
npm run build        # Build the library for production
npm run preview      # Preview the production build
npm run test         # Run tests
npm run test:ui      # Run tests with UI
npm run lint         # Lint code
npm run format       # Format code
npm run typecheck    # Type check without emitting

🧪 Testing

# Run all tests
npm test

# Run tests with UI
npm run test:ui

# Run tests with coverage
npm run test:coverage

📚 Documentation

Full documentation is available in the docs/ folder:

📦 Examples

Check out the examples/ directory for complete working examples:

  • examples/basic/ - Basic usage of all components
  • examples/custom-styling/ - Custom themes and styling
  • examples/config-editor/ - Configuration management
  • examples/full-app/ - Complete demo management application

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

📄 License

MIT License - see LICENSE file for details

🔗 Links

💬 Support

For questions or issues, please:

  1. Check the documentation
  2. Review existing issues
  3. Create a new issue if needed

Made with ❤️ by InfoTrack Global