Adult Media Collection Manager
  • TypeScript 99.7%
  • JavaScript 0.2%
Find a file
amayakase 78eaa71dbd Add tag autocomplete and atomic tag saves
Adds multi-select tag autocomplete for releases and photobooks, including draft/new tag tracking, normalization, duplicate reuse, and visual states for saved vs new tags. Saves now create uncategorized tags atomically with the item and roll back cleanly on failure. Updated catalog schemas, UI docs, and E2E coverage for tag editing persistence and cancellation.
2026-10-04 19:34:01 +02:00
apps/desktop Add tag autocomplete and atomic tag saves 2026-10-04 19:34:01 +02:00
docs Add tag autocomplete and atomic tag saves 2026-10-04 19:34:01 +02:00
packages/shared Add tag autocomplete and atomic tag saves 2026-10-04 19:34:01 +02:00
tests/e2e Add tag autocomplete and atomic tag saves 2026-10-04 19:34:01 +02:00
.editorconfig Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
.gitignore Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
.prettierignore Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
.prettierrc.json Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
AGENTS.md Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
eslint.config.mjs Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
package-lock.json Add managed FFmpeg tool installer 2026-10-04 16:52:30 +02:00
package.json Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
playwright.config.ts Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
README.md Add persisted app settings and preferences UI 2026-10-04 19:17:59 +02:00
tsconfig.base.json Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
tsconfig.json Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00
vitest.config.ts Bootstrap Electron workspace and security shell 2026-10-04 00:44:04 +02:00

Adult Media Collection Manager — Codex Build Documentation

This folder is a build specification intended to be placed at the root of the implementation repository.

The application is a local-first Electron media catalog and library manager designed for collections distributed across multiple drives. It catalogs releases, videos, photobooks, people, companies, tags, and physical files, while keeping a persistent index even when a drive is disconnected.

The most important design principles are:

  • catalog metadata is separate from physical file storage
  • multiple libraries may be active simultaneously
  • disconnected libraries remain fully represented in the catalog
  • all expensive work runs as persisted background tasks
  • imports are verified and crash-safe
  • media compatibility is handled with disposable proxies
  • FFmpeg/FFprobe are managed as externally downloaded tools rather than bundled binaries
  • renderer code stays unprivileged and responsive

Run the scaffold

The Phase 0–1 npm monorepo contains the Electron application in apps/desktop and browser-safe contracts in packages/shared. Use Node.js 22.16+ and npm 10.9.2.

npm ci
npm run dev

Run npm run check for format/lint/typecheck/unit tests/build, and npm run test:e2e for an actual Electron launch and security smoke test. See Development scaffold for workspace boundaries and remaining phases.

Documentation map

The Settings page configures appearance, task concurrency and pause, exact duplicate defaults and playback volume/mute/speed. Preferences persist locally across restart. See Application settings.

Document Purpose
AGENTS.md Mandatory Codex/repository rules
docs/00-product-spec.md Product requirements and scope
docs/01-architecture.md Process architecture and module boundaries
docs/02-data-model.md Domain model and database schema guidance
docs/03-library-storage.md Multi-drive library identity and availability
docs/04-task-system.md Persistent task queue and execution model
docs/05-import-pipeline.md Copy/move, dedupe, verification, recovery
docs/06-media-processing.md Probing, thumbnails, contact sheets, proxies
docs/07-tool-manager.md Generic third-party tool lifecycle
docs/08-ipc-api.md Typed main/preload/renderer contract
docs/09-ui-ux.md Application pages and interaction behavior
docs/10-testing.md Test strategy and required scenarios
docs/11-implementation-plan.md Recommended build order
docs/12-codex-workflow.md How to give Codex implementation tasks
docs/DECISIONS.md Accepted architecture decisions
docs/GLOSSARY.md Shared terminology

Suggested first Codex task

After copying these docs into a new repository, give Codex this instruction:

Read AGENTS.md and all documents referenced by it. Implement Phase 0 and Phase 1 from docs/11-implementation-plan.md. Do not implement media processing or imports yet. Establish the Electron security boundary, typed preload API, SQLite migrations, application shell, structured logging, and core domain types. Add tests for the database bootstrap and library CRUD. Update documentation if implementation details require a deliberate decision.

Do not ask Codex to build the entire application in one prompt. Use the phases and vertical slices in docs/11-implementation-plan.md.