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 🙏

© 2026 – Pkg Stats / Ryan Hefner

gitbook-plugin-chinese-video

v1.2.3

Published

A plugin for inserting a video, hosted by Chinese video website, into your web book.

Readme

gitbook-plugin-chinese-video

This is a plugin for gitbook. It can display some video on your web book. Some existed plugins only support the website which couldn't be visited in China. This plugin will support some video websites which is famous in China.

Install

Add the below to your book.json file, then run gitbook install :

{
    "plugins": ["chinese-video"]
}

Usage

Currently, This plugin support:

  • Bilibili
  • Youku
  • Iqiyi
  • QQ
  • Sohu
  • Mgtv
  • PPTV

There are each methods which you should use to insert matched website's video.

Tips:

  • [xxx] is optional parameter. You can ignore it but don't ignore any @.
  • The width x height, which is defined by you, is the largest size of the player and if you have a small screen to look through the page, Page will zoom the player with the scale of your width x height.

Bilibili

html5 https

{% bilibili %} avCode @ [section] @ [width x height] {% endbilibili %}

avCode is bilibili video's serial number. Just like this: https://www.bilibili.com/video/av 170001

avCode should be a number. Don't attach "av" to it.

section is matched video's sub video's serial number.

width x height is player's size.

Youku

html5 flash https

{% youku %} videoCode @ [mode] @ [width x height] {% endyouku %}

mode is player's mode. js(html5) or flash.

videoCode just like this: https://v.youku.com/v_show/id_ XNDU4MjQ3MzA0 .html

width x height is player's size.

Iqiyi

html5 flash https(HTML5 player) http(Flash player)

~~Iqiyi's parameter just like shit!!!~~

Flash player

{% iqiyi %} flash @ parameter1 @ video @ albumId @ tvId @ [width x height] {% endiqiyi %}

flash is key word. Don't change it.

You only can visit Iqiyi's video's Sharing page and copy its HTML to get these parameters. It just like this:

<embed src="http://player.video.qiyi.com/1bba1b2ae1e248fdf316c6925eb4d5a2/0/0/w_19rugndwj9.swf-albumId=6462528409-tvId=6462528409-isPurchase=0-cnId=8" allowFullScreen="true" quality="high" width="480" height="350" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash"></embed>

For this content:

1bba1b2ae1e248fdf316c6925eb4d5a2 is parameter1.

w_19rugndwj9 is video

6462528409 is albumId

6462528409 is tvId

HTML5 player

{% iqiyi %} js @ vid @ tvId @ [showStr] @ [width x height] {% endiqiyi %}

js is key word. Don't change it.

showStr only be showed when you don't use web book. It equal with flash player's parameter called video.

You only can visit Iqiyi's video's Sharing page and copy its HTML to get these parameters. It just like this:

<iframe src="http://open.iqiyi.com/developer/player_js/coopPlayerIndex.html?vid=1bba1b2ae1e248fdf316c6925eb4d5a2&tvId=6462528409&accessToken=2.f22860a2479ad60d8da7697274de9346&appKey=3955c3425820435e86d0f4cdfe56f5e7&appId=1368&height=100%&width=100%" frameborder="0" allowfullscreen="true" width="100%" height="100%"></iframe>

For this content:

1bba1b2ae1e248fdf316c6925eb4d5a2 is vid.

6462528409 is tvId

QQ

flash https

{% qq %} video @ [width x height] {% endqq %}

video is QQ video's serial number. Just like this: https://v.qq.com/x/page/ l0172wyz9su .html

width x height is player's size.

Sohu

flash https

{% sohu %} video @ [showStr] @ [width x height] {% endsohu %}

showStr only be showed when you don't use web book. It can be found in URL. Just like this: https://my.tv.sohu.com/pl/ 9017423/80421658 .shtml

video only can be found in sharing page. It just like this: https://tv.sohu.com/upload/static/share/share_play.html# 80421658_9017423_0_9001_0

Mgtv

flash https

{% mgtv %} video @ [showStr] @ [width x height] {% endmgtv %}

showStr only be showed when you don't use web book.

For example: https://www.mgtv.com/b/316387/4201085.html

316387 is showStr.

4201085 is video.

PPTV

flash http

{% pp %} video @ [width x height] {% endpp %}

video is PPTV video's serial number. Just like this: http://v.pptv.com/show/ uZM6uSGH9zWYFn4 .html

width x height is player's size.

Teji

It just like teji. This is a experimental function.

{% teji %} Your Html {% endteji %}

Example code for test

bilibili

{% bilibili %} 170001@@ {% endbilibili %}

youku

{% youku %} XNDU4MjQ3MzA0@flash@ {% endyouku %}

{% youku %} XNDU4MjQ3MzA0@@ {% endyouku %}

iqiyi

{% iqiyi %} js @ 5634fcb5b64fb2f4824fe041d70419a6 @ 6460334909 @@ {% endiqiyi %}

{% iqiyi %} flash @ 5634fcb5b64fb2f4824fe041d70419a6 @ w_19rugokfo1 @ 6460334909 @ 6460334909 @ {% endiqiyi %}

qq

{% qq %} l0172wyz9su@ {% endqq %}

sohu

{% sohu %} 80421658_9017423_0_9001_0@@ {% endsohu %}

mgtv

{% mgtv %} 4201085@@ {% endmgtv %}

pp

{% pp %} uZM6uSGH9zWYFn4@ {% endpp %}