post-web data runtime
[!WARNING] Highly experimental work in progress
https://www.npmjs.com/package/data-apps-tool
npm install -g data-apps-tool
$ data-apps-tool portal
./index.json
file which contains an array of all valid filepaths in current folder.http://localhost:10000
index.html
file which connects to ws://localhost:10000
index.html
loads index.js
unless user specified a js filepath argument after portal
[!NOTE] e.g.
data-apps-tool portal index.js
runs a data-apps-tool browser page which loadsindex.js
with access to the full runtime api surface
window.vault
window.vault
vault.burnthemall()
vault.burnthemall()
// resets the embedded database and deletes all data
vault.on(type, callback)
vault.on('portal', async (ws) => {
console.log('portal', ws)
})
//
vault.on('files', async (files, version) => {
console.log('files', files, version)
console.log('@TODO: download and cache all files listed `files` array?')
// @TODO: hash or stat.ctime as eTag for files ...integrity
// => should probably be included in files as an object instead of array
})