Skip to content
Projects

xpadev-net/niconicomments has 121 GitHub stars and 10 forks. GitHot measured 0 stars in 24 hours and +1 in 7 days. Last checked 2026-11-17 02:26 UTC. Last push 2026-11-14.

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

ニコニコ動画の公式プレイヤー互換の高パフォーマンスなコメント描画ライブラリ / High peformance High compatibility comment drawing library

Creative & Media

README.en.md

Original

niconicomments

GitHub license CodeQL TypeDoc

[日本語]

Comment rendering library that is somewhat compatible with the official Nico Nico Douga player
Reference: https://xpadev-net.github.io/niconicomments/
Github: https://github.com/xpadev-net/niconicomments
npm: https://www.npmjs.com/package/@xpadev-net/niconicomments

Installation

<script src="https://cdn.jsdelivr.net/npm/@xpadev-net/[email protected]/dist/bundle.js"></script>

or

npm i @xpadev-net/niconicomments

Examples

const canvas = document.getElementById("canvas");
const video = document.getElementById("video");
const req = await fetch("sample.json");
const res = await req.json();
const niconiComments = new NiconiComments(canvas, res);
//If video.ontimeupdate is used, the comments will be choppy due to the small number of calls.
setInterval(
  () => niconiComments.drawCanvas(video.currentTime * 100),
  10
);

Custom commands in the nico:* format (such as nico:stroke and nico:scale) are disabled by default. Enable them with an initialization option:

const niconiComments = new NiconiComments(canvas, res, {
  enableCustomCommands: true,
});

Sample

Sample

For users who use this library for domestic use in Japan

This library may infringe on Dwango's patents depending on how it is used
Please carefully review the following applicable patents and case law before using this library with caution.
JP,2006-333851
JP,2010-267283
JP,2018-202475
2018: Case No. Heisei 28 (wa) 38565, Patent Infringement Injunction, etc. Patent Right Civil Litigation
2022: Heisei 30 (ne) 10077 Appeal for Patent Infringement Injunction, etc. Patent Right Civil Litigation