@beyondwords/player

中文文档
0.5.4发布于 2026/11/06See license in README.mdESM + CJS零依赖构建来源已验证近 30 天下载 8602

BeyondWords is an AI voice and audio CMS that enables publishers to transform their content into natural-sounding and captivating audio experiences for their audiences. This repository includes the BeyondWords player, which seamlessly integrates with the

原始使用文档
文档目录6 节
  1. BeyondWords Player
  2. Development setup
  3. Testing
  4. Deployment
  5. Contribution
  6. License

BeyondWords Player

BeyondWords is an AI voice and audio CMS that enables publishers to transform their content into natural-sounding and captivating audio experiences for their audiences. This repository includes the BeyondWords player, which seamlessly integrates with the BeyondWords audio CMS and can be easily embedded into your website or app. You can create an account here.

The easiest way to embed the BeyondWords player into your website is by copying the player scripts inside the BeyondWords CMS. However, for those who wish to customize the player further, this documentation provides helpful guides and a detailed explanation for each of the player's settings. You can see a demo of the player here.

Please refer to our official documentation for more information.

The in-repository contract for the default player's literal Light, Dark, and Video palettes is documented in Default player colour palettes.

Development setup

We recommend you use nodenv for managing node versions. There is a .nodenv file in the root of the repository. You will need to set this up first. Then, run the following to install dependencies and start a server on port 8000:

./bin/setup
./bin/server

The player will live-reload when you make changes to the code.

http://localhost:8000 starts empty: enter a project ID, plus a content or playlist ID, in the control panel on the right and press fetch. The panel then shows what the /player endpoint returned, and the article below the player is rebuilt from that content's own segments, so highlighting and click-to-play can be tried against it. Anything you change in the panel overrides the project's settings, and the page's URL keeps those changes so it can be shared as a repro:

http://localhost:8000/?projectId=12345&contentId=abc-123&set=theme:dark&set=radius:0

Testing

You can run the tests with:

./bin/test_units
./bin/test_screenshots
./bin/test_accessibility
./bin/lint

The screenshot and accessibility tests use Playwright and are Dockerized to avoid test failures as a result of browser version differences. You will need Docker installed to run these tests. These tests run automatically when pushing to GitHub.

Deployment

  1. Update the version with ./bin/version <version>

  2. Commit the changes with Release version <version>

  3. Push the changes and wait for CI to pass

  4. Add a tag with the version: git tag <version>

  5. Push the tag with git push --tags

  6. Create a GitHub Release from the tag and wait for CD to pass

  7. Run ./bin/purge_cache (add --azure to also purge Azure Front Door) or wait ~24 hours for the cache to expire.

    Wait 15 minutes after the npm publish completes before using the purge script.

Contribution

We welcome contributions from our customers, and members of the public. Please open a GitHub issue if you are having trouble using the player or something isn't working as expected.

We'd prefer you didn't fork this repository and instead contact us if you have a requirement that is not met by the current player. Note that it is possible to build a custom user-interface on top of the existing player.

License

Copyright (c) 2023 Lstn Ltd (trading as BeyondWords). All rights reserved.

This repository and its contents, including but not limited to source code, documentation, and assets, are the sole property of BeyondWords and are protected by applicable copyright, trademark, and other intellectual property laws.

You are granted permission to use the player embed, SDK and the provided NPM package for your projects. No part of this repository may be otherwise reproduced, distributed, modified, or transmitted in any form or by any means, electronic or mechanical, without the prior written permission of BeyondWords, except for the purpose of submitting pull requests and contributing to the project.

Contributions in the form of pull requests are welcome; however, BeyondWords reserves the right to review, approve, or reject any modifications to the code.

For inquiries and permission requests, please contact [email protected].

版本与发布记录

@beyondwords/player 共发布 165 个版本,首次发布于 2023/03/22;过去 12 个月发布了 17 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.5.4latest2026/11/062 天前
0.5.32026/10/2118 天前
0.5.22026/10/1722 天前
0.5.12026/10/1325 天前
0.5.02026/10/071 个月前
0.4.92026/09/161 个月前

关于 @beyondwords/player 的常见问题

@beyondwords/player 是什么?

BeyondWords is an AI voice and audio CMS that enables publishers to transform their content into natural-sounding and captivating audio experiences for their audiences. This repository includes the BeyondWords player, which seamlessly integrates with the

如何安装 @beyondwords/player?

在项目目录运行 npm install @beyondwords/player,或使用 pnpm add / yarn add / bun add。

@beyondwords/player 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/beyondwords__player 是否存在。

@beyondwords/player 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@beyondwords/player 可以商用吗?

@beyondwords/player 使用 See license in README.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@beyondwords/player 的下载量有多少?

根据 npm 官方下载统计,@beyondwords/player 在 2026/10/08 – 2026/11/06 这 30 天内被下载 8,602 次,日均约 287 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@beyondwords/player 还在维护吗?

最新版本 0.5.4 发布于 2026/11/06(2 天前);至今共发布 165 个版本,其中过去 12 个月发布了 17 个;首次发布于 2023/03/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。