Scan your whole stack
From OX Research Newsroom
Are you using flagfish-client-react?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.1.2
flagfish-client-react was last scanned on 29 Nov 2026 at version 0.1.2. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.1.2 LATEST | 29 Nov 2026 | No rules fired |
| 0.1.1 | 29 Nov 2026 | No rules fired |
| 0.1.0 | 29 Nov 2026 | No rules fired |
Findings for v0.1.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.1.2; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Evaluate Boolean flags in React with flagfish-client-react.
'use client'; // Required in Next.js App Router client components.
import { FlagFishProvider, useFlagByKey } from 'flagfish-client-react';
function Navigation() {
const { value, loading, error, refresh } = useFlagByKey({
name: 'new-navigation',
fallback: false,
options: { property: 'country', value: 'PL' }, // optional
});
if (loading) return <p>Loading…</p>;
if (error) return <button onClick={() => { void refresh().catch(() => {}); }}>Retry</button>;
return value ? <p>New navigation</p> : null;
}
function App() {
return <FlagFishProvider apiKey="YOUR_ENVIRONMENT_KEY"><Navigation /></FlagFishProvider>;
}
The hook evaluates automatically and again when its inputs or provider credentials change. value is the supplied fallback until evaluation succeeds and after an error. loading indicates a request in progress; error is an Error or null. refresh() requests a fresh evaluation and resolves to the Boolean or rejects on failure; handle its rejection. The hook cancels obsolete requests and does not subscribe to flag changes. The SDK uses its internal /v1/flag endpoint.
Replace useFlag({ endpoint, data, autoRun }) with useFlagByKey({ name, options, fallback }); remove the endpoint and autoRun arguments. Use value instead of inspecting data.status and refresh() instead of trigger(). The optional targeting options object contains property and value. The provider accepts apiKey; remove the former baseUrl prop. This is a breaking change: the hook now automatically evaluates, and failed evaluations return the explicit fallback while exposing an error.
Run npm run setup:hooks in the checkout to install the repository's Git hooks. The pre-push hook requires the GitHub CLI to be authenticated as flagfishdotco. Git hooks are local and can be bypassed, and the GitHub CLI identity does not itself verify the credentials used by Git to push. Restrict repository write access and configure GitHub rulesets to enforce the account restriction on the server.
Each pull request targeting main runs tests, builds the SDK, checks that its package.json version does not already exist on npm, and runs npm publish --dry-run. Bump the version and update package-lock.json for every PR to main; the checks intentionally fail for an already published version. The dry run validates packaging, but does not prove that npm will authorize a real publication.
A push or PR merge to main that passes the same checks publishes that version with npm’s default latest dist-tag, including a prerelease. Choose the version carefully; this workflow does not bump it automatically. A failed publish can be retried by running the workflow manually on main, provided the version is still unpublished. npm versions cannot be republished. To enable publishing, configure the package's npm Trusted Publisher for GitHub owner flagfish-dot-co, repository flagfish-react, workflow filename publish.yml, and allow npm publish. The workflow requires GitHub-hosted runners and OIDC; no npm token is stored in GitHub. Configure trusted publishing shortly before the first release: a new npm trusted-publisher configuration expires if its first successful publish does not occur within two days. If the first push fails before setup, configure it and run the workflow manually on main. Limit access to main and require the validation check in GitHub branch protection.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.