gs-lumina
v0.2.5
Published
Backend-oriented vanilla JavaScript SPA core focused on speed, accuracy, and stability.
Maintainers
Readme
gs-lumina
Backend-oriented vanilla JavaScript SPA core focused on speed, accuracy, and stability.
Install
npm install gs-luminaUsage
import gs from 'gs-lumina';
gs.setup({
module: {
routes: {
index: 'home',
direct: 'not_found',
},
},
});
await gs.mount({
modules() {
// register screen, layout, buffer, and module definitions here
},
});Behaviors
import autogrow from '@gs-lumina/autogrow-behavior';
gs.behavior.use('autogrow', autogrow);
await gs.mount();Layer Cache
Layer DOM cache is enabled by default for production speed.
gs.setup({
config: {
layerCache: false,
},
});
gs.module.pushLayout('users_page', {
path: 'users/page.php',
cache: false,
});
gs.module.clearLayerCache('users_page');This package contains only the GS Lumina core runtime. CLI templates, plugins, and full documentation are distributed separately.
