- Zig 85%
- Rust 15%
ReTangled #
ReTangled is a bi-directional literate programming tool compatible with Entangled. Its goal is to seamlessly integrate into any build system while providing a powerful way to document and think about your software.
ReTangled is documented with ReTangled. Read the documentation.
Installation #
$ git clone https://codeberg.org/liberty/retangled.git && cd retangled
$ zig build
Usage #
Run the ReTangled command with all the files you wish to tangle as arguments.
$ retangled my_program.md my_program_part_2.md
Development #
To develop ReTangled, the program must be retangled (without stitch comments) after any change.
$ retangled tangle lit/*.md
Then you can run zig build, zig test, and any other command.
When the feature is implemented, you will only need to zig build and ReTangled will retangle itself.
If you want live rebuilds, you can use entr or a similar tool to set up something like the following.
$ ls lit/*.md | entr retangled --only-tangle lit/*.md
I like to run the above with zig build test --watch -fincremental in another terminal.
Contributing #
ReTangled is a labor of love and has been written without the use of LLMs in any capacity. Contributors are held to the same expectation and are subject to the LLM policy.
License #
Copyright 2026 Anna Liberty liberty.817@proton.me
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.