Prerequisites
Before installing the SDK, ensure your environment meets these requirements:Node.js
Version 20.0.0 or higherCheck your version:
React
Version 19.1.0 or higherRequired for hooks and UI packages
Get Your API Key
Before installing the SDK, you’ll need an API key from the YouVersion Platform:Create an account
Visit platform.youversion.com and sign up for a developer account.
Choose Your Package
The SDK provides three packages. Choose the one that fits your needs:- UI Components (Recommended)
- React Hooks
- Core API
Install What’s included:
@youversion/platform-react-ui for the complete experience with pre-built components:This package includes both
@youversion/platform-react-hooks and @youversion/platform-core as dependencies, so you get everything in one install.- All UI components (BibleTextView, BibleReader, VerseOfTheDay, etc.)
- All React hooks for data fetching
- Core API clients
- Tailwind CSS styling (auto-injected)
Install All Three Packages
For maximum flexibility, you can install all three packages separately:Installing
@youversion/platform-react-ui automatically includes the other two packages as dependencies, so separate installation is only needed if you want explicit control over versions.Verify Installation
After installing, verify the SDK is working:Environment Setup
Store your API key securely using environment variables:- Next.js
- Vite
- Create React App
- Other
Create a Use in your code:
.env.local file in your project root:.env.local
TypeScript Configuration
The SDK is built with TypeScript and includes type definitions. No additional setup is needed, but ensure yourtsconfig.json has these settings:
tsconfig.json
The SDK uses modern JavaScript features and requires
target: "ES2020" or higher.Styling Setup (UI Package Only)
If you’re using
@youversion/platform-react-ui, styles are automatically injected when you import the package. No additional CSS imports or Tailwind configuration needed!yv:) to prevent style conflicts. Styles are embedded in the JavaScript bundle and injected automatically:
Next Steps
Now that you have the SDK installed, you’re ready to build your first Bible experience:Quickstart Guide
Display your first Bible verse in under 5 minutes
Architecture Overview
Learn how the three packages work together
API Reference
Explore the complete API documentation
Examples
See real-world code examples
