How albert-dilas/tornio works
Tornio is a local-first desktop workbench for PDF/document, media, image, developer, and local-AI tasks. Users select a tool or pipeline in the interface, submit files to the localhost API, and receive transformed files or workspace results; the README describes these operations as local processing. The backend exposes dedicated tool routes and processing services, with shared upload handling, job tracking, and desktop/system capabilities. The source excerpts support several specific route-to-service links; broader tool families are represented at subsystem level because their individual implementations were not sampled.
Main entry points: main.py FastAPI application · endpoints Document tool routes · pipelines.py Pipeline executor · system_service.py System status
Components 23
Workbench interface
- Home launchpad
frontend/src/app/page.tsx - Tool screens
frontend/src/app/(tools) - Pipeline builder
frontend/src/app/pipelines/page.tsx - File workspace
frontend/src/app/workspace/page.tsx
API workflows
- Document tool routes
backend/app/api/v1/endpoints - Studio tool routes
backend/app/api/v1/endpoints/studio_tools.py - Pipeline executor
backend/app/api/v1/endpoints/pipelines.py - System routes
backend/app/api/v1/endpoints/system.py
Processing engines
- PDF processors
backend/app/services - PDF compression
backend/app/services/pdf_compressor.py - PDF metadata
backend/app/services/pdf_metadata.py - Studio engines
backend/app/services/studio_tools_service.py - Workspace inspection
backend/app/services/workspace_inspector.py
Local runtime
- FastAPI application
backend/app/main.py - Upload handling
backend/app/core/dependencies.py - Jobs and streams
backend/app/core/jobs.py - Local configuration
backend/app/core/config.py
Desktop services
- Desktop lifecycle
backend/app/services/desktop_service.py - System status
backend/app/services/system_service.py - System tray
backend/app/core/tray.py - Engine detection
backend/app/utils/binaries.py
Other components
- Workbench user
- Online services
Connections 28
- Workbench user → Home launchpad: opens
README.md - Workbench user → Tool screens: selects tools
README.md - Workbench user → Pipeline builder: builds workflows
README.md - Workbench user → File workspace: inspects files
README.md - FastAPI application → Document tool routes: mounts routes
- FastAPI application → Studio tool routes: mounts routes
- FastAPI application → Pipeline executor: mounts routes
- FastAPI application → System routes: mounts routes
- Document tool routes → PDF compression: calls
backend/app/api/v1/endpoints/compress.py - Document tool routes → PDF metadata: calls
backend/app/api/v1/endpoints/metadata.py - Document tool routes → PDF processors: dispatches tools
backend/app/api/v1/endpoints/pipelines.py - Studio tool routes → Studio engines: calls
backend/app/api/v1/endpoints/studio_tools.py - Pipeline executor → PDF compression: invokes step
backend/app/api/v1/endpoints/pipelines.py - Pipeline executor → PDF metadata: invokes step
backend/app/api/v1/endpoints/pipelines.py - Pipeline executor → Studio engines: invokes step
backend/app/api/v1/endpoints/pipelines.py - Document tool routes → Upload handling: uses uploads
backend/app/api/v1/endpoints/compress.py - Studio tool routes → Upload handling: uses uploads
backend/app/api/v1/endpoints/studio_tools.py - Pipeline executor → Upload handling: saves uploads
backend/app/api/v1/endpoints/pipelines.py - FastAPI application → Workspace inspection: uses inspection
backend/app/main.py - System routes → Desktop lifecycle: calls
backend/app/api/v1/endpoints/system.py - System routes → System status: calls
backend/app/api/v1/endpoints/system.py - Desktop lifecycle → Local configuration: reads settings
backend/app/services/desktop_service.py - System status → Desktop lifecycle: uses desktop state
backend/app/services/system_service.py - System status → Engine detection: checks engines
backend/app/services/system_service.py - FastAPI application → System tray: starts runtime
backend/app/main.py - Studio engines → Engine detection: detects engines
backend/app/services/studio_tools_service.py - Desktop lifecycle → Online services: checks updates
- System status → Online services: checks releases
backend/app/services/system_service.py