
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@buzzr/dfs-react
Advanced tools
Framework-agnostic display helpers for rendering @buzzr/dfs-engine settlements — turns DfsSettlementResult into a clean view-model for React, Vue, Svelte, or plain HTML.
Framework-agnostic display helpers for rendering settlements from
@buzzr/dfs-engine.
@buzzr/dfs-engine is headless — it gives you a DfsSettlementResult but no
opinion on how to display it. This package turns that result into a tidy
view-model your UI layer can render in React, Vue, Svelte, or vanilla HTML,
without bringing a framework runtime as a dependency.
npm install @buzzr/dfs-react @buzzr/dfs-engine
import { getSlipDisplayModel } from '@buzzr/dfs-react';
function SlipCard({ result }) {
const model = getSlipDisplayModel(result);
return (
<div data-tone={model.tone}>
<header>{model.statusLabel} · {model.multiplierLabel} · {model.payoutLabel}</header>
<ul>
{model.legs.map((leg) => (
<li key={leg.legId} data-tone={leg.tone}>
{leg.label} {leg.line}
{leg.actual !== null && <span> · actual {leg.actual}</span>}
</li>
))}
</ul>
</div>
);
}
| Function | Purpose |
|---|---|
getSlipDisplayModel() | Project a DfsSettlementResult into a view-model |
getStatusTone() | Map an engine status string to a display tone |
formatLegLabel() | Render "{Player} — {PropType}" |
formatLegLine() | Render "o24.5" / "u24.5" |
Despite the name, this package has no React runtime dependency. The name signals its primary consumer audience.
MIT
FAQs
Framework-agnostic display helpers for rendering @buzzr/dfs-engine settlements — turns DfsSettlementResult into a clean view-model for React, Vue, Svelte, or plain HTML.
The npm package @buzzr/dfs-react receives a total of 13 weekly downloads. As such, @buzzr/dfs-react popularity was classified as not popular.
We found that @buzzr/dfs-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.