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

@speechkit/speechkit-audio-player

v3.18.30

Published

A web player component that can play audio from https://speechkit.io

Downloads

113

Readme

🤖 Speechkit.io Audio Player

A library that can be used for playing podcasts from https://speechkit.io.

Installation

Firstly, clone this repo to your local machine: git clone https://github.com/SpeechKit/speechkit-audio-player

Next, open the speechkit-audio-player directory or the directory you cloned to and run npm install to install all dependencies.

You can now run npm start to begin serving on local host and you will find test pages within the /example directory.

Development

To make changes, create a new branch from develop. Make sure you use the following format:

fix/sk-[task-number] - for a bug fix

feat/sk-[task-number] - for a feature

Where [task-number] represents the issue number in Trello.

Push your branch up to GitHub frequently and once you have completed work on the feature/fix, create a pull request against develop, making sure you also update the version in the package.json, eg 3.14.16.

Testing and Deployment

The next step is to deploy this version to staging for testing.

  1. Create a new build by running yarn build:stage
  2. Login to AWS and open the s3/speechkit-js bucket
  3. Create new folder according the version number you want
  4. Upload the contents of the local dist folder into the folder you created
  5. Update the version in the Heroku env (Vlad will help here!)

Once testing is complete, the next step is to make a pull request from develop to master.

If everything looks good, merge into master and push the branch up, at which point CircleCI will automatically deploy to npmjs.org. The new version may take some time to appear due to caching. For an urgent release, the caches may be purged (see links below).

CDN

We use JSDelivr for CDN. You can point your source to: https://cdn.jsdelivr.net/npm/@speechkit/speechkit-audio-player@VERSION/dist/speechkit.js

Example: https://cdn.jsdelivr.net/npm/@speechkit/speechkit-audio-player@1/dist/speechkit.js

Purging

After you have deployed a new version to JSDelivr, @latest and all other tags may take up to 24 hours to update. In the case that you need files to update sooner, you can purge the cache using the URLs below:

Purge Player:

https://purge.jsdelivr.net/npm/@speechkit/speechkit-audio-player@latest/dist/speechkit-iframe-helper.js

https://purge.jsdelivr.net/npm/@speechkit/speechkit-audio-player@latest/dist/speechkit-player.js

Purge Ghost:

https://purge.jsdelivr.net/npm/@speechkit/speechkit-audio-player@latest/dist/speechkit-ghost.js