breck7 / scrollsdk

Build on top of Scroll.
https://sdk.scroll.pub
380 stars 17 forks source link

Core: Create a lightweight microjs Scroll Notation library #103

Closed breck7 closed 1 month ago

breck7 commented 4 years ago

Yesterday for the CopyPaster demo (https://github.com/treenotation/copypaster), I wanted to use just a few core methods from the jtree library. The current jtree.browser.js file however, is 5,600 lines and 200KB. It contains the full Grammar Language, amongst other things.

Perhaps we could ship a version that is just the core TreeNode library? Just the basic methods for parsing, querying, editing trees. Maybe someone could create another project in TypeScript/Javascript that implements core Tree Notation helper methods?