Danmu Push:

<!-- One-line code to push a danmu -->
$.getJSON("https://www.phprm.com/services/push/trigger/4d05f4abdb0a0c2a0269900809946903?head=This is a danmu");
Tip: paste the code into the console. The $.getJSON() call trigger interface writes a danmu record on the backend. Only head is required; avatar is optional and defaults automatically.

API Danmu Test

Fill in the content and click Send. The danmu will appear in real time in the bottom-right preview. You can also trigger it directly via URL:

Share Link

Share the link below with friends; recipients receive danmu messages in real time.

https://ws.phprm.com/frame.html?channelCode=4d05f4abdb0a0c2a0269900809946903&danMu=1&hidePanel=1

One-Line Integration No Backend

Drop the following <script> danmu.js on any page of your site. danmu.js auto-loads dependencies and initializes the danmu plugin — no backend needed.

<!-- One-line JS to integrate AI danmu -->
(function() {
    var dm = document.createElement("script");
    dm.src = "https://ws.phprm.com/static/customer/js/danmu.js?appName=your_app_name_for_stats&channelCode=your_channel_code&hidePanel=1&hideDialog=1&danMu=1";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(dm, s);
})();
💡 Tip: channelCode is your channel code. Sign up and create one. After domain verification you may skip channelCode; a channel is created for your URL automatically.

Parameters

ParameterDescription
appNameCustom app name for stats
channelCodeChannel code from registration; optional after domain verification
hidePanelHide config panel (0=show, 1=hide)
hideDialogHide chat dialog (0=show, 1=hide)
danMuEnable danmu (0=off, 1=on)
danMuSettingDanmu appearance config (nested object, see children below)
    danMuSetting.opacityBackground opacity (0~100, 100=opaque)
    danMuSetting.sizeDanmu font size (8~33)
    danMuSetting.speedScroll speed (seconds)
    danMuSetting.closeShow close button (0=no, 1=yes, takes precedence over like)
    danMuSetting.likeShow like button (0=no, 1=yes); only effective when danMuSetting.close=0
    danMuSetting.bottomDistance from screen bottom (px, effective when bottomradio=1)
    danMuSetting.bottomradioPosition by bottom (0=random, 1=fixed)
    danMuSetting.aiDanMuAI danmu polling interval (sec, 0=off). Supports danmu.js?aiDanMu=30 to poll every 30s
    danMuSetting.aiDanMuUrlCustom AI danmu endpoint
    danMuSetting.selectorDanmu mount DOM selector (default body)
    danMuSetting.colorDanmu text color
    danMuSetting.hideIconHide the floating icon in the bottom-right (0=show, 1=hide). Supports danmu.js?hideIcon=1

Browser Danmu Widget

Zero-code danmu widget — pop-up push windows on any site. Desktop, mobile, tablet supported. Add it as a bookmarklet to start.

How to use the widget →

Danmu Push Live Demo

This page is a live sandbox for the OnePass danmu (bullet-chat) JS. Type a message and watch it fly across the preview area, or trigger danmu directly from a URL - no registration needed for the demo. When you are ready to integrate, the same danmu JS adds real-time bullet chat to any website with a single script tag, supporting custom appearance, like buttons, callbacks and AI-generated danmu.