Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@ecodesk/storytime

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecodesk/storytime

Track and record user sessions

latest
Source
npmnpm
Version
1.0.6
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

@ecodesk-io/storytime

Ecodesk screen sharing feature

NPM JavaScript Style Guide

Demo

Screenshot: Screen Shot 2020-11-02 at 2 35 02 PM

GIF: demo

Install

npm install --save @ecodesk-io/storytime

Usage

First, sign up at https://app.ecodesk.io/register to get your account token. Your account token is what you will use to pass in as the accountId prop below.

Using in HTML

Paste the code below between your <head> and </head> tags:

<!-- 
  Note that if you already have included the `window.Ecodesk` configuration with the chat widget, 
  you should **NOT** duplicate it here! All the config settings should be the same for now.
-->
<script>
  window.Ecodesk = {
    config: {
      // Pass in your Ecodesk account token here after signing up
      accountId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx',
      // Optionally pass in metadata to identify the customer
      customer: {
        name: 'Test User',
        email: 'test@test.com',
        external_id: '123',
      },
      // Optionally specify the base URL
      baseUrl: 'https://admin.ecodesk.io',
    },
  };
</script>
<script
  type="text/javascript"
  async
  defer
  src="https://admin.ecodesk.io/storytime.js"
></script>

:warning: Note that if you already have included the window.Ecodesk configuration with the chat widget, you should NOT duplicate it here!

If you already have the config set, just include this script below it:

<script
  type="text/javascript"
  async
  defer
  src="https://admin.ecodesk.io/storytime.js"
></script>

Using as an NPM module

Place the code below in any pages on which you would like to render the widget. If you'd like to render it in all pages by default, place it in the root component of your app.

import {Storytime} from '@ecodesk/storytime';

const st = Storytime.init({
  // Pass in your Ecodesk account token here after signing up 
  accountId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx',
  // Optionally specify the base URL
  baseUrl: 'https://admin.ecodesk.io',
});

// If you want to stop the session recording manually, you can call:
// st.finish();

// Otherwise, the recording will stop as soon as the user exits your website.

FAQs

Package last updated on 06 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts