LogicArt runtime library for checkpoint-based debugging and live code visualization
npm install logicart-coreLogiGo runtime library for checkpoint-based debugging and live code visualization.
``bash`
npm install logigo-core
`javascript
import { checkpoint } from 'logigo-core';
function bubbleSort(arr) {
checkpoint('sort_start', { arr });
for (let i = 0; i < arr.length; i++) {
checkpoint('outer_loop', { i });
for (let j = 0; j < arr.length - i - 1; j++) {
if (arr[j] > arr[j + 1]) {
[arr[j], arr[j + 1]] = [arr[j + 1], arr[j]];
checkpoint('swap', { i, j, arr: [...arr] });
}
}
}
checkpoint('sort_end', { arr });
return arr;
}
`
`javascript
import { checkpointAsync, LogiGoRuntime } from 'logigo-core';
const runtime = new LogiGoRuntime({ manifestHash: 'abc123' });
runtime.setBreakpoint('critical_point', true);
async function processData(data) {
await checkpointAsync('critical_point', { data });
// Execution pauses here until runtime.resume() is called
}
``
- Deferred serialization for performance
- Queue overflow protection (5000 limit)
- Breakpoint support for debugging
- Session management for HMR sync
- Grounding layer for AI integration
MIT