git ssb

16+

Dominic / patchbay



Tree: c57ff654a8c9a637c6b7842e46cb621585484e81

Files: c57ff654a8c9a637c6b7842e46cb621585484e81 / 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