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

@tmdt-buw/gideon-replay

v0.3.2

Published

![alt text](https://github.com/tmdt-buw/gideon-replay/blob/master/img/overview.png)

Downloads

3

Readme

Gideon Replay

alt text

Gideon replay is a publicly freely available library that can be integrated into any web application with just a few lines of code to record and replay user interactions such as mouse clicks and keystrokes. Replay can be controlled via a web player interface. This interface shows activity types and idle times as well as an attention heat map. In addition, we enable the export of all interactions for a later analysis. In summary, Gideon provides free, easy tracking of user interactions and significantly reduces the effort required for specified and customized tracking solutions.

Cite as

@article{LANGER2022100964,
  title = {Gideon Replay: A library to replay interactions in web-applications},
  journal = {SoftwareX},
  volume = {17},
  pages = {100964},
  year = {2022},
  issn = {2352-7110},
  doi = {https://doi.org/10.1016/j.softx.2021.100964},
  url = {https://www.sciencedirect.com/science/article/pii/S2352711021001862},
  author = {Tristan Langer and Richard Meyes and Tobias Meisen}
}

Example

Explore our example app here.

Our demo application is implemented with Angular and contains two views. First, a basic view with two linked charts, where you can hover and click to select the data of the chart. Second, a more advanced view of an interactive chart where the data points can be dragged and axes can be zoomed. By using a frontend framework, a developer can implement an abstract TrackedComponent that registers its element on Gideon Replay. This way, other components that are to be tracked by Gideon Replay simply have to inherit from this abstract component.

Example using Angular

To make tracking components more abstract using a frontend library like Angular, the tracking can be implemented via a reusable abstract component:

import {AfterViewInit, Component, OnDestroy, ViewChild} from '@angular/core';
import { Gideon } from '@tmdt-buw/gideon-replay';

@Component({
template: ''
})
export abstract class TrackedComponent implements AfterViewInit, OnDestroy {

@ViewChild('container') container: any;

protected constructor(private gideon: Gideon) {
}

abstract reset(): void;

  ngAfterViewInit(): void {
    this.gideon.registerElement(this.container.nativeElement);
  }
  
  ngOnDestroy(): void {
    this.gideon.stopReplay();
  }
}

Usage in actual component:

import { AfterViewInit, Component } from '@angular/core';
import { Gideon } from '@tmdt-buw/gideon-replay';
import { TrackedComponent } from "./tracked.component";

@Component({
  selector: 'app-...',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent extends TrackedComponent implements AfterViewInit {
  
  constructor() {
    super(Gideon.getInstance());
  }

  override reset(): void {
      // reset app to inital state to init replay
  }

  override ngAfterViewInit(): void {
    super.ngAfterViewInit();
  }

}

Install

Install the Gideon Replay library via

npm install @tmdt-buw/gideon-replay

Include css styles into your own styles.css file

@import "../node_modules/@tmdt-buw/gideon-replay/style/gideon.scss";

Track HTML-elements

Tracking an element also tracks all interactions performed on child elements inside the element, i.e. if you want to track a chart element containing several svg elements you only register the chart container. Register only the body element if your want to track the whole application.

Tracking user interactions on a component is just one line of code:

Gideon.getInstance().registerElement(element);

Get complete history

Retrieve the complete history of interactions on all elements:

const history = Gideon.getInstance().getHistoryRecords();

Replay user interactions

Replay a history record on an HTML-element:

Gideon.getInstance().replay(htmlElement, historyRecord);

Replay a history record on a stateful HTML-element with reset function to reset view:

Gideon.getInstance().replay(htmlElement, historyRecord, () => reset());

Replay a history record on a stateful HTML-element with reset function to reset view and custom heatmap config:

const config = {
  radius: 10,
  maxOpacity: .5,
  minOpacity: 0,
  blur: .75
}

Gideon.getInstance().replay(htmlElement, historyRecord, () => reset(), config);

Stop current replay:

Gideon.getInstance().stopReplay();

Export / Import

Export complete history:

Gideon.getInstance().export();

Export specific element history:

Gideon.getInstance().export(history);

Data Format

The export contains a list of histories (one per tracked element) in JSON-format. The histories, in turn, include a list of tracked mouse, wheel and keyboard events which are a reduced version of the common browser events. Element always contains the css selector to the triggering element.

Mouse event format. Type is one of the browser mouse event types.

{
  time: number;
  x: number;
  y: number;
  type: string;
  element: string;
}

Wheel event format. Type is one of the browser wheel event types.

{
  time: number;
  type: string;
  event: {
    deltaX: number;
    deltaY: number;
    deltaZ: number;
    deltaMode: number;
  };
  element: string;
}

Mouse event format. Type is one of the browser keyboard event types.

{
  time: number;
  x: number;
  y: number;
  type: string;
  element: string;
}