The most performant solution for syncing dynamic nested objects/trees with their flattened representation. Aspen trees are powered by superfast
~5x faster than regular Arrays in all operations like lookups (
indexOf) and alterations (
splice), which means best of the best.
Aspen was built to serve
react-aspen, a library for displaying nested trees in React apps (like file trees, indented todo lists etc.) while ensuring
everything is super-efficient.
It is recommended that you read documentation for
react-aspen to get a better idea on what this is all about.
You shouldn't have to use this library "as is" unless you're porting
react-aspento another rendering library and you need a very efficient backend
npm i aspen-core
Light it up
// refer to the full API on what is possible next
This library is written in TypeScript. Type definitions are included when you do
npm i aspen-core. Documentaion is available here.
This project is licensed under MIT license. You are free to use, modify, distribute the code as you like (credits although not required, are highly appreciated)