Swift
the multiparty transport protocol (aka "TCP with swarming" or "BitTorrent at the transport layer")
Install / Use
/learn @gritzko/SwiftREADME
swift: the multiparty transport protocol (aka BitTorrent at the transport layer) Differently from TCP, the protocol does not use the ordered data stream abstraction. Effectively, it splits a file into 1KB packets and sends them around. The secret sauce is Merkle hash trees and binmaps.
see doc/index.html for marketing stuff, ideas and rants doc/swift.txt for protocol draft spec *.cpp for the actual code swift.cpp is the main exec file; may run as e.g.
./swift -t node300.das2.ewi.tudelft.nl:20000 -h \
d1502706c46779d361a1d562a10da0a45c4c40e5 -f \
trailer.ogg
...to retrieve video and save it to a file.
Alternatively, you might play with the HTTP gateway, the preliminary
version. First, run the seeder-tracker:
$ ./swift -f ~/Downloads/big_buck_bunny_480p_stereo.ogg -l 0.0.0.0:20000
Root hash: 7c462ad1d980ba44ab4b819e29004eb0bf6e6d5f
...then you may try running the swift-HTTP gateway...
./swift -t localhost:20000 -g 0.0.0.0:8080 -w
...and finally you may point your browser at the gateway...
http://localhost:8080/7c462ad1d980ba44ab4b819e29004eb0bf6e6d5f
If you use an HTML5 browser (Chrome preferred), you are likely to see
the bunny trailer at this point...
Related Skills
node-connect
343.3kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
92.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.3kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.3kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
