-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.ejs
More file actions
129 lines (115 loc) · 4.16 KB
/
Copy pathindex.ejs
File metadata and controls
129 lines (115 loc) · 4.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
layout: layouts/base
css: css/pages/index.css
---
<main>
<div class="hero">
<img src="<%= rootPath %>images/hypercore-protocol.png" id="logo">
<h1>Hypercore Protocol</h1>
<p>Peer-to-peer data sharing</p>
<div class="btns">
<a class="btn black" title="Install" href="<%= rootPath %>install/">Install</a>
<a class="btn white" title="Guides" href="<%= rootPath %>guides/">Guides</a>
</div>
</div>
<section class="intro">
<% include /seeding-anim %>
<h2>A world of distributed data structures</h2>
<p>
Hypercore Protocol is a <span class="nobreak">peer-to-peer</span> data network built on the Hypercore logs.
Hypercores are signed, <span class="nobreak">append-only</span> logs.
They're like <span class="nobreak">light-weight</span> blockchains without the consensus algorithm.
As with BitTorrent, as more people "seed" a dataset it will increase the available bandwidth.
</p>
</section>
<section class="code-example">
<div class="columns">
<div class="description">
<h3>Hyperdrives</h3>
<p>
Peer-to-peer file archives with a POSIX-like API.
</p>
</div>
<%- syntaxHighlight('javascript', `const drive = hyperdrive(hyp.corestore()).promises
await drive.writeFile('/hello.txt', 'world')
await drive.readdir('/') // => ['hello.txt']
hyp.replicate(drive) // seed on the network`) %>
</div>
</section>
<section class="code-example">
<div class="columns">
<div class="description">
<h3>Hyperbees</h3>
<p>
Peer-to-peer key/value database built on distributed B-Trees.
</p>
</div>
<%- syntaxHighlight('javascript', `const db = hyperbee(hyp.corestore().get())
await db.put('key', 'value')
await db.get('key') // { key: 'key', value: 'value' }
db.createReadStream({ gt: 'a', lt: 'd' }) // anything >a and <d`) %>
</section>
<section class="code-example">
<div class="columns">
<div class="description">
<h3>Hypercores</h3>
<p>
Append-only logs for building a variety of data structures.
</p>
</div>
<%- syntaxHighlight('javascript', `const feed = hyp.corestore().get()
await feed.append('hello')
await feed.append('world')
console.log(await feed.get(0)) // => 'hello'
console.log(await feed.get(1)) // => 'world'`) %>
</div>
</section>
<section>
<div class="feature-grid">
<div>
<img src="<%= rootPath %>images/icons8/connect-50.png">
<h3>Automatic connectivity</h3>
<p>
The Hyperswarm DHT arranges connections between devices using cryptographic-key addresses. Hole-punching included!
</p>
</div>
<div>
<img src="<%= rootPath %>images/icons8/secure-50.png">
<h3>End-to-end privacy</h3>
<p>
Encrypted connections between devices ensure that users only share with the people they intend to reach.
</p>
</div>
<div>
<img src="<%= rootPath %>images/icons8/module-50.png">
<h3>Highly modular</h3>
<p>
Build on top of the batteries-included "Hyperspace" daemon or build with the individual modules as you need.
</p>
</div>
</div>
</section>
<section class="cta">
<h2><img src="<%= rootPath %>images/icons8/command-line-50.png"> <a href="<%= rootPath %>guides/" title="Guides">Start quickly with Hyp</a></h2>
<p>
The Hyp CLI makes it easy to manage Hypercore's daemon and work with datasets.
<a href="https://www.youtube.com/watch?v=SVk1uIQxOO8" title="Demo Video" target="_blank">Demo Video</a>.
</p>
<div class="shell-video">
<video src="<%= rootPath %>videos/demo-hyp-info.mp4" autoplay loop></video>
</div>
<div class="btns">
<a class="btn black" title="Install" href="<%= rootPath %>install/">Install</a>
<a class="btn white" title="Guides" href="<%= rootPath %>guides/">Guides</a>
</div>
</section>
<section class="license">
<img src="<%= rootPath %>images/icons8/software-license-50.png">
<div>
<h3>MIT Licensed</h3>
<p>
Hypercore Protocol is Free and Open-Source Software.
</p>
</div>
</section>
</main>