-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
326 lines (300 loc) · 12.7 KB
/
index.html
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<html lang="en" data-react-helmet="lang">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<title>Home | Webpipes.org</title>
<meta
name="description"
content="WebPipes is a work-in-progress proposal for linking together web services."
/>
<meta name="author" content="WebPipes.org" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta property="fb:admins" content="25102034" />
<meta property="og:site_name" content="WebPipes.org" />
<meta
property="og:description"
content="WebPipes is a work-in-progress proposal for linking together web services."
/>
<meta property="og:locale" content="en_US" />
<meta property="og:image" content="/assets/images/icon-256.png" />
<meta property="og:title" content="WebPipes.org" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://webpipes.org/" />
<meta
name="google-site-verification"
content="AclrAJJpdhhlotcvRy14yk0pFRkPGDTKaFxB9CExsJY"
/>
<link rel="canonical" href="http://webpipes.org/" />
<link
rel="shortcut icon"
href="/assets/images/icon-48x48.png?v=d58364ffbba8433b452312b52b2151fc"
/>
<meta name="theme-color" content="#d4ab5a" />
<link
rel="apple-touch-icon"
sizes="48x48"
href="/assets/images/icon-48x48.png?v=d58364ffbba8433b452312b52b2151fc"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="/assets/images/icon-72x72.png?v=d58364ffbba8433b452312b52b2151fc"
/>
<link
rel="apple-touch-icon"
sizes="96x96"
href="/assets/images/icon-96x96.png?v=d58364ffbba8433b452312b52b2151fc"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="/assets/images/icon-144x144.png?v=d58364ffbba8433b452312b52b2151fc"
/>
<link
rel="apple-touch-icon"
sizes="192x192"
href="/assets/images/icon-192x192.png?v=d58364ffbba8433b452312b52b2151fc"
/>
<link
rel="apple-touch-icon"
sizes="256x256"
href="/assets/images/icon-256x256.png?v=d58364ffbba8433b452312b52b2151fc"
/>
<link
rel="apple-touch-icon"
sizes="384x384"
href="/assets/images/icon-384x384.png?v=d58364ffbba8433b452312b52b2151fc"
/>
<link
rel="apple-touch-icon"
sizes="512x512"
href="/assets/images/icon-512x512.png?v=d58364ffbba8433b452312b52b2151fc"
/>
<link
href="https://fonts.googleapis.com/css?family=Alegreya|Alegreya+Sans&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/css/tachyons.min.css"
/>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style>
:root {
--code-pink: #e83e8c;
--code-black: #333333;
--code-green: #72f2d1;
--code-grey: #ddd;
--code-blue: #4285f4;
--code-purple: #7247ff;
--code-green-dark: #03a678;
--size-medium: 1em;
--border-radius: 0.25em;
--font-size-large: 2em;
--text-max-width: 30em;
--sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
background-color: #fefefe;
margin: 0;
padding: 0;
line-height: 1.5;
font-size: 1.5em;
color: #544c4c;
font-family: avenir next, avenir, -apple-system, BlinkMacSystemFont,
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
text-rendering: optimizelegibility;
}
/*
.sans-serif {
font-family: 'Alegreya Sans', sans-serif;
}
*/
.gatsby-image-wrapper {
border-radius: 0.25rem;
}
main h2 {
margin-bottom: 0;
}
.measure {
max-width: 30em;
}
.measure-narrow {
max-width: 20em;
}
.center {
margin-right: auto;
margin-left: auto;
}
a,
a:visited,
a:active,
a:hover {
color: var(--code-blue);
text-decoration: none;
transition: all 100ms cubic-bezier(0.4, 0, 0.2, 1);
display: inline;
line-height: 1em;
border-bottom: solid 1px var(--code-purple);
transition: 0.2s ease;
}
a:hover {
color: var(--code-purple);
border-bottom: solid 1px var(--code-blue);
}
a.db,
a.db:visited,
a.db:active,
a.db:hover {
display: block;
}
aside li {
list-style-type: none;
}
code {
color: #bd10e0;
}
ul,
ol {
padding: 0;
margin: 0 0 0.5em 1em;
/*max-width: 30em;*/
}
main li {
list-style-type: circle;
font-size: 0.95em;
opacity: 0.9;
}
h1,
h2,
h3,
h4,
h5,
h6,
.header {
font-family: 'Alegreya Sans', athelas, georgia, serif;
color: #444444;
}
hr {
margin: 1.5em 0 1.5em 0;
border: 0;
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
}
a.normalize {
display: none;
}
p code {
font-size: 0.8em;
}
::selection {
background-color: rgba(0, 0, 0, 0.99);
color: #f0f0f0; /* Contrast friendly: hsla(200,0%,0%,.8)*/
text-shadow: none;
}
h1 a,
h1 a:hover {
border: none;
}
.brand {
max-width: 185px;
}
</style>
</head>
<body classname="w-100">
<div tabindex="-1" role="group" style="outline: none;">
<div class="mw6 mw7-ns center pt4 pa2 ph5-ns">
<header class="bg-white black-80 tc pv3">
<img
class="brand"
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUwMCIgaGVpZ2h0PSIyMzM0IiB2aWV3Qm94PSIwIDAgMjU2IDIzOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCI+PHBhdGggZD0iTTExOS41NCAxMDAuNTAzYy0xMC42MSAxNy44MzYtMjAuNzc1IDM1LjEwOC0zMS4xNTIgNTIuMjUtMi42NjUgNC40MDEtMy45ODQgNy45ODYtMS44NTUgMTMuNTggNS44NzggMTUuNDU0LTIuNDE0IDMwLjQ5My0xNy45OTggMzQuNTc1LTE0LjY5NyAzLjg1MS0yOS4wMTYtNS44MDgtMzEuOTMyLTIxLjU0My0yLjU4NC0xMy45MjcgOC4yMjQtMjcuNTggMjMuNTgtMjkuNzU3IDEuMjg2LS4xODQgMi42LS4yMDUgNC43NjItLjM2N2wyMy4zNTgtMzkuMTY4QzczLjYxMiA5NS40NjUgNjQuODY4IDc4LjM5IDY2LjgwMyA1Ny4yM2MxLjM2OC0xNC45NTcgNy4yNS0yNy44ODMgMTgtMzguNDc3IDIwLjU5LTIwLjI4OCA1Mi4wMDItMjMuNTczIDc2LjI0Ni04LjAwMSAyMy4yODQgMTQuOTU4IDMzLjk0OCA0NC4wOTQgMjQuODU4IDY5LjAzMS02Ljg1NC0xLjg1OC0xMy43NTYtMy43MzItMjEuMzQzLTUuNzkgMi44NTQtMTMuODY1Ljc0My0yNi4zMTUtOC42MDgtMzYuOTgxLTYuMTc4LTcuMDQyLTE0LjEwNi0xMC43MzMtMjMuMTItMTIuMDkzLTE4LjA3Mi0yLjczLTM1LjgxNSA4Ljg4LTQxLjA4IDI2LjYxOC01Ljk3NiAyMC4xMyAzLjA2OSAzNi41NzUgMjcuNzg0ID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NC0zMC43ODQgMTguOTc1LTU4LjE0NyA0Ny4xNzgtNjQuMjkzIDEuOTQ3IDcuMDcxIDMuOTE1IDE0LjIxIDUuODYyIDIxLjI2NC0yNS44NzYgMTMuMjAyLTM0LjgzMiAyOS44MzYtMjcuNTkgNTAuNjM2IDYuMzc1IDE4LjMwNCAyNC40ODQgMjguMzM3IDQ0LjE0NyAyNC40NTcgMjAuMDgtMy45NjIgMzAuMjA0LTIwLjY1IDI4Ljk2OC00Ny40MzIgMTkuMDM2IDAgMzguMDg4LS4xOTcgNTcuMTI2LjA5NyA3LjQzNC4xMTcgMTMuMTczLS42NTQgMTguNzczLTcuMjA4IDkuMjItMTAuNzg0IDI2LjE5MS05LjgxMSAzNi4xMjEuMzc0IDEwLjE0OCAxMC40MDkgOS42NjIgMjcuMTU3LTEuMDc3IDM3LjEyNy0xMC4zNjEgOS42Mi0yNi43MyA5LjEwNi0zNi40MjQtMS4yNi0xLjk5Mi0yLjEzNi0zLjU2Mi00LjY3My01LjUzMy03LjI5OHoiIGZpbGw9IiMwMDc0RDkiLz48L3N2Zz4="
/>
<h1 class="mb0 black lh-title fw7 pa0 f1">Webpipes</h1>
<h2 class="black-60 lh-copy mt0 mb0 f2">
Building a programmable web for everyone.
</h2>
</header>
<p class="tc pt0 mt0">
Join us on
<a
href="https://join.slack.com/t/webpipes/shared_invite/enQtNjgwMzUzMDk1NzAxLTUwNDE5ZTJmMTgyMWI4MjgxOGNjOWEzNzU3Yzc5MjM0M2E1MzJlYTI0OTY1Njc3YWJhODMxYzZkZjY2MzMyNDY"
>
Slack
</a>
, and <a href="https://www.github.com/webpipes">GitHub</a>.
</p>
<section class="cf">
<main class="fl w-8">
<p>
WebPipes are a work-in-progress open proposal for linking together
web services. Essentially, you can think of Webpipes as the web
version of Unix programs; small utilities available over HTTP that
do one thing, and do it well. Fittingly, Webpipes follow the Unix
philosophy:
</p>
<ul>
<li>Write programs that do one thing and do it well.</li>
<li>Write programs to work together.</li>
<li>
Write programs to handle text streams, because that is a
universal interface.
</li>
</ul>
<p>
The magic comes when you start chaining pipes together. You can
create really amazing workflows by combining a few small pieces
together.
</p>
<hr />
<h2>But... why?</h2>
<p>
Aside from the beauty of composing pipelines, individual Webpipes
can be called directly as well. In fact, Webpipes and pipelines
both share the same interface for handling inputs and outputs.
This common interface provides users easy use since clients can
abstract away the underlying logic and requirements behind
requests, inputs, outputs, and types.
</p>
<p>
Further, this common input/output interface essentially eliminates
the time necessary to discover, research, learn & implement
new APIs. All developers need to know is the name of an API to
begin making calls.
</p>
<iframe
src="https://carbon.now.sh/embed/?bg=rgba(255%2C255%2C255%2C1)&t=one-light&wt=none&l=javascript&ds=true&dsyoff=20px&dsblur=68px&wc=true&wa=true&pv=0px&ph=0px&ln=false&fm=Hack&fs=14px&lh=133%25&si=false&es=1x&wm=false&code=const%2520webpipeURL%2520%253D%2520'https%253A%252F%252Fparse-markdown-wp.com%252F'%250Aconst%2520inputs%2520%253D%2520%257B%2520markdown%253A%2520'*hello%2520world*'%2520%257D%250A%250Awebpipe.execute(webpipeURL%252C%2520inputs%252C%2520(err%252C%2520data)%2520%253D%253E%2520%257B%250A%2520%2520if%2520(err)%2520return%2520console.warn(err)%250A%250A%2520%2520%252F%252F%2520Prints%2520the%2520response%2520of%2520the%2520Parse%2520Markdown%2520webpipe.%250A%2520%2520console.log(data)%250A%257D)%250A"
sandbox="allow-scripts allow-same-origin"
style="height: 275px; border: 0px; overflow: hidden; width: 100%;"
></iframe>
<p>
Once Webpipe registries become available, URL calls can be reduced
down to just a namespace, like
<code>@github/convert-markdown</code> or
<code>@google/vision/detect-image-text</code> .
</p>
<hr />
<h2>How do they work?</h2>
<p>
Since a Webpipe is language endpoint and essentially just a script
that receives input via HTTP POST/GET, there's not much else to
know other than how to structure the output.
</p>
<p>
The core behaviorial requirements are handled by client and server
libraries.
</p>
<p>
Precise requirements are covered in the
<a href="https://github.com/webpipes/spec">specification</a> .
</p>
</main>
</section>
</div>
</div>
</body>
</html>