How xuckless/pixl-playroom works
Pixl Playroom is a desktop photo developer: users open existing folders, browse and organize photos, edit a persistent recipe, and export developed images. The renderer communicates with Electron’s main process through a preload IPC bridge; main-process services coordinate the photo index, PIXL engine, and export work. The README documents substantial library, develop, AI, and account capabilities; some are represented at subsystem level because their implementations were not sampled. Edges are limited to excerpted references and README statements; unsampled wiring is not asserted.
Main entry points: App.tsx App shell · index.ts IPC bridge · Library.tsx Library interface · EditingSpace.tsx Develop interface
Components 21
Desktop interface
- App shell
src/renderer/src/App.tsx - Library interface
src/renderer/src/views/Library.tsx - Develop interface
src/renderer/src/views/EditingSpace.tsx
Photo library
- Library state
src/renderer/src/state/library.ts - Photo index
src/main/indexer/service.ts - Index process client
src/main/indexer/client.ts - Photo projects
src/main/project/pixlfile.ts
Develop and render
- Develop recipe
src/shared/recipe.ts - Develop state
src/renderer/src/state/develop.ts - Engine model
src/shared/engine-types.ts - Engine client
src/main/engine/client.ts - Native engine host
src/main/engine/host.ts - Image export
src/main/exporter.ts
Application services
- AI models
src/main/ai/models.ts - AI selection
src/main/select/service.ts - IPC bridge
src/preload/index.ts - Renderer API
src/renderer/src/lib/api.ts - Main process
src/main/app.ts - IPC contract
src/shared/ipc.ts
Account and access
- Account access
src/main/account/oauth.ts
Other components
- Photographer
Connections 21
- Photographer → App shell: uses
- App shell → Library interface: shows
src/renderer/src/App.tsx - App shell → Develop interface: shows
src/renderer/src/App.tsx - Photographer → Library interface: opens folders
- Library interface → Library state: updates
- Library state → Renderer API: requests data
src/renderer/src/state/library.ts - Renderer API → IPC bridge: calls bridge
src/renderer/src/lib/api.ts - IPC bridge → IPC contract: uses channels
src/preload/index.ts - IPC bridge → Main process: invokes handlers
src/preload/index.ts - Main process → IPC contract: uses channels
src/main/app.ts - Index process client → Photo index: dispatches requests
src/main/indexer/client.ts - Photo index → Photo projects: manages projects
src/main/indexer/service.ts - Photographer → Develop interface: edits photos
- Develop interface → Develop state: edits state
- Develop state → Renderer API: requests renders
src/renderer/src/state/develop.ts - Develop recipe → Engine model: compiles to
src/shared/recipe.ts - Engine client → Native engine host: hosts engine
src/main/engine/client.ts - Photographer → Image export: exports photos
- AI models → Engine client: requests inference
src/main/ai/models.ts - AI selection → Engine client: uses engine
src/main/select/service.ts - Photographer → Account access: signs in