-
Notifications
You must be signed in to change notification settings - Fork 0
/
apis.js
83 lines (83 loc) · 2.48 KB
/
apis.js
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
export default {
'apis.do': {
icon: '🚀',
type: 'core',
description: 'Hypermedia-driven API Directory',
endpoints: {
listCategories: '/api',
getCategory: '/:type',
search: '/search/:term',
},
examples: {
getUtilities: '/utilities',
searchForData: '/search/data',
},
},
'esbuild.do': {
icon: '⚡️',
type: 'code',
description: 'ESBuild as a Service',
endpoints: {
build: '/:url',
},
examples: {
buildPackage: 'https://esbuild.do/pkg.do/lodash',
buildGeneratedWorker: 'https://esbuild.do/worker.do/cube/x=5/x^3',
buildGist: 'https://gist.githubusercontent.com/nathanclevenger/05c566c2452de53caa20a32cd12fbbca/raw/0c8ef49c00d3614b04c1228f279c556c96ef14b8/index.js',
}
},
'gist.do': {
icon: '🛠',
type: 'code',
description: 'Abstract Syntax Tree Parser',
endpoints: {
deployWorker: '/:gist',
invokeWorker: 'https://gist.gist.do',
},
examples: {
publish: 'https://gist.do/28a6b4bfde485b704a2fcc9b6c874e79',
invokeWorker: 'https://28a6b4bfde485b704a2fcc9b6c874e79.gist.do',
publishAPI: 'https://gist.do/api/nathanclevenger/28a6b4bfde485b704a2fcc9b6c874e79',
publishWorker: 'https://gist.do/worker/nathanclevenger/28a6b4bfde485b704a2fcc9b6c874e79',
}
},
'pkg.do': {
icon: '📦',
type: 'code',
description: 'Simple Package Bundle CDN',
endpoints: {
getPackage: '/:package',
},
examples: {
getAPIs: '/apis.do',
getLodash: '/lodash-es',
getVersion: '/[email protected]',
},
},
'syntax.do': {
icon: '⚡️',
type: 'code',
description: 'Abstract Syntax Tree Parser',
endpoints: {
parseScript: '/:code',
parseModule: '/:url',
},
examples: {
parseScript: 'https://syntax.do/x=x+3',
parseGist: 'https://syntax.do/gist.githubusercontent.com/nathanclevenger/05c566c2452de53caa20a32cd12fbbca/raw/203017cdae58f14d72a242627a1e10e986444a2f/index.js',
},
},
'worker.do': {
icon: '👌',
type: 'code',
description: 'Generate Worker from any JavaScriptFunction',
endpoints: {
buildCode: '/:name/:args/:code',
buildFile: '/:name/:args/:url',
},
examples: {
workerFromScript: 'https://worker.do/cube/number=5/5^3',
workerFromGist: 'https://worker.do/math/number=5/gist.githubusercontent.com/nathanclevenger/05c566c2452de53caa20a32cd12fbbca/raw/203017cdae58f14d72a242627a1e10e986444a2f/index.js',
},
},
}