BUILD RECORD 17Lab2024—26

dlm

A service-backed download manager with CLI, TUI, and adaptive segmented downloads.

All work
CreatorCreator · systems and CLI engineeringLocal working set
ARCHITECTURE

TOOLING

01TOOLING
01 / OVERVIEW

What exists.

dlm runs a local daemon over a Unix socket, accepts URLs, curl commands, fetch snippets, and HAR files, then manages downloads with pause, resume, cancel, retry, and queue restoration.

02 / PROBLEM + CONSTRAINT

Where it resisted.

Download management needs reliability across restarts, adaptive streaming for different server capabilities, and a usable interface without a full desktop app.

03 / INTERVENTION

What I changed.

Built a service-backed architecture with SQLite persistence, adaptive single-stream and segmented range downloads, and both CLI and OpenTUI surfaces.

DIFFICULT DECISION

The obvious implementation was not the product.

Separate the daemon from the interface so downloads survive terminal disconnects and the UI can be swapped.

Current proof

04
  1. Unix domain socket daemon with SQLite persistence.
  2. CLI and full-screen OpenTUI dashboard.
  3. Adaptive downloading with segmented range support.
  4. Post-download verification, extraction, and notification hooks.
LESSONS

What this build changed.

A download manager is really a reliability problem: the interface is secondary to getting the bytes across cleanly.

BUILD MATERIALS

The implementation surface.

01Bun02TypeScript03SQLite04OpenTUI
Next build recordOSS Hub