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

@elmotron9000/elmotron9000

v1.0.20

Published

Generate training videos automatically in your CI pipeline

Downloads

21

Readme

elmotron9000

This package is the bread and butter, the grand project, the big shabang.

/slaps hood of npm module

You can automate an entire video presentation workflow with this bad boy.

Installing

To get started, install this package.

For npm, you can run

npm i @elmotron9000/elmotron9000

For yarn, you can run

yarn add @elmotron9000/elmotron9000

Overview

Some notable underlying components to the project:

  1. @elmotron9000/tts: use basic string inputs for your presentation script, and generate WaveNet audio clips
  2. @elmotron9000/fmlpeg: the plumbing for all things video, audio, photos, and subtitles

The main project:

@elmotron9000/elmotron9000 can be used to describe interactions with a web application- anything you can do in your browser can be done with elmotron9000. Narrate your presentation, call out web components visually, record interactions, generate video, and add subtitles.

Example

import { Elmo } from "@elmotron9000/elmotron9000";

const PRODUCT_NAME = "Dynatrace";

async function demo() {
  const elmo = new Elmo({ videoFile: "./example.mp4", subtitles: true });
  const dw = await elmo.startScene("https://www.dynatrace.com");
  
  // Show an intro slide using `reveal.js` and start recording
  await dw.showSlides(`
    <div class="reveal">
        <div class="slides">
            <section
                data-background-image="https://dt-cdn.net/images/slide-background-1872-ad726449a5.jpg">
                <h1 style="font-size: 48px; position: absolute; left: -60px; top: 230px; color: white">
                    The ${PRODUCT_NAME} Website
                </h1>
            </section>
        </div>
    </div>
  `);
  await dw.waitForSelector(".reveal.ready");
  await dw.startRecording();

  // Narrate the video at anytime by saying anything - you can also use more advanced SSML
  await dw.sleep(500);
  await dw.say(`Today I will be showing you how to get started with a free trial for ${PRODUCT_NAME}`)
  await dw.sleep(200);
  await dw.say(`First, head to the ${PRODUCT_NAME} website`);
  await dw.sleep(200);
  await dw.hideSlides();

  // Use content in the actual page for your script
  const page = dw.page();
  const startButtonSelector = "a.btn.btn--primary.btn--video";
  const startButton = await page.$(startButtonSelector);
  const startButtonText = await startButton.textContent();
  await dw.showCallout(startButtonSelector);
  await dw.say(`You can get started with Dynatrace today by clicking the ${startButtonText.trim()} button`);
  await dw.moveTo(startButtonSelector);
  await dw.hideCallout();

  // Stops the recording and closes the browser
  await dw.stop();

  // Add outro video
  await elmo.addScene({
    type: "video",
    filename: "./outro.mp4",
    audio: [],
  });

  // Build the video presentation
  await elmo.build();
}

demo();