git ssb

16+

Dominic / patchbay



Tree: 5cd46b11922a1f278799522bc6fafd8e11fb9ac0

Files: 5cd46b11922a1f278799522bc6fafd8e11fb9ac0 / main.js

888 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 patchSettings,
28 patchcore
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