r/interactivefiction • u/iguled • 38m ago
Twee compiler and Twine .html story fault-checker (also with image compression)
I've been building `twee-tools`, a free, open-source checker and compiler for Twine / Twee stories.
It's primary purpose is as a twee compiler, but it works with pure twine interface builds too. Publish your story to file from the Twine editor and run:
`twee-tools check story.html`
It lists everything it finds:
- broken links and passages nothing reaches
- dead ends
- misspelt macros: ((lnk-goto:) → did you mean (link-goto:)?)
- variables that get read but are never set
- = instead of == in a SugarCube <<if>>
- missing images
If you're using twee files you can point it to a directory and run the build command and i'll do the same thing.
It works with SugarCube, Harlowe, Chapbook and Snowman.
It's a terminal application so I can appreciate it's probably for more advanced users, but thought I'd drop it here anyway since it's relevant.
It also bundles in an image compressor. Should your story be media-heavy and require some webp conversions etc.
It's at 0.1, so I'd love to hear what it gets wrong. False positives on real stories are the most useful reports, and so are custom macro libraries it doesn't know about.





