git ssb

16+

Dominic / patchbay



Tree: f1db11f663cc169035aa21d6ca1777e5530a739b

Files: f1db11f663cc169035aa21d6ca1777e5530a739b / main.js

825 bytesRaw
1const combine = require('depject')
2const entry = require('depject/entry')
3const nest = require('depnest')
4
5const horcrux = require('ssb-horcrux')
6const ssbchess = require('ssb-chess')
7const patchHub = require('patch-hub')
8const gatherings = require('patch-gatherings')
9const bayGatherings = require('patchbay-gatherings')
10const patchbay = require('./')
11const patchContext = require('patch-context')
12const patchcore = require('patchcore')
13
14// polyfills
15require('setimmediate')
16
17// from more specialized to more general
18const sockets = combine(
19 // horcrux,
20 // ssbchess,
21 // patchHub,
22 // gatherings,
23 // bayGatherings, // TODO collect gatherings into this
24 patchbay,
25 patchContext,
26 patchcore
27)
28
29const api = entry(sockets, nest('app.html.app', 'first'))
30
31const app = api.app.html.app()
32document.body.appendChild(app)
33

Built with git-ssb-web