mirror of
https://github.com/Heretek-Games/drop-retroachievements.git
synced 2026-10-12 02:05:35 +00:00
main
Closes #8
Drop RetroAchievements
RetroAchievements.org integration plugin for Drop (#8).
API
POST /config— store{ username, apiKey }in plugin storage (the key is never returned or logged). Falls back toRETROACHIEVEMENTS_USER/RETROACHIEVEMENTS_API_KEY.GET /config—{ configured, username }.GET /games/:hash— resolves the ROM hash viadorequest.php?r=gameid&m=<hash>, then returns the user's live progress fromAPI_GetGameInfoAndUserProgress.php({ linked, gameId, title, total, earned }).POST /sync— accepts{ gameId }or{ hash }, fetches live progress, computes unlocks withnewlyUnlocked, persists known keys per user/game (known:<user>:<gameId>), broadcasts only newdrop:achievement:unlockevents, and returns the sync summary. The legacy{ progress, knownAchievements }payload shape is still accepted.
Build
npm ci
npm run build
npm test
npm run typecheck
Languages
TypeScript
83%
JavaScript
17%