git ssb

16+

Dominic / patchbay



Tree: 31a6b451195783f711ecd29057d9dc3ea60f92aa

Files: 31a6b451195783f711ecd29057d9dc3ea60f92aa / main.js

890 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')
13const patchSettings = require('patch-settings')
14
15// polyfills
16require('setimmediate')
17
18// from more specialized to more general
19const sockets = combine(
20 // horcrux,
21 // ssbchess,
22 // patchHub,
23 // gatherings,
24 // bayGatherings, // TODO collect gatherings into this
25 patchbay,
26 patchContext,
27 patchcore,
28 patchSettings
29)
30
31const api = entry(sockets, nest('app.html.app', 'first'))
32
33const app = api.app.html.app()
34document.body.appendChild(app)
35

Built with git-ssb-web