- TypeScript 99.7%
- JavaScript 0.2%
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. |
||
|---|---|---|
| apps/desktop | ||
| docs | ||
| packages/shared | ||
| tests/e2e | ||
| .editorconfig | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc.json | ||
| AGENTS.md | ||
| eslint.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| playwright.config.ts | ||
| README.md | ||
| tsconfig.base.json | ||
| tsconfig.json | ||
| vitest.config.ts | ||
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.mdand all documents referenced by it. Implement Phase 0 and Phase 1 fromdocs/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.