How neptunedev77/picturas-video-casos-de-uso works
PictuRAS is a web image-editing platform with account and subscription services, project-based editing, asynchronous tool processing, and real-time progress. The main workflow is browser editing through the frontend and API gateway, project orchestration, queued image/video processing, and returned results. The README documents the broad service topology; sampled code confirms gateway routing, service startup, and worker behavior. Some project-service and frontend internals were not sampled, so their links rely on README statements rather than inferred module calls.
Main entry points: app.js API gateway · projects.js Project orchestration · page.tsx Editing interface · subscriptions.js Plans and billing
Components 21
Web client
- Editing interface
projeto/frontend/app/dashboard/[pid]/page.tsx - Account and billing
projeto/frontend/app/dashboard/account/page.tsx
Platform services
- API gateway
projeto/apiGateway/app.js - JWT checks
projeto/apiGateway/auth/auth.js - Project orchestration
projeto/projects/routes/projects.js - Video job routes
projeto/projects/routes/silence.js - Compression routes
projeto/projects/routes/compression.js - User and presets
projeto/users/routes/users.js - Plans and billing
projeto/subscriptions/routes/subscriptions.js - Image storage API
projeto/imageStorageService/server.js - Progress gateway
projeto/wsGateway/index.js
Media processing
- Image editing tools
projeto/Tools - AI image tools
projeto/Tools - Silence removal
projeto/Tools/silence_removal/worker.py - Video compression
projeto/Tools/video_compression/worker.py
Shared infrastructure
- RabbitMQ
- Encrypted object storage
- User database
projeto/users/app.js - Project database
projeto/projects/app.js - Subscription database
projeto/subscriptions/app.js
Other components
- Editor
Connections 27
- Editor → Editing interface: edits projects
- Editing interface → API gateway: calls REST API
- API gateway → JWT checks: checks tokens
- API gateway → Project orchestration: routes project requests
projeto/apiGateway/app.js - API gateway → User and presets: routes user requests
projeto/apiGateway/app.js - API gateway → Plans and billing: routes billing requests
projeto/apiGateway/app.js - Editing interface → Image storage API: uploads images
- Image storage API → Encrypted object storage: stores objects
- Project orchestration → Project database: persists projects
projeto/projects/app.js - User and presets → User database: persists accounts
projeto/users/app.js - Plans and billing → Subscription database: persists billing
projeto/subscriptions/app.js - Project orchestration → RabbitMQ: dispatches tool jobs
- Video job routes → RabbitMQ: queues video jobs
- Compression routes → RabbitMQ: queues compression jobs
- RabbitMQ → Image editing tools: dispatches image jobs
- RabbitMQ → AI image tools: dispatches AI jobs
- RabbitMQ → Silence removal: delivers jobs
projeto/Tools/silence_removal/worker.py - RabbitMQ → Video compression: delivers jobs
projeto/Tools/video_compression/worker.py - Image editing tools → RabbitMQ: publishes results
- AI image tools → RabbitMQ: publishes results
- Silence removal → RabbitMQ: publishes progress and results
projeto/Tools/silence_removal/worker.py - Video compression → RabbitMQ: publishes progress and results
projeto/Tools/video_compression/worker.py - RabbitMQ → Project orchestration: returns job results
- RabbitMQ → Progress gateway: delivers progress events
- Progress gateway → Editor: pushes live updates
- Plans and billing → Project orchestration: provides plan limits
- Account and billing → API gateway: manages account