Hi HN. I'm the creator of Autism Simulator[1], a choose-your-own-adventure story. I used a library called Inkle for the CYOA logic but I really had to push the limits of the JS implementation of Inkle to get it to accomodate player stats over time (and it was fragile!).
So I've built my own CYOA adventure library.
[1] https://autism-simulator.vercel.app/