An advanced game library manager.
  • TypeScript 88.3%
  • JavaScript 11.3%
  • HTML 0.4%
Find a file
amayakase 3dc2b9ffd2
Some checks failed
CI / check (push) Has been cancelled
Reopen recent library on startup
Add startup logic to reopen only the most recently used library before the renderer loads so the current library is available on first render. Failures are logged without blocking the chooser, and manually closing a library no longer causes an immediate reopen until the next app launch. The change also updates settings copy/docs and adds startup and smoke-test coverage for missing libraries, first launch, and Unicode paths.
2026-10-02 22:57:08 +02:00
.github/workflows Scaffold Milestone 0 Electron monorepo 2026-10-02 21:57:03 +02:00
apps/desktop Reopen recent library on startup 2026-10-02 22:57:08 +02:00
docs Reopen recent library on startup 2026-10-02 22:57:08 +02:00
packages Add persistent appearance settings support 2026-10-02 22:53:37 +02:00
scripts Reopen recent library on startup 2026-10-02 22:57:08 +02:00
tests Reopen recent library on startup 2026-10-02 22:57:08 +02:00
.gitignore Scaffold Milestone 0 Electron monorepo 2026-10-02 21:57:03 +02:00
AGENTS.md Switch workspace docs to npm 2026-10-02 21:35:54 +02:00
CODEX_START.md Add project architecture and product docs 2026-10-02 21:33:44 +02:00
eslint.config.js Scaffold Milestone 0 Electron monorepo 2026-10-02 21:57:03 +02:00
package-lock.json Scaffold Milestone 0 Electron monorepo 2026-10-02 21:57:03 +02:00
package.json Scaffold Milestone 0 Electron monorepo 2026-10-02 21:57:03 +02:00
PROJECT_SPEC.md Switch workspace docs to npm 2026-10-02 21:35:54 +02:00
README.md Reopen recent library on startup 2026-10-02 22:57:08 +02:00
tsconfig.json Scaffold Milestone 0 Electron monorepo 2026-10-02 21:57:03 +02:00
vitest.config.ts Scaffold Milestone 0 Electron monorepo 2026-10-02 21:57:03 +02:00

Local Game Library Manager — Build Documentation

This repository contains an Electron application and build specification for a portable, local-first game collection manager for manually curated games. The manual catalog is implemented; ZIP/folder build import follows in Milestone 2.

The application is intentionally not a store client and not a metadata scraper. It is a personal archive, launcher, version manager, integrity checker, and future translation workspace for games obtained from sources such as itch.io, DLsite, developer websites, and other manually managed collections.

Start here

  • AGENTS.md — instructions for Codex / coding agents.
  • CODEX_START.md — copy/paste prompts for beginning implementation milestone-by-milestone.
  • PROJECT_SPEC.md — all documentation concatenated into one reference file.
  • docs/PRODUCT_SPEC.md — product goals, terminology, user stories, and scope.
  • docs/ARCHITECTURE.md — application architecture and package boundaries.
  • docs/DATA_MODEL.md — entities, relationships, and proposed SQLite schema.
  • docs/LIBRARY_FORMAT.md — portable on-disk library layout and path rules.
  • docs/IMPORT_AND_BUILDS.md — archive import, manifests, versions, variants, DLC, and integrity.
  • docs/WORKSPACES_AND_TRANSLATION.md — editable workspaces and future translation tooling.
  • docs/ENGINE_ADAPTERS.md — engine detection and optional engine-specific capabilities.
  • docs/IPC_API.md — renderer/main process contract.
  • docs/UI_UX.md — React/MUI screens and interaction rules.
  • docs/TESTING.md — test strategy and important edge cases.
  • docs/ROADMAP.md — implementation order and milestone acceptance criteria.
  • docs/DECISIONS.md — architectural decisions that should not be silently changed.
  • docs/IMPLEMENTATION_NOTES.md — concrete implementation cautions and defaults.

Product principles

  1. Manual metadata is authoritative. The application may suggest technical facts, but it does not overwrite curated titles, descriptions, covers, links, notes, or tags.
  2. The library is portable. Moving the library directory or external drive must not invalidate managed games.
  3. Imported builds are immutable. User experimentation happens in installations or workspaces, never in the archived source build.
  4. Workspaces are explicitly editable. They exist for translation, modding, investigation, and experimentation.
  5. Unsupported engines still work. Engine adapters add convenience; they are not required to import, launch, browse, hash, or diff a game.
  6. No cloud dependency. The core product works fully offline.
  7. The UI is a client of domain services. React components do not directly manipulate the filesystem or SQLite.

MVP platform

The MVP targets Windows 11 x64. The architecture should avoid unnecessary Windows-only assumptions so Linux support can be added later, but Windows behavior is the acceptance baseline.

Technology direction

  • Electron
  • React
  • TypeScript with strict: true
  • MUI
  • Vite / electron-vite style build pipeline
  • npm workspaces
  • SQLite using a main-process-only adapter
  • SHA-256 file manifests
  • Node filesystem APIs in the Electron main process only

Pin exact dependency versions in the lockfile when implementation begins. Do not make the architecture depend on a CDN or online service.

Implemented: Milestones 0 and 1

Requirements: Node.js 22.16+ and npm. Install with npm ci.

npm run dev        # Electron + renderer development
npm run check      # strict typecheck, unit/integration tests, lint, production build
npm run test:smoke # build and exercise catalog, cover, restart, relocation, and isolation
npm start          # open the production build after npm run build

Create a library by choosing an empty folder and a display name, or open an existing library folder. The folder contains library.json, library.sqlite, and managed asset/game directories. Recent-library locations live in Electron user data; catalog metadata and artwork live entirely in the portable library.

Add games without importing builds. Edit titles, alternate titles, developer, publisher, release date text, description, Markdown source notes, tags, and generic labeled links. Search titles/developers/tags, filter by tag, and sort the cover grid. Choose a cover, preview/crop it, then save a byte-preserved original and PNG display copy. Close the library before moving its folder, then reopen it at its new location. Game deletion requires confirmation and retains artwork files on disk. See docs/CATALOG.md for workflow and storage details.

Packages: shared owns runtime schemas and IPC types; core owns the settings service and storage interface; database owns SQLite and numbered transactional migrations; engine-adapters reserves the optional detection boundary. Desktop main owns library lifecycle, filesystem access, cover decoding, logging, and IPC registration. Preload is bundled CommonJS for Electron's sandbox; renderer contains React and MUI only.

CI runs npm ci, npm run check, and the real Electron smoke test on Windows. Tests use synthetic temporary data and never touch a user's library.

Navigation and Settings

The desktop shell has Games in the left navigation and Settings at the bottom. Settings contains General and Appearance sections, current-library/recent-library information, and clearly labeled planned preferences. See Settings for the configuration plan and application versus portable-library storage scope.

Appearance settings now include persistent system/light/dark theme, density, scale, reduced motion, cover size, and default sort. Preferences apply across libraries.

Startup automatically reopens the most recently used library. If it is unavailable, the library chooser remains available; reconnect or open its new location manually.