工具与资源github.com
BTFS:把任意 .torrent 文件或磁力链接挂载为目录
BTFS – mount any .torrent file or magnet link as directory
2016 — 2024,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
BTFS 是一个基于 FUSE 的文件系统工具,能把任意 .torrent 文件或 magnet 链接挂载成本地目录,让其中的内容像普通文件一样被浏览和访问。它依赖 libtorrent,代码量很小;评论中常把它与 IPFS 比较,并提到可直接挂载 Internet Archive 的条目。
为什么经久不衰:它用极简的方式把 BitTorrent 变成可浏览的本地文件系统,展示了 FUSE 与 P2P 文件系统的想象力,今天仍是理解这类工具的好样例。
HN 评论精选
BTFS 很酷,但 IPFS 在子目录遍历和增量访问上更完整,值得借鉴其生态。
这基本上就是 IPFS 做的事,但 IPFS 更进一步:它把类似 torrent 文件的东西用于已挂载 torrent 内的子目录,因此你不必先下载并挂载,就能“遍历”整片网络。你也可以在这里实现类似功能——让 torrent 内含的 .torrent 文件被当作目录——但到那时 IPFS 的功能会完整得多;比如一个巨大文件在 IPFS 中可能用哈希树表示,而不只是一个巨大的哈希数组,从而能增量、高效地访问所需部分。所以这是很棒的工作,但如果你受它启发,也许该把灵感用于学习 IPFS 并扩展那个生态,而不是继续加倍投入 torrent 文件。
saurik查看英文原文
This is effectively what IPFS is, but IPFS takes it to the next level by using the equivalent of torrent files for subdirectories within the mounted torrent files, so you can "traverse" entire networks of the pretty-much-a-torrent files without first having to download and mount them. And like, you could implement similar functionality here by having torrent files that contain files named .torrent have those files be treated as directories, but at that point IPFS is going to be much more feature complete; even like, if you have some giant file, on IPFS that might be represented by trees of hashes as opposed to merely a giant array of hashes so you can incrementally and efficiently access the parts you need. So like, while this is awesome work, if you find it inspiring, maybe channel that inspiration into learning about IPFS and extending that ecosystem, rather than doubling down on trying to build on torrent files.
代码极简、依赖少,FUSE 让挂载 torrent 的实现出奇简单。
源码比我预想的小得多——说真的,实际代码可能不到 2000 行,看起来极其简单,容易审计和修 bug。它似乎唯一真正的外部依赖是 libtorrent。如果你还没惊叹于这个项目的简洁,那你也该惊叹于 FUSE 文件系统及其所暴露能力的简洁。
manjalyc查看英文原文
The source code is far smaller that I would've expected, tiny in fact - no seriously, its probably <2000 lines of actual code and looks extremely simple to audit and fix bugs. It seems the only real external dependency is libtorrent. Honestly, if your not already amazed if not at the simplicity of this project, than you should be by the simplicity of fuse filesystems and the capabilities it exposes.
BTFS 可用于挂载 Internet Archive,并有望成为 torrent 版通用云存储层。
这很酷。我可以用它把互联网档案馆的大部分内容挂载成一个目录。很希望它发展成面向 torrent 的消费级云存储:一个可在本地挂载的全局文件系统,用 torrent 数据作为 inode,并用类似 Dropbox 绿勾的视觉标识显示可用性;甚至支持从 Backblaze、S3 等最后兜底的存储系统进行 web seeding。
toomuchtodo查看英文原文
This is cool. I can mount most of the Internet Archive as a directory with this. Would love this to grow into what your consumer cloud storage services are but for torrents (a global file system you can mount locally, using torrent data as inodes, with visual representations for availability status similar to the Dropbox green check boxes). Perhaps even with support for web seeding from a storage system of last resort (Backblaze, S3, etc).
每个 IA 条目自带带 web seed 的 torrent,BTFS 可直接挂载使用。
这是访问 Internet Archive 内容的完美客户端!每个 IA 条目自动带有一个包含 IA web seeds 的 torrent。试试 Big Buck Bunny:btfs https://archive.org/download/BigBuckBunny_124/BigBuckBunny_124_archive.torrent mountpoint
Maakuth查看英文原文
This is the perfect client for accessing Internet Archive content! Each IA item automatically has a torrent that has IA's web seeds. Try Big Buck Bunny: btfs https://archive.org/download/BigBuckBunny_124/BigBuckBunny_124_archive.torrent mountpoint
历次讨论
同类还值得读
直接在浏览器中启动 Linux 内核
Boot a linux kernel right inside your browser.
Fabrice Bellard 的 JSLinux 页面,用 JavaScript 在浏览器里启动一个 Linux 内核,并提供一个可交互的终端环境。
工具与资源上首页 5 次 · 2011–2025bellard.orgHacker News 未公开功能与行为清单(2018)
A List of Hacker News's Undocumented Features and Behaviors (2018)
数据科学家 Max Woolf 整理的 Hacker News 未公开功能与行为清单,涵盖投票机制、排名算法、账号惩罚等社区运作细节。
工具与资源上首页 5 次 · 2019–2025github.comMapSCII:在终端中用盲文和 ASCII 渲染地图
MapSCII – Braille and ASCII map renderer for the console
MapSCII 是一个在命令行终端里渲染地图的开源工具,用盲文字符和 ASCII 字符把地理数据画成可交互浏览的字符地图。
工具与资源上首页 5 次 · 2017–2025github.com顶尖大学的免费在线课程
Free Online Courses from Top Universities
Open Culture 整理的一份免费在线课程合集,汇集了全球顶尖大学(如 MIT、斯坦福、耶鲁等)向公众开放的网络课程资源,涵盖音频、视频等多种形式。
工具与资源上首页 5 次 · 2010–2022openculture.com淘气字符串:容易引发用户输入问题的字符串清单
Naughty Strings: A list of strings likely to cause issues as user-input data
一个 GitHub 仓库,收录了大量容易让程序出问题的用户输入字符串,如特殊字符、emoji、SQL 注入片段、系统命令等,供开发者用于测试输入处理逻辑。
工具与资源上首页 4 次 · 2015–2020github.com