🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@buzzr/dfs-react

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@buzzr/dfs-react

Framework-agnostic display helpers for rendering @buzzr/dfs-engine settlements — turns DfsSettlementResult into a clean view-model for React, Vue, Svelte, or plain HTML.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
13
-45.83%
Maintainers
1
Weekly downloads
 
Created
Source

@buzzr/dfs-react

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.

Install

npm install @buzzr/dfs-react @buzzr/dfs-engine

Usage

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>
  );
}

Exports

FunctionPurpose
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.

License

MIT

Keywords

dfs

FAQs

Package last updated on 27 May 2026

Did you know?

Socket

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.

Install

Related posts