How alistgo/alist works
AList is a self-hosted file-list and file-access service that unifies local and cloud storage behind mounted paths. Its central workflow is a client request routed through HTTP handlers to filesystem operations and a selected storage driver, with storage configuration persisted in the database. It also provides search, sharing and authentication, offline downloads, and alternate access interfaces such as WebDAV, S3, FTP/SFTP, and MCP. The graph reflects documented capabilities; unsampled subsystems are shown at their existing directory paths, and edges are limited to relationships evidenced by excerpts, the source index, or the README.
Main entry points: handles Request Handlers · storage.go Storage Operations · router.go HTTP API · offline_download Offline Downloads
Components 17
Access Interfaces
- HTTP API
server/router.go - Request Handlers
server/handles - WebDAV
server/webdav/webdav.go - S3 Interface
server/s3 - FTP / SFTP
server - MCP Tools
server/mcp
File Services
- Filesystem Operations
internal/fs - Search
internal/search - Sharing
internal/share - Offline Downloads
internal/offline_download
Storage Layer
- Storage Operations
internal/op/storage.go - Storage Drivers
drivers - Database
internal/db
Platform Services
- Startup Loading
internal/bootstrap/storage.go - Authentication
internal/authn/authn.go - Task Manager
pkg/task/manager.go
Other components
- Client
Connections 22
- Client → HTTP API: requests
README.md - HTTP API → Request Handlers: routes to
server/router.go - Request Handlers → Storage Operations: manages storage
server/handles/storage.go - Request Handlers → Database: queries
server/handles/storage.go - Request Handlers → Filesystem Operations: serves file actions
README.md - WebDAV → Filesystem Operations: uses
server/webdav/webdav.go - MCP Tools → Request Handlers: exposes tools
- Storage Operations → Database: persists storage
internal/op/storage.go - Storage Operations → Storage Drivers: loads driver
internal/op/storage.go - Startup Loading → Database: loads enabled storages
internal/bootstrap/storage.go - Startup Loading → Storage Operations: initializes storage
internal/bootstrap/storage.go - Search → Storage Operations: searches files
internal/search/search.go - Offline Downloads → Storage Drivers: uses cloud driver
internal/offline_download/115/client.go - Offline Downloads → Filesystem Operations: creates download folder
internal/offline_download/115/client.go - Task Manager → Offline Downloads: runs downloads
- Client → WebDAV: accesses files
README.md - Client → S3 Interface: accesses files
README.md - Client → FTP / SFTP: accesses files
README.md - Client → MCP Tools: uses tools
README.md - Client → Search: searches files
README.md - Client → Sharing: shares files
README.md - HTTP API → Authentication: protects routes