Skip to content

📦 Installation¶

To use the Eligibility SDK, you need to install the private npm package from GitHub Packages and configure access using a personal access token.

Step 1: Configure .npmrc¶

Create or update the .npmrc file in your project root:

@redbellynetwork:registry=https://npm.pkg.github.com
npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
always-auth=true

🔑 Replace ${GITHUB_TOKEN} with your GitHub personal access token that has read:packages permission.

Step 2: Install the SDK¶

Run the following command:

npm install @redbellynetwork/eligibility-sdk

This package exports React components and hooks, and is compatible with React 18+.

Prerequisites¶

  • react (v18.x or higher)
  • react-dom (v18.x or higher)
  • viem (v2.x or higher)
  • wagmi (v2.x or higher)
  • @tanstack/react-query (v5.x or higher)
  • A bundler like Vite or Next.js (App Router supported)
npm install @reown/appkit @reown/appkit-adapter-wagmi wagmi viem @tanstack/react-query
More Information¶