git ssb

16+

Dominic / patchbay



Tree: 669c8de63323a3bef791c71d2cf0e2892b9507ef

Files: 669c8de63323a3bef791c71d2cf0e2892b9507ef / main.js

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

Built with git-ssb-web