cabal clients
cabal-core
cabal-core
discovery-swarm
dat-swarm-defaults
kappa-view-level
kappa-core
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var neatLog = require('..') | |
| var output = require("diffy/trim") | |
| var log = neatLog(headerView, {fullscreen: true}) | |
| log.render() // force an immediate render | |
| function headerView (state) { | |
| return output(` | |
| Hello World! | |
| rows ${process.stdout.rows} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isValidMessage(msg) { | |
| if (!msg.value.type) msg.value.type = "text/chat" | |
| return msg.value && typeof msg.value === "object" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var hypercore = require('hypercore') | |
| var pump = require("pump") | |
| var disco = require("discovery-swarm") | |
| var feed = hypercore('./single-chat-feed', { | |
| valueEncoding: 'json' | |
| }) | |
| var swarm = disco() | |
| feed.ready(function () { | |
| console.log("pub", feed.key.toString("hex")) |
cabal-client definitely stores:
- what channels you have joined
- for each channel you've joined: what was the latest message you read in that channel
- last viewed channel
cabal-client probably stores:
- what cabals you have joined
- what aliases (human friendly names for cabal:// keys) you have for those cabals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var asciify = require('asciify-image') | |
| var options = { | |
| fit: 'box', | |
| width: process.stdout.columns, | |
| height: process.stdout.rows | |
| } | |
| asciify('cabal.png', options) | |
| .then(function (asciified) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ext.broadcast |
links with context about the missing cryptographic primitives that are needed for hypercore-with-noise to be able to browserify properly
basically sodium-javascript needs some loving
- holepunchto/hypercore#234
- emilbayes/noise-protocol#7
- dxos-deprecated/protocol#2
- sodium-friends/sodium-javascript#17
- unrelated go implementation of the missing primitive? https://github.com/GoKillers/libsodium-go/blob/master/crypto/aead/xchacha20poly1305ietf/crypto_aead_xchacha20poly1305_ietf.go
- sodium-friends/sodium-javascript#19 (comment) in which emilbayes outlines what is needed to be implemented, and the difficulty of each task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /ban | |
| /mute | |
| /purge | |
| /ignore | |
| **with optional stated reason** | |
| hide all posts | |
| hide future posts | |
| hide locally only |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return new Promise((res, rej) => { | |
| rej ("mistaken") | |
| console.log("Nope :)") | |
| res("hehe") | |
| }).then(() => { | |
| console.log("execution continued without problem") | |
| }).catch(() => { | |
| console.log("lol im a noob") | |
| }) |