Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Introduction to Erebos: a JavaScript client for...
Search
Miloš Mošić
May 24, 2019
Programming
1
290
Introduction to Erebos: a JavaScript client for Swarm
The talk given at the Swarm Orange Summit in Madrid, 2019.
Miloš Mošić
May 24, 2019
Tweet
Share
More Decks by Miloš Mošić
See All by Miloš Mošić
Elixir_and_Blockchain_-_a_Perfect_Match.pdf
mosic
0
550
Phoenix LiveView - Making modern web apps without JavaScript
mosic
0
280
Elixir @ Evercam
mosic
3
1.4k
Other Decks in Programming
See All in Programming
聞き手から登壇者へ: RubyKaigi2024 LTでの初挑戦が 教えてくれた、可能性の星
mikik0
1
130
What’s New in Compose Multiplatform - A Live Tour (droidcon London 2024)
zsmb
1
470
Duckdb-Wasmでローカルダッシュボードを作ってみた
nkforwork
0
120
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
170
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
3rd party scriptでもReactを使いたい! Preact + Reactのハイブリッド開発
righttouch
PRO
1
600
Jakarta EE meets AI
ivargrimstad
0
610
macOS でできる リアルタイム動画像処理
biacco42
9
2.4k
C++でシェーダを書く
fadis
6
4.1k
シールドクラスをはじめよう / Getting Started with Sealed Classes
mackey0225
4
640
ペアーズにおけるAmazon Bedrockを⽤いた障害対応⽀援 ⽣成AIツールの導⼊事例 @ 20241115配信AWSウェビナー登壇
fukubaka0825
6
1.9k
『ドメイン駆動設計をはじめよう』のモデリングアプローチ
masuda220
PRO
8
540
Featured
See All Featured
Designing Experiences People Love
moore
138
23k
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
GraphQLとの向き合い方2022年版
quramy
43
13k
Build The Right Thing And Hit Your Dates
maggiecrowley
33
2.4k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
665
120k
Building Adaptive Systems
keathley
38
2.3k
Faster Mobile Websites
deanohume
305
30k
Building Flexible Design Systems
yeseniaperezcruz
327
38k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
27
840
Transcript
Introduction to Erebos: a JavaScript client for Swarm Miloš Mošić
JavaScript client?
swarmgw swarm-js Are there any other JavaScript clients for Swarm?
What is Erebos?
• Bzz APIs • Pss APIs • CLI • Timeline
• Utility libraries
bzz.download() bzz.upload() bzz.uploadFile() bzz.uploadDirectory() bzz.list() bzz.hash() What do Erebos bzz
packages support?
Is that really all?
Bzz functions specific to the Node.js client bzz.downloadObservable() bzz.downloadDirectoryData() bzz.downloadFileTo()
bzz.downloadDirectoryTo() bzz.downloadTo() bzz.uploadFileStream() bzz.uploadTar() bzz.uploadFileFrom() bzz.uploadDirectoryFrom() bzz.uploadFrom()
How about Feeds?
Feeds functions bzz.getDownloadURL() bzz.getUploadURL() bzz.getFeedURL() bzz.deleteResource() bzz.createFeedManifest() bzz.createFeedDigest() bzz.getFeedTopic() bzz.getFeedMetadata()
bzz.getFeedValue() bzz.pollFeedValue() bzz.postSignedFeedValue() bzz.postFeedValue() bzz.updateFeedValue() bzz.uploadFeedValue()
What problems did it solve for us?
• Higher level abstractions over the HTTP API • Breaking
changes in Swarm
• https://github.com/ethersphere/swarm-docker • https://hub.docker.com/r/ethdevops/swarm Breaking Changes in Swarm
CLI
Wait, Swarm already has a CLI?
• Bzz APIs • Pss APIs • Website commands
Bzz commands in the CLI bzz:upload bzz:download bzz:list bzz:hash
Pss commands in the CLI pss:address pss:key pss:topic pss:listen pss:send
pss:peer
Website commands in the CLI website:setup website:publish
Timeline
Timeline functions timeline.download() timeline.upload() timeline.getChapter() timeline.loadChapter() timeline.updateChapterID() timeline.addChapter() timeline.createUpdater() timeline.createIterator()
timeline.loadChapters() timeline.live()
Feed Subscriptions
• Messaging • Version updates
Erebos website https://erebos.js.org/
Thank you!