Skip to content
N-JangraPublic

About

SavePoint is a local-first game library and playtime tracker for organizing your collection, logging progress, and discovering games. Available on the web and Android, with metadata from multiple gaming sources.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

SavePoint

SavePoint is a local-first game library and playtime tracker for web and Android. Organize the games you own or want to play, record progress and ratings, discover titles from multiple catalogs, and review your collection through activity and statistics.

SavePoint is built with HTML, CSS, and vanilla JavaScript. The Android app packages the same frontend/ app using Capacitor.

The optional Android ARM64 Rust core provides a bounded cache for serialized detail records. In Rust and combined modes, hydrated details are released from JavaScript memory according to the Library memory setting, and changing that setting immediately reapplies the limit while keeping the open Details page available; reopens use Rust or IndexedDB. Row-level facts and a URL-only gallery index preserve list and profile artwork choices after release without retaining provider payloads. Small Android single-record operations can use an authenticated synchronous bridge, and larger direct requests are bounded. Background artwork warming reads missing or compact saved detail rows one title at a time, consolidates folder mirroring, and yields while a Details page is open; deferred gallery URLs stay live until activated. Discover suggestion shelves are kept per source/category in IndexedDB and can be shown stale offline; their artwork has a separate pool capped at 256 images / 48 MiB. IndexedDB remains the browser cache and fallback. The Device benchmark can collect opt-in read traces and sampled detail-size distributions, including the count and share above the 64 KiB synchronous-read limit. Production batch pre-warming and section storage await representative evidence. The per-title SPK1 artwork pack uses batched folder writes and a raw-byte WebMessage read channel with Capacitor fallback; the 0.2.3 device runner measures production records and separately counts Capacitor calls and binary bridge frames. Its production device rerun, device smoke validation and wider game/movie/atlas/render matrix remain pending; current-source JDK 17 / Gradle 8.2.1 debug builds succeed. Legacy image files stay available until migration is verified. App-level count-based image trimming is disabled, so cached artwork remains available offline even without a selected folder; Android origin-storage eviction is still controlled by WebView. Browser/WebView origin storage can still be evicted independently. See storage architecture, Rust core build instructions, and the pending verification list.

Android screenshots

Captured from the original Android app (com.cuemark.savepoint). Device status and gesture bars are cropped from the images.

SavePoint Home
Home
SavePoint Discover
Explore / Discover
SavePoint Profile
Profile
SavePoint All games
All games library
SavePoint Statistics
Statistics (Profile → Stats)
SavePoint Quick setup
Quick setup

Features

Area What you can do
Library Add games manually or from a metadata source; search, sort, and filter by status, platform, and tags. All Games includes every status; On Hold, Dropped, and Completed have status-specific collections.
Game tracking Set Backlog, Upcoming, Playing, On Hold, Dropped, or Completed; log playtime, set a goal, and rate games.
Game details View and cache provider descriptions, portrait covers, screenshots, tags, links, requirements, playtime estimates, and other available details. Steam trailers play inline in the details page.
Discover Browse suggestions and search a single catalog or enabled sources together; add games directly to the library.
Mix fetch Experimental combined search that merges matching metadata from enabled sources into one saved game. A per-game source index keeps every matched source, so syncs never shrink a Mix game.
Library tools Multi-select on Home, undo toasts, drag-to-merge, Fix match, Change cover, import duplicate detection, per-game icon Retry/Ignore, match review, and a Sync page with Start, Pause/Resume, and Clear sync controls. Unfinished sync jobs reopen paused after an app restart.
Statistics Explore a Statistics overview with Play time (split by status: time spent, time saved on dropped games, time left on playing and on-hold games, and money per status), Library breakdown, Activity and Ratings sub-pages (grouped ratings and quick rate).
Sharing Share a Home group as themed images (choose games per page and how many pages) or as a PDF list; every share can be saved to Downloads or sent through Android's share sheet.
Profile collections Open All Games, Completed, Favorites, On Hold, or Dropped games, in that order. Favorites has its own page; other collection filters do not include a favorites-only option. Empty status collections offer an Add games card.
Profile and insights See player level and recent badges on Profile.
Statuses and recovery Add, rename or hide status options in Settings (custom statuses get their own Profile shelf), and restore deleted games for 30 days.
Achievements Category rows with View all grids, one page per bronze/silver/gold achievement, Medal Kings, Badge Collector and level insignia, and badge sharing as an image.
Quick setup First-run wizard (completed, to play, playing, on hold, dropped) with Steam + SteamDB trending tiles and HowLongToBeat search; completed picks fill progress from available playtime metadata, and titles already in your library are greyed out and cannot be picked.
Opening animation Settings → Personalize → Opening animation: pick the launch animation (A Default, B Power up, C Button pulse, D Neon draw) on a live stage, adjust logo size and whether the app name shows (not for A, the original launch screen), Test boot, then Save. Animations play as video with a still poster.
Settings Customize appearance and navigation; configure metadata sources, storage, memory (poster cache size), backups, tracking, and diagnostics.
Performance Load library batches and defer off-screen artwork until it approaches the viewport, keeping large image-heavy collections responsive.
Offline use Keep library data locally and cache provider details/artwork where the selected platform and storage settings allow; if a list cover cannot load offline, the saved copy from the game's folder or IndexedDB is used. Video trailers stream when played and are not copied into the library folder.
  • Imports and exports show a floating percentage button that reopens the import page (or an export sheet), plus Android notification progress.

Metadata sources

Built-in source availability and priority are managed in Settings → Metadata Sources.

Source Data Setup
FreeToGame Free-to-play catalog, descriptions, screenshots, platform and requirements where available. No key required.
Steam + SteamDB Steam search and game details, store links, price, artwork, screenshots, categories and requirements. No key required.
HowLongToBeat Main story, main plus extras, completionist estimates and community details; Discover also lists its Popular and Latest on Xbox Game Pass shelves. Browser preview uses the local proxy; Android can use the provider consent/session integration.
RAWG Game catalog, ratings, artwork, screenshots, genres, platforms, the full achievements list and related titles (series and DLC open in the app). Add a personal API key under Settings → Metadata Sources → RAWG (shown with a show/hide eye). RAWG API
IGDB Game catalog, ratings, covers, screenshots, genres, platforms, modes, credits and website links. Configure a Twitch Client ID and access token in source options. Twitch authentication
Custom JSON Search and optional detail fields from a user-configured JSON endpoint. Configure field mappings in Settings → Metadata Sources → Add JSON.

Provider data varies by game and source. RAWG and IGDB are disabled until configured. Keep API credentials private; they are stored with app preferences and may be included in exports.

Artwork and video behavior

When Mix fetch has a HowLongToBeat match, its portrait cover is preferred for the game's portrait cover slot. Other source artwork remains available as a fallback, and landscape artwork is kept for wide hero backgrounds. Steam trailers show as tap-to-play thumbnails: mp4/webm play natively, and Steam's HLS streams play through the bundled frontend/vendor/hls.min.js (hls.js) with a loader that restores the real playlist URL under Capacitor's HTTP layer. Offline, or if a stream cannot play, an "Open the video" link saved with the game is shown. Change cover lists on-device copies of every saved picture, so it works offline.

Per-title SPK1 packs batch artwork into keyed reads and writes. Legacy migration marks cache rows persisted only after native key/signature verification and rebuilds them from the pack bytes; it also repairs missing or signature-mismatched keys in an existing partial pack. Native migration reads each legacy image through a 16 MiB bounded stream and appends/verifies records in batches capped at 4 MiB of image bytes instead of retaining a title-sized base64 batch. Ordinary refills validate the returned signature. Folder sync currently keeps writing legacy image files as well for prior-version compatibility, so pack integration has not yet reduced production write-call count. Identical appends are skipped and written checksums are verified; replaced records are compacted through verified temporary-pack publication. See storage and 0.2.3 release notes.

Screens and routes

Screen Route Purpose
Home / Collection #dashboard Search and manage saved games.
Discover #discover Browse suggestions and search providers.
Explore #explore Open source catalogs, Mix fetch, and Statistics.
Mix fetch #mix Search enabled providers together.
Statistics #statistics Collection overview and statistics subpages.
Settings #settings Configure app behavior, sources, and storage.
Add game #add Create or edit a library entry.
Game details #details?id=<entry-id> View and update a saved game or metadata preview.

Navigation adapts to phone, tablet, and desktop widths. On phones it uses the configurable bottom bar; wider layouts can use a sidebar. Main-page headers stay pinned during scrolling and bottom navigation stays fixed. The route is part of the URL hash, so screens can be linked or refreshed.

Data and storage

SavePoint keeps the working library in IndexedDB (savepoint_library, one record per game, written by a data worker) with a device artwork cache; a small startup mirror (preferences and history) stays under splitapp_savepoint_v1 in localStorage; metadata responses can also use browser Cache Storage. IndexedDB is WebView origin storage, not a regular file under Android/data. Android also keeps Keystore-encrypted recovery records internally and atomically mirrors the full title list under /sdcard/Android/data/<package>/files/CueMark/SavePoint/ in small background batches; if IndexedDB and the internal records are empty, the app can recover from this mirror. The mirror survives cache clearing, but Android removes it when app data is cleared or the app is uninstalled. Artwork stays in IndexedDB and, when configured, the selected Storage Access Framework folder. Local-only artwork repair keeps files when their IndexedDB blobs are missing, and the detail loader rebuilds incomplete file references from the folder. Full folder sync removes stale art only after it has a complete replacement set. Startup makes a best-effort persistent-storage request; the tested Android WebView denied it. The password-protected .sqx contains the full library, source links, saved details, ratings, preferences, history, and cached artwork from IndexedDB and the selected folder. Save it through Android's Save As picker, share it directly through Android's share sheet, or send it from a file manager and import it on another device with the password. Android shows export progress and completion notifications when notifications are allowed. Keep an exported transfer for cross-device migration and uninstall recovery. Plain JSON/TAR and selected-folder files are not encrypted.

The core state has three parts:

Part Contents
items Game identity, status, playtime, goals, rating, source identifiers, cached details and image references.
history Activity records used by Statistics and recent-activity views.
preferences Appearance, navigation, tracking, metadata source settings, credentials, and backup options.

Import accepts .json backups (history is restored for added games, blank fields of existing games are filled in) and .txt/.csv names lists; it does not restore preferences. Manual exports can leave out ratings; written reviews and notes are excluded. Browser exports read saved artwork through the same IndexedDB-backed pipeline as Android and stream JSON to the browser's Save File picker when available, with a download fallback. Save backups before moving or resetting app data. See storage documentation and data schema.

Run the browser preview

Requirements

  • Node.js 18 or newer
  • npm
  • Network access for live provider searches

From the repository's SavePoint/ directory:

npm install
npm run serve

Open the loopback URL printed by the server. Use this server for browser metadata searches: opening frontend/index.html directly with file:// can block cross-origin requests. dev-server.js serves the frontend and provides a restricted proxy for supported providers; it is a development tool, not a production metadata backend.

Build Android

Requirements: JDK 17, Android SDK/platform tools, and the project-managed Gradle wrapper. After installing npm dependencies:

npm run cap:sync
cd android
./gradlew assembleDebug

The debug APK is generated at android/app/build/outputs/apk/debug/app-debug.apk. For a signed release, run python3 compile_apk.py (add --version 0.2.5 to set the version, or --debug for a debug APK); it writes dist/savepoint-<version>-release.apk and signs it when android/keystore.properties exists. More details: requirements and build instructions. In Rust cache modes, SavePoint keeps a bounded number of hydrated detail objects in JavaScript memory while retaining the open Details page. Rust refills happen after paint, small single-record Android reads can use the authenticated synchronous path, and multi-record frames are bounded. Rebuildable thumbnail and Discover artwork cache writes request relaxed IndexedDB durability when supported, while library rows, preferences, history and saved details retain default durability. The Device benchmark can optionally collect a bounded in-memory detail-read log and display native Rust cache counters. Results include p50/p95/max, a previous same-profile run comparison, the actual Rust read transport, battery state when available, and the synthetic cold detail-read flow.

The current 0.2.5 APK output is dist/savepoint-0.2.5-release.apk (also generated at android/app/build/outputs/apk/release/app-release.apk by the signed Gradle release build).

Repository layout

SavePoint/
├── android/                         # Capacitor Android project and native plugins
│   └── app/src/main/java/com/cuemark/savepoint/
├── docs/                            # Product and technical documentation
├── frontend/
│   ├── backend/                      # Storage and metadata service modules
│   │   └── features/                 # Providers, search, details, sources, Mix fetch
│   ├── components/                   # Shared UI components
│   ├── icons/                        # App and interface icon assets
│   ├── pages/                        # Dashboard, Discover, Details, Settings, etc.
│   ├── static/                       # Static supporting pages/assets
│   ├── styles/                       # Base, responsive, theme, and page styles
│   ├── app.js                        # Routing, app state, interactions, persistence
│   └── index.html                    # SPA shell and frontend entry point
├── plans/                            # Engineering notes
├── dev-server.js                     # Local preview server and metadata proxy
├── capacitor.config.json             # Capacitor app identity and web directory
├── package.json                      # Scripts and Capacitor dependencies
└── README.md

Important frontend modules

Path Responsibility
frontend/app.js Hash routing, shared state, user actions, settings, import/export.
frontend/backend/app.js Browser and Android storage bridge.
frontend/backend/features/metadata.js Built-in provider registry and preference normalization.
frontend/backend/features/discover.js Provider searches, suggestions, request cache, and result mapping.
frontend/backend/features/show-detail-controller.js Provider-specific details loaders.
frontend/backend/features/mix.js Matching and merging data across enabled providers.
frontend/pages/ Screen rendering modules.
dev-server.js Local static hosting and restricted provider proxy.

App identity

Property Value
Package savepoint
Version 0.2.5
Capacitor / Android application ID com.cuemark.savepoint
Capacitor web directory frontend/
Browser state key splitapp_savepoint_v1

Documentation

About

SavePoint is a local-first game library and playtime tracker for organizing your collection, logging progress, and discovering games. Available on the web and Android, with metadata from multiple gaming sources.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages