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

nodebb-plugin-youtube-embed

v0.6.9

Published

NodeBB Youtube Embed Plugin

Downloads

27

Readme

NodeBB Youtube Embed Plugin

The Youtube Embed plugin allows users to embed Youtube videos into NodeBB posts. Simply add the link to the video on its own line.

In order to get title and duration information, the plugin needs to be configured with an API key. See here for details on acquiring one:

https://developers.google.com/youtube/v3/getting-started

This plugin was forked from nodebb-plugin-youtube-lite.

Installation

Search in the

npm install nodebb-plugin-youtube-embed

Changes

0.6.9
 - Fixed db require
0.6.8
 - Compatibility update to 1.13
0.6.7
 - Exception handling for parsing API requests.
 - Unavailable videos don't have a channel name, replaceAll checks for no text.
0.6.6
 - Rejected videos lack thumbnails, too.
0.6.5
 - Defensive coding in case Youtube returns a video item that
   doesn't have contentDetails.
0.6.4
 - Don't falsely report an error for 0s duration
0.6.3
 - Parse durations that do not have a time component
0.6.2
 - Don't crash if we can't parse the duration sent by Youtube
0.6.1
 - Added transparent background and hover effect for play button
 - Max-width style to the main div for small screens and narrow styles
0.6.0
 - Works with NodeBB 1.0
 - Moved most of the work to the server, to include API calls (keeps API key
   from being exposed to users).
 - LRU cache to reduce quota usage.
 - Supports `t=`, '`start=`', `end=` query string parameters
 - With valid API key displays title, channel and duration information
 - Support `#` in query strings
0.5.0
    - Plugin now supports [Youtube API v3](https://developers.google.com/youtube/v3/?hl=en)
0.4.7
 - Changes to Desktop Video Size & Fixed CSS Issues
0.4.5
 - Fixed how the video displays on mobiles. Should no longer extend past the viewport.
0.4.4
 - Upgraded Regex so it doesn't match ANY 11 character string. Includes support for rel="nofollow". 
0.4.1
 - Works with latest 0.7.x and hopefully beyond. Should also support time stamps. 
0.3.1
 - Removed forced http from api and pre loaded image.