brainsatplay extends the Web Application Specification Language (WASL) to allow for editing high-performance web applications at runtime—as well as saving changes to the local filesystem using the File System Access API.
Note: brainsatplay is a core library of the Brains@Play Framework
See complete documentation for the Brains@Play Framework at docs.brainsatplay.com.
import * as brainsatplay from 'https://cdn.jsdelivr.com/npm/brainsatplay/dist/index.esm.js'
let app = new brainsatplay.App(
'https://raw.githubusercontent.com/brainsatplay/wasl/main/tests/0/0.0/0.0.0/external/index.wasl.json', // undefine to select from filesystem | object to load directly | string for url imports
{
edit: true
}
)
const wasl = await app.start(undefined, optionsToPass)
if (wasl){
console.log('App', app)
console.log('Errors', wasl.errors)
console.log('Warnings', wasl.warnings)
}
This library is maintained by Garrett Flynn and Joshua Brewster, who use contract work and community contributions through Open Collective to support themselves.
Support us with a monthly donation and help us continue our activities!
Become a sponsor and get your logo here with a link to your site!