GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - youversion/platform-sdk-react: React SDK for the YouVersion Platform

BranchesTags
Open more actions menu

Latest commit

 

History

386 Commits
386 Commits

Folders and files

NameName
Last commit message
Last commit date
.agents
.agents
 
 
.changeset
.changeset
 
 
.github
.github
 
 
.husky
.husky
 
 
.vscode
.vscode
 
 
assets
assets
 
 
docs
docs
 
 
examples/vite-react
examples/vite-react
 
 
packages
packages
 
 
scripts
scripts
 
 
tools
tools
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.lintstagedrc.mjs
.lintstagedrc.mjs
 
 
.npmrc
.npmrc
 
 
.prettierignore
.prettierignore
 
 
.prettierrc
.prettierrc
 
 
.rev-dep.config.jsonc
.rev-dep.config.jsonc
 
 
.size-limit.js
.size-limit.js
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTEXT.md
CONTEXT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
PUBLISHING.md
PUBLISHING.md
 
 
README.md
README.md
 
 
RELEASE-RUNBOOK.md
RELEASE-RUNBOOK.md
 
 
commitlint.config.js
commitlint.config.js
 
 
context7.json
context7.json
 
 
greptile.json
greptile.json
 
 
knip.json
knip.json
 
 
oxlint.config.ts
oxlint.config.ts
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
turbo.json
turbo.json
 
 

Repository files navigation

image

License Node.js >= 22.13 Core coverage Hooks coverage UI coverage

YouVersion Platform React SDK

A comprehensive React SDK for integrating YouVersion Platform features into your web applications. This monorepo provides a type-safe API client, React hooks, and ready-to-use components for Bible content.

Play with these React SDK components in the demo app.

Quick Start

NPM packages

This repo contains the source code for three NPM packages which we advise that you install directly:

  • UI components: @youversion/platform-react-ui
  • React hooks: @youversion/platform-react-hooks
  • Direct API access: @youversion/platform-core

Installation

# For UI components
pnpm add @youversion/platform-react-ui

# For React hooks only
pnpm add @youversion/platform-react-hooks

# For direct API access
pnpm add @youversion/platform-core

Quick Start Examples

UI Components

To display a verse, or a range of verses:

import { YouVersionProvider, BibleTextView } from '@youversion/platform-react-ui';

function App() {
  return (
    <YouVersionProvider appKey={"YOUR_APP_KEY"}>
      <BibleTextView reference="JHN.1.1-4" versionId={3034} />
    </YouVersionProvider>
  );
}

To display the YouVersion Verse of the Day:

import { YouVersionProvider, VerseOfTheDay } from '@youversion/platform-react-ui';

function App() {
  return (
    <YouVersionProvider appKey="YOUR_APP_KEY">
      <VerseOfTheDay versionId={3034} />
    </YouVersionProvider>
  );
}

Important

The UI package's coordinated major release moves its compatible public component boundary into client-created open shadow roots. This is a breaking rendered-DOM, styling, automation, and integration change even when React props are unchanged. Review the UI package's Shadow DOM migration guidance before upgrading.

Custom Hooks

import { YouVersionProvider, usePassage } from '@youversion/platform-react-hooks';

function BibleVerse() {
  const { passage, loading } = usePassage({ versionId: 3034, usfm: 'JHN.3.16' });
  if (loading) return <div>Loading...</div>;
  return <div dangerouslySetInnerHTML={{ __html: passage?.content || '' }} />;
}

function App() {
  return (
    <YouVersionProvider appKey="YOUR_APP_KEY">
      <BibleVerse />
    </YouVersionProvider>
  );
}

Core API

import { ApiClient, BibleClient } from '@youversion/platform-core';

const apiClient = new ApiClient({ appKey: 'YOUR_APP_KEY' });
const bibleClient = new BibleClient(apiClient);

// Find available Bible versions in English
const versions = await bibleClient.getVersions('en*');
console.log(versions.data[0].title);

// Fetch the html text of John 3:16 in that first Bible version
const passage = await bibleClient.getPassage(versions.data[0].id, 'JHN.3.16');
console.log(passage.content);

Contributing

Note

We are not yet accepting pull requests from external contributors, though we intend to do so in the future. In the meantime, we welcome you to use the SDK, report bugs via GitHub Issues, and share feedback. See CONTRIBUTING.md for more details.

Package manager

This is a pnpm workspace — the workspace:* dependencies between packages are a pnpm feature, so npm and yarn are not supported. The required pnpm version is pinned in package.json via packageManager (and engines.pnpm).

The Git hooks prefer Corepack (corepack pnpm ...) so a newer global pnpm on your PATH can't change how commits are linted or staged files are formatted, and fall back to plain pnpm where corepack isn't present.

To get the pinned-pnpm guarantee, enable Corepack once:

corepack enable

Note: Node 25+ no longer bundles Corepack — on newer Node, install it first (npm install -g corepack) or just rely on the pnpm fallback with a locally-installed pnpm that satisfies engines.pnpm. See docs/release-hardening-decisions.md (Decision 2) for the rationale and the plan to revisit once Corepack's successor settles.

License

This SDK is licensed under Apache 2.0.

Licensing information for the Bible versions is available at the YouVersion Platform site.

About

React SDK for the YouVersion Platform

Resources

Readme
Apache-2.0 license

Contributing

Contributing
Activity
Custom properties

Stars

26 stars

Watchers

0 watching

Forks

5 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.