How picturas-um/picturas-27 works
PictuRAS is a browser-based image editor combining project-based editing, traditional image operations, AI tools, sharing, accounts, and paid plans. A user works in the frontend, which reaches backend services through the API gateway; project processing uses asynchronous tool workers and image storage, with results returned to the project. The README documents progress updates through a separate RabbitMQ-to-WebSocket path. The graph preserves the main editing, account, storage, and live-progress branches. Some service links are documented rather than verified in sampled code; unsampled implementation details are not inferred.
Main entry points: projects.js Project management · app.js API gateway · Tools Image tool workers · page.tsx Web application
Components 17
Client experience
- Web application
frontend/app/dashboard/[pid]/page.tsx
Backend services
- API gateway
apiGateway/app.js - Accounts and presets
users/routes/users.js - Plans and billing
subscriptions/routes/subscriptions.js - WebSocket gateway
wsGateway/index.js - User database
users/models/user.js - Subscription database
subscriptions/models/subscription.js
Editing workflow
- Project management
projects/routes/projects.js - Tool orchestration
projects/controllers/process.js - Project state
projects/models/project.js - Preview cache
projects/models/previewCache.js - Image tool workers
Tools - Generative API mock
generative-mock/server.py
Messaging and storage
- Image storage API
imageStorageService/server.js - SeaweedFS storage
- RabbitMQ
Other components
- Editor
Connections 18
- Editor → Web application: edits images
README.md - Web application → API gateway: sends API requests
README.md - API gateway → Accounts and presets: routes account requests
apiGateway/app.js - API gateway → Project management: routes project requests
apiGateway/app.js - API gateway → Plans and billing: routes plan requests
apiGateway/app.js - Accounts and presets → User database: persists accounts
README.md - Plans and billing → Subscription database: persists plans
README.md - Project management → Project state: reads and updates
projects/routes/projects.js - Project management → Tool orchestration: delegates processing
projects/routes/projects.js - Tool orchestration → RabbitMQ: dispatches tool jobs
README.md - RabbitMQ → Image tool workers: delivers jobs
README.md - Image tool workers → RabbitMQ: publishes results
README.md - Project management → Image storage API: requests image operations
- Image storage API → SeaweedFS storage: stores image objects
README.md - Project management → Preview cache: caches previews
- RabbitMQ → WebSocket gateway: feeds progress events
README.md - WebSocket gateway → Web application: pushes progress updates
README.md - Image tool workers → Generative API mock: uses for expansion
README.md