How chenbin3625/opensync works
OpenSync is a visual scheduler and task manager for syncing storage exposed through AList/OpenList. Users configure engines and sync jobs, run them manually or on a schedule, then follow per-file progress and history; notifications and system settings support that workflow. The README documents the product capabilities, while excerpts show selected frontend routing, API, and realtime behavior. Backend service-to-service wiring is not excerpted, so uncertain internal links are omitted or marked unverified.
Main entry points: request.ts HTTP API client · index.tsx Authenticated routes · handler HTTP handlers · task_executor.go Task execution
Components 25
Web application
- Web app shell
frontend/src/App.tsx - Authenticated routes
frontend/src/router/index.tsx - Job management
frontend/src/pages/Home/index.tsx - Task history and detail
frontend/src/pages/Home/TaskDetail.tsx - Realtime task view
frontend/src/pages/Home/useRealtimeTask.ts - Engine management UI
frontend/src/pages/Engine/index.tsx - Notification settings UI
frontend/src/pages/Notify/index.tsx - System settings UI
frontend/src/pages/Setting/index.tsx - HTTP API client
frontend/src/api/request.ts
Sync task runtime
- HTTP handlers
backend/internal/handler - Job management
backend/internal/service/job_service.go - Job scheduler
backend/internal/service/job_scheduler.go - Task execution
backend/internal/service/task_executor.go - Directory scanning
backend/internal/service/task_scan.go - File transfer
backend/internal/service/copy_item.go
Storage and notifications
- AList/OpenList clients
backend/internal/service/alist_client.go - Notification delivery
backend/internal/service/notify_service.go
Accounts and settings
- Authentication
backend/internal/middleware/auth.go - User and recovery
backend/internal/service/user_service.go - Runtime settings
backend/internal/handler/system_handler.go
Persistent data
- Database mappers
backend/internal/mapper - SQLite data
Other components
- NAS operator
- AList/OpenList storage
- Webhook and messaging services
Connections 35
- NAS operator → Web app shell: uses
README.md - Web app shell → HTTP API client: checks session
frontend/src/App.tsx - Web app shell → Authenticated routes: renders
frontend/src/App.tsx - Authenticated routes → Job management: routes to
frontend/src/router/index.tsx - Authenticated routes → Task history and detail: routes to
frontend/src/router/index.tsx - Authenticated routes → Engine management UI: routes to
frontend/src/router/index.tsx - Authenticated routes → Notification settings UI: routes to
frontend/src/router/index.tsx - Authenticated routes → System settings UI: routes to
frontend/src/router/index.tsx - Job management → HTTP API client: requests jobs
- Task history and detail → HTTP API client: requests history
- Realtime task view → HTTP API client: fetches progress
frontend/src/pages/Home/useRealtimeTask.ts - Job management → Realtime task view: shows progress
- Engine management UI → HTTP API client: manages engines
- Notification settings UI → HTTP API client: manages channels
frontend/src/pages/Notify/index.tsx - System settings UI → HTTP API client: updates settings
- HTTP API client → HTTP handlers: sends requests
README.md - HTTP handlers → Authentication: checks access
- HTTP handlers → Job management: handles jobs
- Job management → Job scheduler: schedules jobs
- Job scheduler → Task execution: starts runs
- Job management → Task execution: runs jobs
- Task execution → Directory scanning: scans paths
- Task execution → File transfer: transfers files
- Directory scanning → AList/OpenList clients: lists paths
- File transfer → AList/OpenList clients: copies items
- AList/OpenList clients → AList/OpenList storage: accesses storage
README.md - HTTP handlers → Notification delivery: configures channels
- Notification delivery → Webhook and messaging services: sends messages
README.md - HTTP handlers → User and recovery: handles accounts
- HTTP handlers → Runtime settings: handles settings
- Job management → Database mappers: persists jobs
- Task execution → Database mappers: persists history
- User and recovery → Database mappers: persists users
- Runtime settings → Database mappers: persists settings
- Database mappers → SQLite data: reads and writes