How 0xjavlonbeck/trasmetto works
Trasmetto transfers files over HTTP in server and client modes. The server workflow is configured at the CLI, exposes file listings and downloads, accepts uploads, and offers optional archive, browser-management, authentication, and audit features. The client downloads or uploads to a remote server. The graph preserves the README’s major capabilities; several server subsystems are included from documented features and the source index, but their internal call relationships are omitted where excerpts do not establish them.
Main entry points: server.go Server and routes · main.go CLI entry point · handlers.go Browse and download · download.go Client transfers
Components 23
CLI and configuration
- CLI entry point
cmd/trasmetto/main.go - Options and validation
internal/config/config.go
HTTP server
- Server and routes
internal/server/server.go - Browse and download
internal/server/handlers.go - Filesystem access
internal/server/filesystem.go - Server uploads
internal/server/upload.go - ZIP downloads
internal/server/archive.go - Fixed file sets
internal/server/fileset.go - Folder management
internal/server/manage.go
Browser interface
- Browser interactions
static/js/app.js - Page rendering
internal/server/render.go - Embedded web assets
internal/server/assets.go
Transfer client
- Client transfers
internal/client/download.go - Client uploads
internal/client/upload.go - Download progress
internal/client/progress.go - HTTP client setup
internal/client/http.go
Security and operations
- Authentication
internal/server/auth.go - Request logging
internal/server/logging.go - JSON event log
internal/server/eventlog.go - Download limiting
internal/server/throttle.go - TLS certificates
internal/netutil/netutil.go
Other components
- User
- Remote HTTP server
Connections 23
- User → CLI entry point: runs
README.md - CLI entry point → Options and validation: parses options
cmd/trasmetto/main.go - CLI entry point → JSON event log: opens and configures
cmd/trasmetto/main.go - CLI entry point → TLS certificates: generates TLS
cmd/trasmetto/main.go - CLI entry point → Client transfers: runs client mode
- CLI entry point → Server and routes: starts server mode
- User → Browser interactions: uses browser UI
README.md - Browser interactions → Server and routes: requests pages and actions
- Server and routes → Browse and download: routes requests
internal/server/server.go - Browse and download → Server uploads: dispatches POST
internal/server/handlers.go - Browse and download → Filesystem access: resolves and lists files
internal/server/handlers.go - Browse and download → Page rendering: renders listings
internal/server/handlers.go - Server and routes → ZIP downloads: registers archive route
internal/server/server.go - Server and routes → Folder management: registers management route
internal/server/server.go - Server and routes → Fixed file sets: serves fixed-file mode
internal/server/server.go - Client transfers → Remote HTTP server: downloads over HTTP
internal/client/download.go - Client uploads → Remote HTTP server: uploads over HTTP
- Client transfers → Download progress: reports progress
internal/client/download.go - Client transfers → HTTP client setup: uses HTTP transport
internal/client/download.go - Authentication → Server and routes: guards requests
- Request logging → JSON event log: records events
- Download limiting → Browse and download: limits downloads
- Embedded web assets → Browser interactions: provides interface assets