Developers
Arcade Flix SDK
< 2kb. Reports sessions and scores. Never awards points client-side.
Install
npm install @arcadeflix/sdkStart a session
Call once when gameplay begins. Returns a sessionId.
import { ArcadeFlix } from "@arcadeflix/sdk";
const { sessionId } = await ArcadeFlix.startSession({
gameId: "neon-runner",
});Submit a score
Submit at the end of the run. The backend verifies before any points are awarded.
await ArcadeFlix.submitScore({
sessionId,
score: 18420,
durationMs: 60000,
events: [/* lightweight signals for anti-cheat */],
});Sandboxed iframe games
Creator games are hosted in sandbox="allow-scripts" iframes. They cannot access the wallet provider. Use postMessage to talk to the parent.
window.parent.postMessage({
type: "arcadeflix:submitScore",
sessionId,
score,
}, "*");Anti-fraud rules
- Backend verifies signatures and score plausibility.
- Per-game daily caps. Per-IP rate limits.
- Suspicious sessions move points to disqualified.