@punktfunk/plugin-amazon

Adds your installed Amazon Games titles to a Punktfunk host's library, launched through the Amazon Games app — with the session ending when you quit the game.

Install it from the host's plugin store (Library → Game sources → Add a source), or:

punktfunk-host plugins add amazon

Windows only. On Linux, plugin-heroic lists your Amazon titles through Heroic.

Windows: the database folder

The Amazon Games app keeps its install list in your profile. The manifest names that one folder, %LocalAppData%\Amazon Games\Data\Games\Sql, by its own files: a current host opens it to the plugin when it installs, and an older host asks for it under Library → Game sources, where Allow is all it takes.

Until then detect still says present (the default library C:\Amazon Games\Library exists) and every scan logs a warning naming the folder. Only that folder is allowed, nothing else in your profile. If your database lives somewhere else, set the path in Library → Game sources → Amazon Games → Settings.

What is read

The Amazon Games app's own install list, %LocalAppData%\Amazon Games\Data\Games\Sql\GameInstallInfo.sqlite (table DbSet: Id, ProductTitle, InstallDirectory, Installed), opened read-only. A title is listed when the app marks it installed and its folder still exists. <install>\fuel.json names the game's exe, which is what lets the host notice when you quit.

Launch is the app's own amazon-games://play/<id>, so the app must be installed and signed in. No art: the database carries none, and the store's CDN needs an entitlement token.

Settings

Field What it does
databasePath Absolute path to GameInstallInfo.sqlite. Empty: the runner's own %LocalAppData% is tried, then every C:\Users\<name> profile.

Commands

punktfunk-plugin-amazon detect            # is Amazon Games installed on this host?
punktfunk-plugin-amazon scan --preview    # what WOULD be synced, as JSON (works with no host)
punktfunk-plugin-amazon uninstall         # drop the games and release the store claim

The kit's parity verb exists too, but has no baseline here: the host never had a built-in Amazon Games scanner.

Development

bun install
bun run typecheck && bun test && bun run build

The framework — store claim, sync engine, __config, CLI verbs, and the launcher-file parsers — lives in @punktfunk/plugin-kit/library. This package is the Amazon-specific part: find GameInstallInfo.sqlite, read it, map rows to entries. See design/library-scanner-plugins.md in the main repo.

Use of AI

This project uses AI for writing code.

License

MIT OR Apache-2.0.

S
Description
A Punktfunk plugin that adds your installed Amazon Games titles as a library source
Readme
126 KiB
0 Stars 1 Watchers 0 Forks
Languages
TypeScript 100%