
Security News
pnpm 11.5 Adds Support for Recognizing npm Staged Publishes
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.
@bagdock/loyalty-react
Advanced tools
Bagdock Loyalty React SDK — embeddable themed components for referrals, rewards, and points
----++ ----++ ---+++
---+++ ---++ ---++
----+--- ----- --------- --------++ ------ ----- ----++-----
---------+ --------++----------++--------+++--------+ --------++---++---++++
---+++---++ ++++---++---+++---++---+++---++---+++---++---++---++------++++
----++ ---++--------++---++----++---++ ---++---++ ---+---++ -------++
----+----+---+++---++---++----++---++----++---++---+++--++ --------+---++
---------++--------+++--------+++--------++ -------+++ -------++---++----++
+++++++++ +++++++++- +++---++ ++++++++ ++++++ ++++++ ++++ ++++
--------+++
+++++++
React components for embedding Bagdock Loyalty — referral widgets, rewards, points, and leaderboards with built-in theming.
npm install @bagdock/loyalty-react @bagdock/loyalty react react-dom
import { BagdockLoyaltyProvider, ReferralWidget, PointsDisplay } from '@bagdock/loyalty-react'
function App() {
return (
<BagdockLoyaltyProvider embedToken="etk_live_..." memberId="mem_abc123">
<PointsDisplay />
<ReferralWidget />
</BagdockLoyaltyProvider>
)
}
<BagdockLoyaltyProvider>Wraps your app to configure the Loyalty client and theming.
| Prop | Type | Description |
|---|---|---|
apiKey | string | API key for direct operator use |
embedToken | string | Embed token (preferred for client-side) |
platformApiKey | string | Platform API key (pak_...) for embedded use |
baseUrl | string | API base URL override |
operatorId | string | Operator ID (required with platformApiKey) |
memberId | string | Pre-identified member ID |
appearance | BagdockAppearance | Theming object |
brandName | string | Operator brand name |
logoUrl | string | Operator logo URL |
<ReferralWidget>Full referral sharing widget with link generation and sharing options.
<ReferralCard>Individual referral card with status and reward info.
<RewardsDisplay>Shows available rewards and redemption options.
<PointsDisplay>Displays the member's current point balance and history.
<LeaderboardWidget>Referral leaderboard showing top referrers.
| Hook | Returns | Description |
|---|---|---|
useLoyalty() | LoyaltyContextValue | Access the Loyalty context (client, theme) |
Customize with a Stripe/Clerk-style appearance prop:
import { BagdockLoyaltyProvider } from '@bagdock/loyalty-react'
import { themes } from '@bagdock/loyalty-react/themes'
<BagdockLoyaltyProvider
embedToken="etk_live_..."
appearance={{
theme: 'dark',
variables: {
colorPrimary: '#6366f1',
borderRadius: '12px',
},
}}
>
{children}
</BagdockLoyaltyProvider>
import { themes } from '@bagdock/loyalty-react/themes'
// themes.default, themes.dark, themes.minimal, etc.
For platforms embedding loyalty on behalf of operators:
<BagdockLoyaltyProvider
platformApiKey="pak_live_..."
operatorId="opreg_wisestorage"
memberId="mem_abc123"
>
<PointsDisplay />
</BagdockLoyaltyProvider>
MIT
FAQs
Bagdock Loyalty React SDK — embeddable themed components for referrals, rewards, and points
We found that @bagdock/loyalty-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
pnpm 11.5 now recognizes npm staged publish approvals in release metadata, preventing those releases from being mistaken for lower-trust package publishes.

Security News
Federal audit finds NIST lacked a plan to clear the NVD backlog, wasted funds on duplicate work, and delayed use of CISA data.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.