Push exempt:

<!-- 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.

One-Line Visit Analytics for Offline HTML and Websites No Backend

Copy the script tag below into any page of your site to enable visit analytics. Open Channel Management to review visit trends, PV/UV, devices and individual visits, with date-range filters and Excel export.

<!-- One script tag to enable website visit analytics -->
<script src="https://ws.phprm.com/static/customer/js/danmu.js?appName=your_app_name_for_stats&channelCode=4d05f4abdb0a0c2a0269900809946903&plugins=stat"></script>
💡 This snippet only records page views silently — no bullet chat or floating icon is rendered. Collected data can be reviewed in Channel Management for the matching channel.

API Test

Fill in the message content, or trigger multiple channels directly via URL:

One-Line Danmu JS 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&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
pluginsPlugin names, comma-separated, several at once (plugins=stat or plugins=stat,panel). File-style names like stat.js are also accepted; empty = no plugin
    plugins.statVisit analytics: fires one head=visit push on page load, plus one head=click push when an element is clicked (body = that element outerHTML)
    plugins.adAd slot: messages with head=广告 are not rendered as danmu but as a bottom-right ad image, supports url/hold (dwell seconds)
    plugins.panelTop-right panel: push window (channel code / login) and danmu settings form. Must be requested explicitly with panel
    plugins.axios-reportAxios API error reporting (head=axios, body = error JSON)
    plugins.vue-reportVue2/3/4 errors and warnings reporting (head=vue, body = error JSON)
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 →

AI Prompt: Scrape Page Content and Push to Your Business API

Open the MCP page to replace the preset channel code, click "Copy Full SKILL to AI", send it to any AI tool, then copy the prompt below.

Please emulate a browser to scrape the structured fields of the given page (e.g. https://push.phprm.com/exempt.html), format the content as JSON, and use push-server to push it to the business server (webhook JSON)

Danmu Push & Website Visit Analytics 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. The same page also ships a one-line danmu.js snippet (plugins=stat) that turns a browser-push channel into a lightweight website analytics dashboard.

What you can do on this page

  • Try a URL trigger: the code card shows a ready-made /services/push/trigger/<channelCode>?head=... link; copy it and open it anywhere to fire a danmu.
  • Copy the one-line snippet: the "one line of code" card holds the danmu.js IIFE for the demo channel, with a copy button - no backend required.
  • Tune the appearance: the parameter table documents every option you can set in that snippet - appName, channelCode, hideDialog, danMu, danMuSetting (opacity / size / speed / close / like / bottom / bottomradio), aiDanMu, aiDanMuUrl, selector, color, hideIcon.
  • Send a test push: fill head / body / avatar / url and an optional delay in milliseconds, then press the send button; "auto link" fills a working demo payload for you.
  • Watch it land: the phone-frame preview on the right renders the danmu stream live, so you can see exactly what visitors will get.
  • Bonus: visit analytics: the "Add Visit Analytics to Your Site in One Line" card ships a single danmu.js script tag with plugins=stat. Paste it into any page and it silently records every visit - page URL, traffic source, device, browser, OS, language and screen resolution - into a full analytics dashboard with trend charts, source breakdowns, a visit log and Excel export. No backend and no cookies required.
  • Bullet-chat widget: the browser danmu widget button takes you to the clipper page if you want danmu outside your own site.
  • AI web-scraping prompt: the bottom MCP card ships a SKILL plus the matching prompt so an agent can scrape structured fields from a page and push them as JSON to your own business API (webhook).

Note: the demo runs on a shared public channel, so anything sent here is visible to everyone on the page - don't paste secrets or personal data. When you integrate, create your own channel code instead.