Volt Download Manager
  1. หน้าหลัก
  2. วิธีใช้
  3. สถาปัตยกรรม

สถาปัตยกรรม

How Volt Download Manager's pieces fit together.

Crates

เส้นทาง Crate บทบาท
crates/engine vdm-engine ดาวน์โหลดไฟล์เดียวผ่าน HTTP(S) หรือ FTP(S): ตรวจสอบไฟล์ วางแผนแบ่งส่วน ทำงานเชื่อมต่อ จัดเก็บสถานะการดาวน์โหลดเพื่อดำเนินการต่อ จำกัดการเชื่อมต่อต่อโฮสต์ จำกัดความเร็ว ตรวจสอบ checksum และใช้สคริปต์พร็อกซี
crates/app vdm-app แอปเดสก์ท็อป (voltdownloadmanager.exe, egui): รายการ, หมวดหมู่, คิว, ตัวจัดกำหนดการ, กล่องโต้ตอบ, ถาด, การตั้งค่า
crates/cli vdm-cli ดาวน์โหลดแบบไม่ใช้ส่วนติดต่อผู้ใช้พร้อมแสดงความคืบหน้า (get, resume), วิดีโอ, ทอร์เรนต์ และคำสั่งของ API สำหรับระบบอัตโนมัติ: ไลบรารีที่โปรแกรมของแอปเรียกใช้ (voltdownloadmanager --cli …) และ voltdownloadmanager-cli ซึ่งเป็นตัวเรียกใช้งานขนาดเล็กที่เริ่มโปรแกรมด้วยอาร์กิวเมนต์ ใช้เทอร์มินัล และส่งคืนรหัสออกแบบเดียวกัน
crates/mcp vdm-mcp เซิร์ฟเวอร์ MCP (voltdownloadmanager-mcp): ผู้ช่วย AI แสดงรายการ เพิ่ม และควบคุมการดาวน์โหลดของแอปที่กำลังทำงานอยู่ผ่าน API ระบบอัตโนมัติ
crates/remote vdm-remote การควบคุมระยะไกล (#141): เซิร์ฟเวอร์ HTTPS ที่โทรศัพท์หรือคอมพิวเตอร์ที่จับคู่บนเครือข่ายท้องถิ่นใช้ (หน้า, รหัสการจับคู่, โทเค็นอุปกรณ์, ใบรับรองที่ลงนามด้วยตนเอง); ทุกคำขอจะกลายเป็นคำสั่ง API อัตโนมัติที่แอปตอบกลับ
crates/nmhost vdm-nmhost โฮสต์รับส่งข้อความดั้งเดิมของเบราว์เซอร์: รับการดาวน์โหลดที่ส่วนขยายดักจับไว้ แล้วส่งต่อให้แอป
crates/ipc vdm-ipc ช่องทางอินสแตนซ์เดียว (ซ็อกเก็ตภายในที่ป้องกันด้วยโทเค็น), โฟลเดอร์ข้อมูล, กฎการดักจับที่แอปและโฮสต์ใช้ร่วมกัน, และกฎของเว็บไซต์ (#1778: User-Agent, ส่วนหัว, การเชื่อมต่อ, การเชื่อมต่อแบบเบราว์เซอร์ และ #1960, พร็อกซีตามรูปแบบเว็บไซต์) ที่แอปและบรรทัดคำสั่งใช้ร่วมกัน
crates/debrid vdm-debrid บัญชี Debrid (#44): API อย่างเป็นทางการของบริการ (Real-Debrid, AllDebrid, Premiumize, TorBox, Mega-Debrid) จะเปลี่ยนลิงก์ของโฮสต์ไฟล์ให้เป็นลิงก์ตรงที่เอนจินใช้ดาวน์โหลด
crates/cnl vdm-cnl Click'n'Load 2 (#37): ตัวรับฟังบน 127.0.0.1:9666 ที่อ่านโพสต์จากเว็บไซต์ลิงก์เป็นแพ็กเกจสำหรับตัวดึงลิงก์ โดยมีข้อจำกัดในการรับข้อมูล
crates/extract vdm-extract การแตกไฟล์เก็บถาวร (#37): zip, tar, gz และ xz กำลังดำเนินการ; 7z และ RAR ผ่าน 7-Zip ที่ติดตั้งไว้ โดยทำงานเป็นโปรแกรมแยกต่างหาก; แตกไฟล์ในตำแหน่งเดิมผ่าน HatchZip เมื่อร้องขอ การทดสอบไฟล์เก็บถาวร (check.rs, #1661): 7z t, ZIP ที่กำลังดำเนินการโดยไม่มีการทดสอบ และรายการที่เสียหายของ ZIP ที่อยู่ในไฟล์
crates/geo vdm-geo ตำแหน่งเซิร์ฟเวอร์ที่ดาวน์โหลด (#140): ตารางช่วง IP ถึงประเทศ สร้างจากข้อมูล Lite ของ DB-IP (tools/geo/build.py) ค้นหาบนคอมพิวเตอร์เครื่องนี้เท่านั้น และแสดงธงชาติของประเทศ
crates/tools vdm-tools Video pages through yt-dlp and ffmpeg, image galleries through gallery-dl (run as separate programs); while a network adapter is chosen, their connections go through a proxy of VDM's on 127.0.0.1 that binds them to it (relay.rs); each runs in a folder it can write, also its TEMP (workdir.rs)
crates/crash vdm-crash รายงานการขัดข้องและการค้าง: กระบวนการตรวจสอบ, minidump ที่สร้างนอกกระบวนการ, สแต็กที่ระบุสัญลักษณ์แล้ว, ข้อความในรายงาน และบันทึกการเผยแพร่ (crash-reports.md)
crates/torrent vdm-torrent BitTorrent และลิงก์แม่เหล็กผ่าน librqbit
crates/labserver vdm-labserver เซิร์ฟเวอร์ HTTP Range ที่มีบันทึกคำขอและการจำลองข้อผิดพลาด พร้อมเซิร์ฟเวอร์ FTP/FTPS ที่มีข้อผิดพลาดจำลองของตัวเอง สำหรับการทดสอบและการวัดประสิทธิภาพ
extension/ — ส่วนขยาย Chromium (MV3) และ Firefox
docs/ — คู่มือผู้ใช้และบทแนะนำ ไฟล์นี้ และข้อมูลการวัดประสิทธิภาพ; เว็บไซต์ใช้คู่มือนี้เป็นหน้าวิธีใช้ ซึ่งเปิดได้จาก วิธีใช้
website/ — vdm.mikaillab.com's own pages (home, download, features, themes, FAQ); tools/website/build.py adds the help from docs/ and the news from the CHANGELOG, in 22 languages, and GitHub Pages publishes it

การพึ่งพาอาศัยกันชี้เข้าด้านใน: app, cli, mcp, nmhost และ remote ใช้ engine และ ipc; เอ็นจิ้นไม่รู้อะไรเกี่ยวกับ UI แอปจะเห็นเอ็นจิ้นผ่านเหตุการณ์เท่านั้น (ความคืบหน้า, สแนปช็อตตารางเซกเมนต์, เสร็จสิ้น, ล้มเหลว)

เอ็นจิน

Download
 ├─ probe()              size, resumable?, validators (ETag / Last-Modified), file name
 ├─ Planner (pure)       segment table: when a connection is free, the largest remaining
 │                       part is split in half (planner.rs, tested by random simulation)
 ├─ Worker × N           one HTTP/1.1 connection each, reused across segments; slow ones
 │                       are dropped and their part re-split
 │    └─ writes at its offset into <name>.vdm.part (created sparse)
 ├─ HostLimits           learns how many connections each server accepts
 ├─ Limiter (shared)     per-download and global token buckets
 ├─ State                segment table saved atomically (craft-atomic) for crash-safe resume
 └─ events → channel     Progress, Done, Failed

เมื่อดาวน์โหลดครบทุกส่วนแล้ว ระบบจะตรวจสอบขนาดไฟล์ชั่วคราวกับขนาดที่คาดไว้ แล้วเปลี่ยนชื่อไฟล์ให้เป็นชื่อไฟล์ปลายทาง วันที่ของไฟล์อาจตรงกับวันที่ของเซิร์ฟเวอร์

คำตอบที่ไม่มีขนาดและช่วงจะใช้การเชื่อมต่อเดียว เขียนตามลำดับ (single_stream) และอาจไม่มีวันสิ้นสุด (วิทยุอินเทอร์เน็ต, ฟีดกล้อง: Snapshot::endless) Download::keep จะสิ้นสุดที่จุดนั้น และสิ่งที่มาถึงจะถือว่าเสร็จสิ้นราวกับว่าเซิร์ฟเวอร์ได้สิ้นสุดที่นั่น (#1780); มีเพียงปุ่ม หยุดและเก็บ ในหน้าต่างความคืบหน้าเท่านั้นที่เรียกใช้ (App::keep_by_hand, Job::keep) การหยุดอื่น ๆ ทั้งหมดจะยกเลิกการดาวน์โหลด เหมือนกับการดาวน์โหลดใด ๆ ที่เซิร์ฟเวอร์ไม่สามารถดำเนินการต่อได้

ไฟล์ที่เสร็จสมบูรณ์ซึ่งการทดสอบไฟล์เก็บถาวรพบความเสียหายที่สามารถระบุได้ (รายการของ ZIP, #1661: archtest.rs ของแอป) จะถูกทำให้เป็นไฟล์ส่วนอีกครั้ง (repair.rs): สถานะการดำเนินการต่อครั้งล่าสุด ซึ่งส่งคืนโดยการดาวน์โหลดที่ขอให้เก็บไว้ (Options::keep_state, Snapshot::kept) จะถูกเขียนกลับไป โดยเหลือเพียงช่วงที่เสียหายที่ต้องดึงข้อมูล แต่ละช่วงจะเริ่มต้นก่อนหน้าไม่กี่ไบต์สำหรับการตรวจสอบการทับซ้อน และไฟล์จะถูกเปลี่ยนชื่อเป็นไฟล์ส่วน การดำเนินการต่อเป็นไปตามปกติ: If-Range ด้วยตัวตรวจสอบความถูกต้องเดียวกัน การตรวจสอบการทับซ้อน การตรวจสอบความถูกต้องของข้อมูล; ไฟล์ที่เปลี่ยนแปลงบนเซิร์ฟเวอร์จะล้มเหลวเป็น FileChanged

A download's first request (get) follows redirects and the pages that lead on to a file by themselves (a waiting page's refresh). Sites whose links aren't the file's address have a module in sites/ (Google Drive: sites/gdrive.rs, its shared folders' pages read there and listed by hub.rs; MediaFire: sites/mediafire.rs; Rapidgator: sites/rapidgator.rs; LuluStream: sites/lulustream.rs): it turns the link into the file's address, reads the site's own pages (a confirmation form, a download button, an error page), names its refusals (Error::Refused) and, where the file's addresses expire, the page that gives a fresh one (sites::origin, asked again when a connection meets an expired address, at most once per expiry and never again at once for an address it then refused; Rapidgator's page is the browser's tab the download came from, Options::page), with pure functions tested without a network. A page whose file comes only once its form is sent back (LuluStream's quality page) says so with PageSays::Form: get posts that form's fields (application/x-www-form-urlencoded) with its next request only and reads the answer as a page; a site that answers with its form again is posted again after a short, growing pause (FORM_REPOST_PAUSE), up to MAX_FORM_POSTS, and then refuses in the site's name (sites::form_refused). The lab server plays such a site on its real host names for the end-to-end tests (labserver/src/drive.rs, labserver/src/mediafire.rs, labserver/src/rapidgator.rs, labserver/src/lulustream.rs).

FTP และ FTPS (ftp.rs) ใช้ตัววางแผน ตัวทำงาน และสถานะเดียวกัน: แต่ละส่วนประกอบด้วย REST + RETR ในเซสชันควบคุม แทนคำขอ GET แบบระบุช่วง ส่วน SIZE และ MDTM ใช้แทนส่วนหัว และระบบจะรวมเซสชันไว้ต่อการดาวน์โหลดหนึ่งรายการ แล้วนำกลับมาใช้ระหว่างดาวน์โหลดแต่ละส่วน

โฟลเดอร์ที่ให้แก่ ตัวดึงลิงก์ (#1774, folder.rs) จะถูกอ่านพร้อมกับโฟลเดอร์ย่อย โดยอ่านตามลำดับความกว้าง: โฟลเดอร์ FTP โดย MLSD มิฉะนั้น LIST (ftp::Lister, หนึ่งเซสชันสำหรับทุกโฟลเดอร์) หน้าแสดงรายการของเว็บเซิร์ฟเวอร์ (“Index of” ซึ่งรู้จักจากชื่อเรื่อง) จะถูกอ่านเหมือน page_links อ่านหน้าเว็บ รายการคือชื่อในโฟลเดอร์ที่ตรงกันด้วยชื่อ: ลิงก์ไปยังที่อื่น (โฮสต์อื่น, โฟลเดอร์ด้านบน, การสอบถาม, เส้นทางที่ลึกกว่า) หรือชื่อที่ไม่ธรรมดาจะไม่ใช่รายการ และลิงก์เชิงสัญลักษณ์ของ FTP จะไม่ถูกติดตาม ความลึกที่ร้องขอ (สูงสุด MAX_DEPTH), MAX_FOLDERS, MAX_FILES และขนาดของแต่ละรายการจะจำกัดมัน แอปจะสร้างไฟล์ของแต่ละโฟลเดอร์เป็นแพ็คเกจที่โฟลเดอร์คือโครงสร้างภายใต้โฟลเดอร์ดาวน์โหลด (grabber.rs); เซิร์ฟเวอร์ทดลองจะให้บริการโครงสร้างที่สร้างขึ้นเอง ทั้งที่เป็นอันตรายและขนาดใหญ่ (labserver/src/tree.rs) ผ่าน HTTP และ FTP สำหรับการทดสอบแบบครบวงจร

โมเดลหรือชุดข้อมูล Hugging Face (หรือโฟลเดอร์ของโมเดล/ชุดข้อมูลนั้น ณ การแก้ไขหนึ่ง) และรีลีสหรือแท็ก GitHub ที่ให้ไว้กับตัวดึงลิงก์ (#1772, hub.rs) จะถูกแสดงรายการผ่าน API สาธารณะของไซต์: การแก้ไขจะถูกแปลงเป็นคอมมิตก่อน จากนั้นจึงอ่านทรีทีละหน้า (Link: rel="next", API เดียวกันเท่านั้น) โดยจะนำเฉพาะพาธของแต่ละรายการเมื่อเป็นพาธสัมพัทธ์ของชื่อธรรมดาภายในโฟลเดอร์ที่ร้องขอ (hub::relative_path: ไม่มี .., พาธสัมบูรณ์, ชื่อไดรฟ์หรืออุปกรณ์) ซึ่งตรงกับชื่อของมัน; ที่อยู่ของไฟล์จะถูกสร้างขึ้นจากที่เก็บ, คอมมิต และชื่อเหล่านั้น ไม่ได้นำมาจากคำตอบ ไฟล์แต่ละไฟล์จะเก็บขนาดและ SHA-256 ที่ไซต์เผยแพร่ (ของไฟล์ LFS, ของสินทรัพย์รีลีส digest) ซึ่งจะกลายเป็นผลรวมตรวจสอบของการดาวน์โหลด แอปจะสร้างหนึ่งแพ็กเกจซึ่งมีโฟลเดอร์เป็นพาธของที่อยู่ภายใต้โฟลเดอร์ดาวน์โหลด โดยแต่ละไฟล์อยู่ในโฟลเดอร์ของตัวเองภายในนั้น (Imported::within) และไม่ได้เลือกไว้; รหัสผ่านของ Sites Logins สำหรับ huggingface.co จะถูกส่งเป็นโทเค็นการเข้าถึง (Authorization: Bearer) ไปยังโฮสต์ของ Hugging Face เท่านั้น เซิร์ฟเวอร์แล็บจะเล่น API ทั้งสอง (labserver/src/hub.rs): หน้า, ที่เก็บที่มีการเข้าถึงแบบจำกัด, พาธที่เป็นอันตราย, ไดเจสต์ที่ไม่ถูกต้อง และข้อจำกัดอัตรา

ไฟล์ภายใน ZIP บนเซิร์ฟเวอร์ (#1775, remotezip.rs) จะถูกอ่านจากตารางสารบัญที่ส่วนท้าย: การดูครั้งเดียวของ ข้อมูลไฟล์ดาวน์โหลด (look: TAIL ไบต์สุดท้าย ซึ่งบอกว่าเซิร์ฟเวอร์ส่งส่วนต่าง ๆ หรือไม่ และเก็บตารางของไฟล์เก็บถาวรส่วนใหญ่) จะเปิดใช้งาน แสดงตัวอย่าง และ แสดงตัวอย่าง ZIP (zippreview.rs) จะแสดงรายการตาราง (list: บันทึก ZIP64 และตารางที่ร้องขอในกรณีที่ไม่อยู่ในส่วนท้าย) ตัวแยกวิเคราะห์เป็นฟังก์ชันบริสุทธิ์บนไบต์ที่ถูกฟัซซิ่ง (fuzz/fuzz_targets/zip_directory.rs): ตารางมีขนาดไม่เกิน MAX_DIRECTORY ไบต์และ MAX_ENTRIES รายการ, แต่ละชื่อไม่เกิน MAX_NAME, ฟิลด์ของ ZIP64 อ่านภายในฟิลด์เสริม, ข้อมูลของแต่ละรายการอยู่ก่อนตารางและแยกจากรายการอื่น ๆ (รายการที่ทับซ้อนกันจะปฏิเสธไฟล์เก็บถาวร), ชื่อที่ไม่ใช่เส้นทางสัมพัทธ์ธรรมดาจะถูกละทิ้ง ไฟล์ที่เลือกคือการดาวน์โหลดหนึ่งครั้ง (Item::zip, Job::Zip): Fetch จะขอตารางอีกครั้ง จากนั้นส่วนหัวและข้อมูลภายในของแต่ละไฟล์ในการร้องขอช่วงเดียว (If-Range พร้อมตัวตรวจสอบของไฟล์เก็บถาวร), แกะข้อมูลที่จัดเก็บและ Deflate, นับและตรวจสอบ CRC-32 เทียบกับตาราง และส่งไบต์ไปยังตัวเขียนการแตกไฟล์ (vdm_extract::put_file: การตรวจสอบเส้นทางและโฟลเดอร์จัดเตรียมเดียวกันกับทุกรายการที่แตกไฟล์) เซิร์ฟเวอร์ทดลองจะให้บริการ ZIP ที่สร้างขึ้นเอง (labserver/src/zip.rs): ZIP64, ไฟล์ที่เป็นอันตราย, รายการที่ทับซ้อนกัน, ตารางที่ใหญ่เกินไป และไฟล์ใด ๆ เหล่านี้ที่ไม่มีช่วง

แอป

One egui window painted to fixed pixel coordinates, plus one immediate viewport per dialog. app.rs holds the state (downloads, queues, settings, the list's selection) and turns menu, toolbar, key and IPC commands into actions. Each dialog is its own module and returns an Outcome (open, closed, done with a value). Windows-only calls are confined to win32.rs and their Linux and macOS counterparts to unix.rs (starting with the session, the browsers' host, sounds, show in folder, the crash handler); every other file is safe, portable Rust. Fonts come from the system: Windows' Fonts folder, macOS's system fonts, fontconfig on Linux (theme.rs). The interface language's script fonts load at start; text in another script gets its font the first time it shows: from VDM's lists of the system's fonts for each script (the first file there that has the letter; on Windows one Han list in the interface language's order, theme::han_files, for the fonts loaded at start, those found later and DirectWrite's alike), then, on Windows and macOS, from the system's own fallback (DirectWrite's, CoreText's, through fontique: egui_system_font_provider) for what the lists don't name; Linux asks fontconfig for any letter. On Windows, Latin, Greek, Cyrillic and single-codepoint CJK text is drawn by DirectWrite (win32.rs, through egui's glyph rasterizer hook): View → Text → Smooth in its natural mode, anti-aliased at the size asked for and placed at quarter pixels with the font's own advances; Classic (the default) in GDI-classic mode, so each letter's hinted shape and whole-pixel width come together. CJK uses the interface language's system face; combining marks, multi-codepoint clusters and missing glyphs stay with egui, as do other scripts.

ชุดรูปแบบ

ทุกสีและขนาดที่ใช้ในการวาดส่วนควบคุมมาจากชุดรูปแบบที่ใช้งานอยู่ (#45) ชุดรูปแบบประกอบด้วยชุดสีอ่อนและเข้ม, เมตริก, รูปแบบการควบคุม และรูปแบบไอคอน (palette.rs):

  • บทบาทของชุดสี palette.rs ประกาศแต่ละบทบาทด้วยคีย์ที่เสถียร ("button.hot", "list.row", "caption"…) คำอธิบาย และค่าสีอ่อนและเข้มของรูปลักษณ์คลาสสิกที่เขียนไว้ (รูปลักษณ์คลาสสิกไม่ได้ถูกสร้างขึ้น) ตัววาดที่ใช้ร่วมกัน (winui.rs, chrome.rs, list.rs, scrollbar.rs) อ่านค่าเหล่านี้ผ่าน theme::colors() และ theme::metrics() และตัดสินสถานะของแต่ละส่วนควบคุมจากค่าเหล่านั้น โดยไม่มีโค้ดการวาดใด ๆ ที่เก็บสีของตัวเอง
  • ชุดสีที่สร้างขึ้น derive.rs สร้างชุดสีทั้งหมดจากค่าเริ่มต้นไม่กี่ค่า (พื้นหลัง, พื้นผิว, ข้อความ, สีเน้น…) ผสมผสานบทบาทอื่น ๆ ทั้งหมดใน OKLab และรักษาระดับคอนทราสต์ตาม WCAG (4.5:1 สำหรับข้อความ, 3:1 สำหรับขอบ) ความคมชัดสูงจะเพิ่มความคมชัดของทุกขอบด้านบน native.rs ใช้ค่าเริ่มต้นของชุดรูปแบบ Native จากสีเน้นและคอนทราสต์ของระบบ (การตั้งค่าของ Windows, พอร์ทัล freedesktop บน Linux, สีเน้นของ macOS)
  • Control styles. palette::Controls names each control's shape (text boxes, check boxes, buttons, progress bars, scroll bars, the focus mark, the title bar); the style themes (Metro, Adwaita, Breeze, Luna, Aero, Aqua, Emerald) pick theirs, and on Windows VDM then draws the title bar itself (the caption.* roles).
  • ไฟล์ชุดรูปแบบ themefile.rs อ่านไฟล์ TOML หรือ JSON จากโฟลเดอร์ข้อมูล themes (ไฟล์เดียว หรือ <id>/theme.toml พร้อมไอคอนข้าง ๆ) ไฟล์จะระบุเฉพาะสิ่งที่เปลี่ยนแปลง ส่วนที่เหลือมาจากชุดรูปแบบที่ inherits (ID ของชุดรูปแบบในตัว หรือไฟล์อื่น ๆ โดยค่าเริ่มต้นคือรูปลักษณ์คลาสสิก) ตามลำดับที่ไม่มีการวนซ้ำ คีย์ที่ไม่รู้จักจะถือเป็นคำเตือน ไม่ใช่ข้อผิดพลาด ชุดรูปแบบสไตล์ในตัวก็เป็นไฟล์ประเภทนี้เช่นกัน ซึ่งอยู่ในโปรแกรม (crates/app/assets/themes)
  • ชุดไอคอน themeicons.rs วาดไอคอนของชุดรูปแบบ (ตั้งชื่อตามวัตถุประสงค์: tb-add-url, cat-music…, SVG หรือ PNG ที่ขนาด 16, 24, 32 และ 48 px, ไอคอน -symbolic ที่ใช้สีเดียวกับข้อความ) ในตำแหน่งที่รูปลักษณ์คลาสสิกวาดไอคอนของตัวเอง หากชุดไอคอนไม่มีไอคอนที่ต้องการ จะใช้ไอคอนคลาสสิกแทน

ตำแหน่งที่หน้าต่างวางส่วนควบคุมยังคงเป็นเค้าโครงเดิม เช่นเดียวกับไอคอนที่อยู่หน้าชื่อไฟล์ (fileicons.rs): รายการรูปภาพระบบของ Windows shell, macOS Finder (NSWorkspace), ชุดรูปแบบไอคอนของเดสก์ท็อป Linux (xdgicons.rs, shared-mime-info และ Icon Theme Specification) แต่ละประเภทจะถูกค้นหาหนึ่งครั้งต่อขนาดพิกเซล ในเธรดพื้นหลัง ไอคอนของ Tango (ที่มาพร้อมกับโปรแกรม) จะถูกใช้แทนจนกว่าไอคอนของระบบจะพร้อม และในกรณีที่ระบบไม่มีไอคอน

การวาด

The windows are drawn with OpenGL (eframe's glow) or with the system's own graphics API through eframe's wgpu, with that one backend only: Direct3D 12 on Windows (the default there), Vulkan on Linux, Metal on macOS (choices there; OpenGL stays their default until real graphics cards have tried them, #206). View → Draw with picks one, from the next start. One code path does it on every system (crates/app/src/renderer.rs): when the chosen one can't start, the other one is tried, so the windows always open. A watched start with the system's API leaves a marker until its first frame is drawn: a start that ends before it (a crash inside the driver), one whose first frame doesn't come within 10 seconds (VDM then starts again with OpenGL), or a graphics card lost twice in 10 minutes is remembered with its reason, which the menu shows. A way that can't start within 10 minutes of a lost card isn't remembered: its driver may still be resetting (#1974: Direct3D 12 then finds only WARP), so the next start tries it again. With OpenGL, a window eframe can't paint (its context can't be made current on it, its frame can't be shown) is skipped and painted again 100 ms later; one whose paints keep failing for seconds is a lost device too (VDM starts again; twice in 10 minutes, OpenGL is remembered as failing on Windows). wgpu-core unwraps some of the driver's results instead of calling the device-lost callback (#2128: PendingWrites::activate on Direct3D 12's DXGI_ERROR_DEVICE_REMOVED): the panic hook (crash.rs) hands such a panic, from wgpu's own code, to the same loss handling (renderer::lost_panic), so it starts VDM again rather than end it with a report. On Windows, a freeze or a crash whose report shows the window's or the crashed thread inside OpenGL's driver is remembered too, by the crash report's window (crashui.rs), from the stack's modules (#847, #1659). The fork's eframe tells VDM through its viewport hooks (gl_paint_failed, #1448).

มุมมอง → ขนาดส่วนติดต่อ (scale.rs, #262) คือปัจจัยการซูมของ egui เหนือมาตราส่วนของจอแสดงผล: ทุกหน้าต่างจะถูกจัดวางในหน่วยจุด ดังนั้นจึงเปิดได้ใหญ่ขึ้นเท่านั้น หากใหญ่กว่าหน้าจอจะมีการเลื่อน

มุมมอง → แบบอักษร (theme.rs, #1489) แยกต่างหาก: ไฟล์แบบอักษรที่ใช้ในการวาดข้อความของอินเทอร์เฟซ (interface_font ใน settings.json; Segoe UI ซึ่งเป็นแบบอักษรของระบบเอง เว้นแต่จะเลือก) และ interface_text_size ซึ่งเป็นเปอร์เซ็นต์ของขนาดธีมที่ใช้ในการวาดข้อความ theme::font_size เป็นแหล่งเดียวที่ใช้กำหนดขนาดสำหรับสไตล์ข้อความของ egui และสำหรับส่วนควบคุม Win32 ที่วาดเอง (winui::tahoma); การวัดของเลย์เอาต์เองไม่เปลี่ยนแปลง ดังนั้นข้อความอาจล้นเมื่อหน้าต่างแคบ แต่ไม่มีอะไรเคลื่อนที่ บน Windows ตัวเรนเดอร์ DirectWrite (win32::classic_text) จะวาดไฟล์ที่เลือกด้วย และแผนที่ตัวอักษรจะถูกสร้างใหม่เมื่อแบบอักษรเปลี่ยนไป

ข้อมูล

รายการดาวน์โหลดและการตั้งค่าจะถูกบันทึกแบบอะตอมมิกไปยังโฟลเดอร์ข้อมูล (downloads.json): %APPDATA%\voltdownloadmanager\ บน Windows, ~/.local/share/voltdownloadmanager บน Linux, ~/Library/Application Support/voltdownloadmanager บน macOS, โฟลเดอร์ data ข้างสำเนาแบบพกพา หรือ VDM_DATA_DIR (vdm_ipc::data_dir) โฮสต์เบราว์เซอร์อ่านไฟล์เดียวกันสำหรับกฎการจับภาพ ดังนั้นการเปลี่ยนแปลงในการตั้งค่าจะมีผลกับการดาวน์โหลดที่ถูกจับภาพครั้งถัดไป

Sign-in secrets (debrid accounts, Sites Logins' and the proxy's passwords) live in the system's keychain (secrets.rs, #44): Windows Credential Manager (win32.rs), the Secret Service on Linux or the macOS keychain (unix.rs). The settings keep a keychain:<service>/<scope>/<key> reference in their place, written only once the keychain has confirmed the secret; without a keychain (or with a locked one, never unlocked for VDM) the secret stays in the settings as before.

ตำแหน่งเซิร์ฟเวอร์ที่ดาวน์โหลด (#140) คือประเทศของที่อยู่ที่เชื่อมต่อ ซึ่งค้นหาในตารางของ vdm-geo บนคอมพิวเตอร์เครื่องนี้ (countries.rs ตั้งชื่อในภาษาของส่วนติดต่อ) งานเผยแพร่จะสร้างตารางใหม่จากข้อมูลประจำเดือน (tools/geo/build.py --release)

การเชื่อมต่อกับเบราว์เซอร์

page ──► extension ──native messaging──► vdm-nmhost ──ipc──► app

ส่วนขยายจะถามโฮสต์ว่าต้องการไฟล์ประเภทใด ตรวจสอบการดาวน์โหลดแต่ละรายการกับประเภทเหล่านั้น และยกเลิกการดาวน์โหลดของเบราว์เซอร์หลังจากที่แอปยอมรับแล้วเท่านั้น มิฉะนั้นเบราว์เซอร์จะเก็บไว้ และส่วนขยายจะบอกเหตุผล

ข้อความถึงโฮสต์มีขนาดไม่เกิน 1 MB (vdm_ipc::MAX_MESSAGE; โฮสต์ปฏิเสธมากกว่านั้น และเบราว์เซอร์ก็อนุญาตให้โฮสต์ตอบกลับได้ไม่เกินนั้นเช่นกัน) ลิงก์ของหน้าเว็บที่เกินไปจะถูกส่งเป็นส่วนๆ โดยแต่ละส่วนจะถูกวัดตามที่เบราว์เซอร์ที่กว้างที่สุดเขียน (wireSize ใน background.js) และมีตัวอ้างอิงและคุกกี้ของหน้าเว็บและตำแหน่งของมัน (vdm_ipc::LinksPart); โฮสต์จะส่งแต่ละส่วนเมื่อมาถึง และแอปจะเก็บไว้ (linkparts.rs) จนกว่าส่วนสุดท้ายจะเข้ามา จากนั้นจะเปิด ตัวดึงลิงก์ พร้อมรายการทั้งหมด

The toolbar button's popup lists VDM's newest downloads (#1496). While it is open, background.js keeps one native port to the host (connectNative: one helper process, not one per question) and asks every second {"recent": …}; the host asks the running app (vdm_ipc::RecentAsk), which answers with vdm_ipc::api::RecentAnswer: the newest downloads that match the search and the filter, the counts of each filter, and the system's icons for the file types the popup lacks (fileicons.rs, PNG data: addresses, each type once per size), the whole within 512 KB. The popup's buttons send {"downloadAct": …} (vdm_ipc::RecentAct): the app opens the file or its folder, puts the file on the clipboard or opens the share sheet (fileclip.rs, each system's own calls in win32.rs and unix.rs). Neither question starts the app. The toolbar button's count of running downloads comes from the same answers, watched while any runs. With downloads sent to another VDM, the list is its remote control's (api/list), cut to the same view in background.js.

The host serves only VDM's own extension. Its IDs are in one place, vdm_ipc::extension (crates/ipc/src/extension.rs): the unpacked copy's (UNPACKED_ID, from the manifest's public key), the Chrome Web Store's (STORE_ID, signed with the store's own key: pack.ps1 leaves the manifest's key out of the store's copy), the Firefox add-on's (FIREFOX_ID) and its addons.mozilla.org page; the Edge and Opera stores' are placeholders, never served, until the extension is listed there. The host writes each browser's manifest with those IDs, and the app offers the store's copy (Add to Chrome, Add to Firefox) before the unpacked one.

การควบคุมระยะไกล

phone ──HTTPS (paired token)──► vdm-remote ──ipc::Sink──► app (answer, remote_add)

--headless(headless.rs, #157) รัน App เดียวกันโดยไม่มี eframe: ลูปเรียกใช้ tick (สิ่งที่ logic รันในทุกเฟรม) บน egui::Context เปล่า ซึ่งถูกปลุกด้วยช่องคำสั่ง และไม่เคยเรียกใช้ ui; คำสั่งจะถูกเพิ่มเมื่อรีโมทคอนโทรลเพิ่ม (ไม่มีหน้าต่าง) Dockerfile และ docker/ (Compose, เทมเพลตของ Unraid) รันบนเซิร์ฟเวอร์ (server.md)

เซิร์ฟเวอร์ทำงานบนรันไทม์ Tokio ของแอป, มีตัวฟังหนึ่งตัวต่อที่อยู่เครือข่ายท้องถิ่นหนึ่งที่อยู่ แต่ละคำขอจะถูกตรวจสอบ (Host, Origin, โทเค็น), เปลี่ยนเป็น vdm_ipc::Command ที่ทำเครื่องหมาย remote (ฟิลด์ที่ไม่มีบรรทัดคำขอใดสามารถตั้งค่าได้) และส่งไปยังแอปผ่านช่องทางเดียวกับบรรทัดคำสั่ง; แอปจะตอบกลับในเฟรมถัดไป, เช่นเดียวกับการตอบกลับ Automation API หน้าของมันถูกสร้างขึ้นใน (crates/remote/web) และข้อความมาจากแคตตาล็อกของแอป (remote.rs)

คำแปล

ข้อความทุกข้อความที่ UI แสดงจะผ่าน crate::i18n (แค็ตตาล็อก craft-i18n, i18n/<locale>.tsv) tools/i18n/extract.py สร้าง i18n/en.tsv ใหม่จากแหล่งที่มา พร้อมบันทึกสำหรับนักแปลในแต่ละข้อความ (คืออะไร, แสดงที่ไหน, ตัวยึดตำแหน่ง) tools/i18n/translate.py เติมเต็มสิ่งที่แค็ตตาล็อกอื่นขาด (แถวที่ทำเครื่องหมาย #, machine) ตามคู่มือสไตล์ของแต่ละภาษา (i18n/style/) และอภิธานศัพท์; แถวที่บุคคลตรวจสอบแล้วจะไม่ถูกแทนที่ และ CI (reviewed_guard.py) จะล้มเหลวหากมีการเปลี่ยนแปลงที่ทำให้แถวนั้นหายไป เว็บไซต์มีแค็ตตาล็อกของตัวเอง (i18n/site/, tools/website/translate_site.py)

รูปภาพ

The help pages' pictures (docs/images/help/) come from one list, tools/shots/shots.toml: tools/shots/make.py opens each window through VDM's own /show <window> command line in a test instance off the screen, crops and annotates it from the window's accessibility tree, and writes lossless WebP; make.py check (CI) keeps the list, the pages and the files in step. The published ones are taken on GitHub's Windows runner (docs-shots.yml).

ผู้สนับสนุน

tools/contributors.pyอ่านข้อมูลผู้ที่เปิดคำขอพูลและปัญหา รวมถึงผู้ที่แสดงความคิดเห็น จาก API สาธารณะของ GitHub (ไม่รวมผู้ดูแล, Claude และบอท) สำหรับทุกที่ที่กล่าวขอบคุณพวกเขา: หน้าแรกของเว็บไซต์, /contributors.html และแต่ละรุ่นบนหน้าข่าว (build.py, ในทุกบิลด์), บันทึกประจำรุ่นแต่ละรุ่น (release.yml, ผู้ที่ใช้งานตั้งแต่รุ่นก่อนหน้า) และ README (python tools/contributors.py readme ในการเตรียมแต่ละรุ่น: รูปภาพวงกลมจะถูกคอมมิตใน art/contributors/ เนื่องจาก GitHub ไม่สามารถทำรูปภาพให้เป็นวงกลมใน README ได้)

การทดสอบและเกณฑ์มาตรฐาน

cargo testรันการทดสอบหน่วยและการดาวน์โหลดแบบ end-to-end กับ vdm-labserver ด้วยข้อผิดพลาดที่ถูกแทรก (การเชื่อมต่อช้า, หลุดและถูกปฏิเสธ, เซิร์ฟเวอร์ที่ไม่มีช่วง, ไฟล์ที่เปลี่ยนแปลง) tools/bench รันการเปรียบเทียบความเร็วที่เผยแพร่; ข้อมูลดิบอยู่ใน docs/bench/

ฟรี, โอเพนซอร์ส, ไม่มีโฆษณา, ไม่มีช่วงทดลองใช้

Download Volt Download Manager