Scan your whole stack
Are you using @pfdev/api-types?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v3.0.49
@pfdev/api-types was last scanned on 29 Nov 2026 at version 3.0.49. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 3.0.49 LATEST | 29 Nov 2026 | No rules fired |
| 3.0.48 | 29 Nov 2026 | No rules fired |
| 3.0.46 | 25 Nov 2026 | No rules fired |
| 3.0.45 | 21 Nov 2026 | Not shown |
| 3.0.44 | 20 Nov 2026 | Not shown |
Findings for v3.0.49. 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 3.0.49; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
TypeScript types for PF API V3, synced directly from TypeBox schemas in pfapi-fs.
npm install @pfdev/api-types
import { useState, useEffect } from 'react';
import type { SetDetail } from '@pfdev/api-types';
function SetDisplay({ setId }: { setId: string }) {
const [set, setSet] = useState<SetDetail | null>(null);
const [loading, setLoading] = useState(true);
useEffect(() => {
const fetchSet = async () => {
const response = await fetch(`/api/v3/sets/${setId}`);
const data: SetDetail = await response.json();
setSet(data);
setLoading(false);
};
fetchSet();
}, [setId]);
if (loading) return <div>Loading...</div>;
if (!set) return <div>Not found</div>;
return (
<div>
<h1>{set.name}</h1>
<p>Series: {set.series}</p>
<p>Released: {set.releaseddate}</p>
<img src={set.imglogo} alt={set.name} />
{set.current_price && (
<p>Current Price: ${set.current_price}</p>
)}
<div>
<p>7-day change: {set.change_7d}%</p>
<p>1-year change: {set.change_1y}%</p>
</div>
<h3>Rarity Distribution</h3>
<ul>
{set.rarities.map((rarity) => (
<li key={rarity.rarity}>
{rarity.rarity}: {rarity.count} cards
</li>
))}
</ul>
</div>
);
}
Benefits:
set. propertiescurrent_price?: number)rarities: RarityCount[])✅ Single Source of Truth - Types synced from pfapi-fs schemas\ ✅ Fully Typed - IDE autocompletion on all API responses\ ✅ Zero Dependencies - Only ~5 KB, no runtime overhead\ ✅ Type Safe - Catch errors at compile time, not runtime\ ✅ Free - No paid npm account needed
Add or modify V3 endpoints with TypeBox schemas:
// pfapi-fs/src/routes/v3/sets/schemas.ts
export const SetDetailSchema = Type.Object({
setid: Type.String(),
name: Type.String(),
series: Type.String(),
// ... more fields
});
export type SetDetail = Static<typeof SetDetailSchema>;
cd ../pfapi-types
npm version patch # or minor/major
This automatically:
../pfapi-fs/src/routes/v3/*/schemas.tsnpm publish
Verifies v3.ts changed, then publishes to npm.
To manually regenerate types without versioning:
npm run generate
pfapi-fs/src/routes/v3/sets/schemas.ts ← Edit here
↓
npm run generate
↓
pfapi-types/v3.ts ← Auto-synced
↓
Consumer imports
No drift possible — types always match the backend schemas.
generate-types.sh - Script that syncs TypeBox schemas from pfapi-fspackage.json - npm metadata with automated scriptsv3.ts - Auto-generated types (do not edit manually)index.ts - Main entry point (re-exports v3.ts)The preversion hook prevents versioning if types haven't changed. Make sure:
npm run generate to test schema syncCheck that:
src/routes/v3/*/schemas.tsMake sure npm is authenticated and you have publish permissions for @pfdev/api-types.
npm loginnpm publishFind 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.