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 🙏

© 2024 – Pkg Stats / Ryan Hefner

survaii-session-stream

v0.0.9

Published

Survaii SessionStream is an advanced session recording and replay tool designed to help businesses and developers gain deep insights into user behavior. By capturing and replaying user interactions, ReplayView provides a comprehensive view of how users en

Downloads

5

Readme

Survaii Session Stream

Survaii Session Stream allows you to record user sessions effortlessly, capturing valuable insights into user interactions with your application.

Getting Started

Follow these simple steps to integrate and use Survaii Session Stream in your project.

Prerequisites

  1. AppKey: Ensure you have an AppKey from Survaii.

Installation

Install the Survaii Session Stream library via npm:

npm install survaii-session-stream

Usage

  1. Import the Library:

    import { SurvaiiSessionStream } from 'survaii-session-stream';
  2. Initialize the Recorder:

    Call the init function to initialize the recorder. The init function takes four parameters, with the ID, Interval and MaskAllInputs parameters being optional:

    • AppKey: Your Survaii AppKey.
    • ID: (Optional) A unique identifier for the session (e.g., an email or a database ID). This is useful for recording sessions of authenticated users.
    • Interval: (Optional) The interval in milliseconds to capture small chunks of the session (default is 30000 ms). This ensures you don't miss anything even if the user exits your app abruptly.
    • MaskAllInputs: (Optional) When set to true, all input fields will have their values masked to prevent sensitive information from being recorded. This is useful for maintaining privacy and security.
    SurvaiiSessionStream.init(
    'your-app-key', // Replace with your AppKey
      'unique-user-id', // Optional: Replace with your unique identifier
      30000, // Optional: Adjust the interval as needed
      true, // Optional: Mask all inputs
    );
  3. Start Recording:

    To start recording the session, call the startRecording function:

    SurvaiiSessionStream.startRecording();
  4. Stop Recording:

    If you need to stop recording the session, call the stopRecording function:

    SurvaiiSessionStream.stopRecording();

Example

Here is a complete example of how to use Survaii Session Stream:

import { SurvaiiSessionStream } from 'survaii-session-stream';

// Initialize the recorder
SurvaiiSessionStream.init({
  id: '[email protected]', // Optional: Replace with a unique identifier
  interval: 30000, // Optional: Adjust the interval as needed
  appKey: 'your-app-key', // Replace with your AppKey
});

// Start recording the session
SurvaiiSessionStream.startRecording();

// Optionally, stop recording the session when needed
// SurvaiiSessionStream.stopRecording();

Conclusion

That's it! You are now ready to start recording user sessions with Survaii Session Stream. This will help you gain valuable insights into how users interact with your application, allowing you to make informed decisions to improve the user experience.

If you have any issues or need further assistance, please contact us at [email protected].