Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
There are also command-line tools for writing choice-based i-f, that it sounds like you want to do, like some command-line variants of Twine. Never tried, but I suppose most of those also can run in Termux as well as on a laptop. I know my own little tool (pangamebook) works at least, because I test it regularly on my phone to make sure it works there if I ever want to edit a story away from my computer.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.