{"id":19360676,"url":"https://github.com/dgck81lnn/lnn_osu_overlay","last_synced_at":"2026-05-12T20:40:58.090Z","repository":{"id":183492733,"uuid":"670123030","full_name":"DGCK81LNN/lnn_osu_overlay","owner":"DGCK81LNN","description":"osu!StreamCompanion 歌曲信息显示布局 · osu! song info display","archived":false,"fork":false,"pushed_at":"2024-08-26T09:58:43.000Z","size":1523,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T12:22:48.194Z","etag":null,"topics":["obs","obs-browser-source","obs-studio","osu","osugame","stream-companion"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DGCK81LNN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T10:47:40.000Z","updated_at":"2024-09-16T04:58:07.000Z","dependencies_parsed_at":"2024-11-10T07:19:21.477Z","dependency_job_id":"31fd782f-9060-4d07-a84c-b10972e4055b","html_url":"https://github.com/DGCK81LNN/lnn_osu_overlay","commit_stats":null,"previous_names":["dgck81lnn/lnn_osu_overlay"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/DGCK81LNN/lnn_osu_overlay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DGCK81LNN%2Flnn_osu_overlay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DGCK81LNN%2Flnn_osu_overlay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DGCK81LNN%2Flnn_osu_overlay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DGCK81LNN%2Flnn_osu_overlay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DGCK81LNN","download_url":"https://codeload.github.com/DGCK81LNN/lnn_osu_overlay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DGCK81LNN%2Flnn_osu_overlay/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284767947,"owners_count":27060132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["obs","obs-browser-source","obs-studio","osu","osugame","stream-companion"],"created_at":"2024-11-10T07:18:54.513Z","updated_at":"2025-11-16T20:02:22.992Z","avatar_url":"https://github.com/DGCK81LNN.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![](images/top.png)\n\n# LNN 的 osu! 歌曲信息和 pp 显示\u003cbr\u003eLNN’s osu! song info and pp display\n\n适用于 [osu!StreamCompanion] 的 *web overlay*，修改自 osu!StreamCompanion 自带的示例 [SC_Map Example]，可用于 OBS 浏览器源\u003cbr\u003e\nA *web overlay* for [osu!StreamCompanion], modified from osu!StreamCompanion’s built-in [SC_Map Example], can be used as OBS browser source\n\n[osu!StreamCompanion]: https://github.com/Piotrekol/StreamCompanion\n[SC_Map Example]: https://github.com/Piotrekol/StreamCompanion-overlays/tree/701a486ecf44e8f367ea2e848ba2fe92aad92d09/overlays/SC_Map%20Example\n\n## 安装\u003cbr\u003eInstalling\n\n使用前需要安装并启动 [osu!StreamCompanion]，将本仓库置于其安装目录内的 `Files/Web/overlays` 文件夹中，然后点击 osu!StreamCompanion 的 ![[两个小圆圈]][wo] 按钮，在打开的页面中即可找到本布局。\u003cbr\u003e\nTo use, install and launch [osu!StreamCompanion], place this repository inside the `Files/Web/overlays` folder in its install directory, and then click on the ![[two small circles]][wo] button in osu!StreamCompanion. You can then find this layout in the page that opens.\n\n[wo]: images/_weboverlaybtn.png \"Web overlays\"\n\n## 功能\u003cbr\u003eFeatures\n\n听音乐时除了歌名、曲师、谱师、难度，右侧还会显示**实时 BPM**、**最高连击数**和**无 mod 最高 pp**\u003cbr\u003e\nWhen listening, shows song title, artist, mapper, difficulty, along with **real-time BPM**, **max combo**, and **max pp without mods** on the right\n\n![](images/listen.png)\n\n游玩、观看回放和在结算界面时，会在左侧显示**判定统计**，右侧还会增加**当前最大连击数**、**实时 pp**（斜杠前的数字）和**实时评级**\u003cbr\u003e\nWhen playing, watching a replay or on a result screen, shows **statistics** on the left, and adds **current max combo**, **real-time pp** (the numbers before the slashes) and **real-time grade** on the right\n\n![](images/play.png)\n\n只要能确定当前 sliderbreak 数量，且不为 0，就会在左侧显示具体数量，尽管有些情况\\*下无法确定\u003cbr\u003e\nWhenever the current number of sliderbreaks can be determined AND is not zero, shows the count on the left. In some situations\\* it can't be determined, though\n\n*\u0026#32;查看过往成绩的结算界面而未播放回放时\u003cbr\u003e\n*\u0026#32;i.e. checking the result screen of a past play without watching replay\n\n另外，歌名、曲师名含有非英文字符时，每隔几秒会自动在转写与原文之间切换\u003cbr\u003e\nIn addition, when song title and/or artist name contains non-English characters, switches automatically between transliteration and original text every few seconds\n\n![](images/roman.webp)\n\n**2024-07-08 新增**：切换曲目时，现在默认会先显示原文，若要先显示转写，请将 `main.js` 中的 `showUnicodeFirst` 属性设为 `false`\u003cbr\u003e\n**New 2024-07-08**: After switching songs, now the original text is shown first by default; you can change this by changing the `showUnicodeFirst` property to `false` in `main.js`\n\n**2024-07-07 新增**：现在歌名和曲师名较长时会滚动显示\u003cbr\u003e\n**New 2024-07-07**: Now song title and artist name will scroll if too long\n\nhttps://github.com/DGCK81LNN/lnn_osu_overlay/assets/54282183/2acac0d9-7722-48d7-9672-8ddf2bbc8992\n\n**2024-07-08 新增**: 可通过修改 `main.js` 中的 `showSources` 属性为 `true` 来在标题行显示歌曲的 `Source` 字段\u003cbr\u003e\n**New 2024-07-08**: You can now show the `Source` field of the song alongside the artist name by setting the `showSources` property to `true` in `main.js`\n\n    cYsmix - Classic Pursuit\n              ⇓\n    osu! (cYsmix) - Classic Pursuit\n\n如果有 mods 开启则无论是否在游玩都会显示\u003cbr\u003e\nIf mods are enabled they will be shown whether you're playing or not\n\n（另外，若启用了 Relax、Autopilot、Auto 或 Cinema 游玩，右侧会显示“娱乐模式，不计分”或“自动演示，不计分”字样。您可在 `main.js` 中修改 `showAutomationNotice` 属性为 `false` 来禁用这一功能。）\u003cbr\u003e\n(In addition, when playing with Relax, Autopilot, Auto or Cinema on, a notice will show on the right that says “relax mode, unranked” or “autoplay, unranked” (currently in Chinese always). To turn off this feature, set the `showAutomationNotice` property to `false` in `main.js`.)\n\n![](images/mods.png)\n\n支持四种游戏模式\u003cbr\u003e\nSupports all four game modes\n\n  * taiko\u003cbr\u003e\n    ![](images/taiko.png)\n  * catch\u003cbr\u003e\n    ![](images/ctb.png)\n  * mania\u003cbr\u003e\n    ![](images/mania.png)\n\n*\u0026#32;mania 模式不显示最大连击数，因为不知道\u003cbr\u003e\n*\u0026#32;map max combo is not shown for mania because program doesn't know\n\n### 音乐播放器模式\u003cbr\u003eMusic player mode\n\n在此模式下，只显示歌名和曲师，且您可以自由调整窗口宽度。\u003cbr\u003e\nIn this mode, only song title and artist are  displayed, and you can adjust the viewport width freely.\n\n![](images/musiconly.png)\n\n要进入此模式，只需在 URL 后加上 `#musiconly`，如 `http://localhost:20727/overlays/lnn_osu_overlay/#musiconly`\u003cbr\u003e\nTo enter this mode, simply add `#musiconly` to the end of the page URL, for example `http://localhost:20727/overlays/lnn_osu_overlay/#musiconly`\n\n## 注意事项\u003cbr\u003eNote\n\n  * 虽然本布局的样式看起来很像 osu!(lazer)，但是截至本仓库发布时，osu!StreamCompanion 只适用于 osu! stable 版。\u003cbr\u003e\n    Although this layout has a very osu!(lazer)-ish style, osu!StreamCompanion can only be used with osu! stable by the time this repository is published.\n\n  * 本布局的高度为 100 像素，宽度根据窗口大小自动调节，建议在 1333 像素以上。要调整大小，建议使用自定义 CSS 实现（窗口大小也需要同比例调节），以放大到 1.25 倍为例：\u003cbr\u003e\n    This layout has a height of 100px and a flexible width depending on viewport — I recommend no less than 1333px. To adjust the size, custom CSS is recommended (multilpy the viewport size by the same ratio). Take zooming in to 1.25x for example:\n\n    ~~~css\n    :root { zoom: 1.25 }\n    ~~~\n\n    此时窗口高度就需要调整到 125 像素，建议宽度在 1333 × 1.25 ≈ 1667 像素以上。如果窗口宽度太窄，右边会显示不全被裁切掉。\u003cbr\u003e\n    Now the viewport height should be adjusted to 125px, and the minimum recommended width will be 1333 × 1.25 ≈ 1667. If the viewport width is far too small, the right side will be clipped.\n\n    ![](images/tooshort.png)\n\n    不过，在音乐播放器模式下您可以适当地调小窗口宽度而不会出现显示不全的情况。建议宽度在 720 像素左右，但没有硬性限制。\u003cbr\u003e\n    In music player mode, however, you can decrease the viewport width without the right side ever being clipped. I recommend around 720px in this case, but there is no hard limit.\n\n## 已知问题\u003cbr\u003eKnown issues\n\n  * CTB 模式下处于结算屏幕时评级总会变成 D\u003cbr\u003e\n    When in results screen in CTB, grade always becomes D\n\n  * ~~标题显示不下的时候只会省略号，暂时不会滚动显示~~ 2024-07-07 已添加滚动功能\u003cbr\u003e\n    ~~When title is too long to fit in one line, it is ellipsized for now, instead of scrolled horizontally to show the full line~~ Scroll feature added on 2024-07-07\n\n  * mods 开启时，显示的最高 pp 仍然是无 mods 的\u003cbr\u003e\n    When mods are on, max pp is still max pp without mods\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgck81lnn%2Flnn_osu_overlay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdgck81lnn%2Flnn_osu_overlay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdgck81lnn%2Flnn_osu_overlay/lists"}