| name | jsalt.quickstart |
| description | Agent workflow for learning JSALT and building .jsa apps with executable validation and AST checks. |
| tags | jsalt,jsa,frontend,ast,validation,agents |
jsalt Quickstart
Use this when you need to generate or edit JSALT (.jsa) apps with reliable syntax validation.
1) Install plugin and dependency
supercli plugins learn jsalt
npm install -g jsalt
supercli plugins install ./plugins/jsalt --json
2) Validate CLI wiring
supercli jsalt cli help
supercli plugins doctor jsalt --json
3) Core JSALT syntax checklist
let key = value for reactive state.
const x = computed(() => expr) for derived state.
fn name = "handler code" for reusable handlers.
watch key = "handler code" for side effects.
on mount = "..." and on destroy = "..." for lifecycle.
- Element shape:
div#id.class { css: value } @click = "..." = "content".
4) Useful directives for agent-generated UI
if = "${expr}" conditional render.
show = "${expr}" visibility toggle.
each = "${array}" loops (item, idx available).
bind = "stateKey" two-way form binding.