@churchapps/content-providers

中文文档
0.16.1发布于 2026/11/06MITTypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 2796

Helper classes for interacting with third party providers

原始使用文档
文档目录13 节
  1. Installation
  2. Usage
  3. Browse Available Providers
  4. Use a Specific Provider
  5. Built-in Providers
  6. Create a Custom Provider
  7. Get Involved
  8. 🤝 Help Support Us
  9. 🏘️ Join the Community
  10. ⚠️ Report an Issue
  11. 💬 Join us on Slack
  12. 💻 Start Coding
  13. License

@churchapps/content-providers

ContentProviderHelper is a TypeScript library for integrating with third-party content providers like Planning Center, Lessons.church, and more. It provides a unified interface for browsing media libraries, handling OAuth authentication, and retrieving content for playback in church presentation software.

Installation

npm install @churchapps/content-providers

Usage

Browse Available Providers

import { getAllProviders, getAvailableProviders } from '@churchapps/content-providers';

// Get all registered providers
const providers = getAllProviders();

// Get info about available providers
const available = getAvailableProviders();
console.log(available); // [{ id: 'planningcenter', name: 'Planning Center', ... }]

Use a Specific Provider

import { getProvider } from '@churchapps/content-providers';

const provider = getProvider('planningcenter');

// Browse content
const items = await provider.browse();

// Get presentations/playlist for a service
const plan = await provider.getPresentations(serviceId);

Built-in Providers

  • B1ChurchProvider - B1.Church plans (merges plan items with lesson venues and external providers)
  • LessonsChurchProvider - Lessons.church curriculum and add-ons
  • PlanningCenterProvider - Planning Center Services (browse only)
  • BibleProjectProvider - Bible Project videos
  • APlayProvider - A.Play media library
  • SignPresenterProvider - Sign Presenter playlists
  • DropboxProvider - Media files from a Dropbox account
  • JesusFilmProvider - Jesus Film Project (Arclight API)
  • CbnProvider - CBN Superbook curriculum
  • HighVoltageKidsProvider - High Voltage Kids curriculum (static catalog)
  • LifeChurchProvider - Life.Church kids curriculum (static catalog)
  • FreeShowProvider - FreeShow shows discovered on the local network (mocked announcements playlist)

Create a Custom Provider

import { BaseProvider, registerProvider } from '@churchapps/content-providers';

class MyProvider extends BaseProvider {
  // Declare id/name/logos/config/requiresAuth/authTypes/capabilities and implement browse().
  // Every declared authType/capability must be backed by its IProvider methods (enforced by
  // tests/contentProviders.test.ts):
  //   oauth_pkce   -> generateCodeVerifier / buildAuthUrl / buildAuthUrlFromChallenge / exchangeCodeForTokens
  //                   (OAuthHelper implements the standard flow; delegate to it like SignPresenterProvider)
  //   device_flow  -> initiateDeviceFlow / pollDeviceFlowToken (see DeviceFlowHelper)
  //   form_login   -> performLogin
  //   network_discovery -> discoverInstances
  //   playlist / instructions / mediaLicensing -> getPlaylist / getInstructions / checkMediaLicense
  // The protected apiRequest() helper performs authenticated JSON fetches against config.apiBase.
}

registerProvider(new MyProvider());

Get Involved

🤝 Help Support Us

The only reason this program is free is because of the generous support from users. If you want to support us to keep this free, please head over to ChurchApps or sponsor us on GitHub. Thank you so much!

🏘️ Join the Community

We have a great community for end-users on Facebook. It's a good way to ask questions, get tips and follow new updates. Come join us!

⚠️ Report an Issue

If you discover an issue or have a feature request, simply submit it to our issues log. Don't be shy, that's how the program gets better.

💬 Join us on Slack

If you would like to contribute in any way, head over to our Slack Channel and introduce yourself. We'd love to hear from you.

💻 Start Coding

If you'd like to contribute to the project:

  1. Clone the repository
  2. Install dependencies: npm install
  3. Run the development playground: npm run dev
  4. Build: npm run build

License

MIT

版本与发布记录

@churchapps/content-providers 共发布 44 个版本,首次发布于 2026/02/21;过去 12 个月发布了 44 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.16.1latest2026/11/063 天前
0.16.02026/11/063 天前
0.15.22026/10/2812 天前
0.15.12026/10/2713 天前
0.15.02026/10/2614 天前
0.14.02026/10/2416 天前

关于 @churchapps/content-providers 的常见问题

@churchapps/content-providers 是什么?

Helper classes for interacting with third party providers

如何安装 @churchapps/content-providers?

在项目目录运行 npm install @churchapps/content-providers,或使用 pnpm add / yarn add / bun add。

@churchapps/content-providers 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@churchapps/content-providers 支持 ESM 还是 CommonJS?

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

@churchapps/content-providers 可以商用吗?

@churchapps/content-providers 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@churchapps/content-providers 的下载量有多少?

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

@churchapps/content-providers 还在维护吗?

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