Show HN: AutoBashCraft – a tool for automated Markdown screencast generation Hello HN, Around New Year's I started a personal project called AutoBashCraft (ABC), aiming to simplify the creation of screencasts from bash code blocks in markdown files. I needed to create a lot of markdown files explaining workflows and code. I wanted to make the text-heavy files more interesting and thought of screencasts. There are many great tools to record terminal sessions. Then I found the asciinema-rec-script ( https://ift.tt/nXUsgAC ) by Chris Ottrey that creates screencasts of bash scripts that look like a record of a terminal session including typing out the commands. I wanted the markdown files to be the same documents you would use as training or documentation material so I picked HTML comments to mark the codeblocks that are supposed to be executed. It would then execute the commands and save the screencast next to the markdown file in an asset folder so they can be easily embedded just under the codeblock. I went on from there and more commands were added such as 'create' to create a file with the contents of the codeblock, 'browse' to create a screenshot of a website, 'spawn' to spawn a background process, 'snapshot' to create a docker container of the current environment state, 'init' to initialize a new environment e.g. from a snapshot created in another file and 'config' to change configuration for the following commands. ABC is very much a work-in-progress and a proof of concept at this stage. I am also thinking of adding an editor to create a similar experience to jupyter notebooks, with automatic snapshots between each command in dev mode. There is so much work left to be done but for now I am back at my day job. The repository includes some examples that also work as (currently manually executed tests) including more complex workflows like automating MBTiles generation and usage or integrating private GPT, showcasing what I hope it can become. Running it is as simple as using NPX, with Docker and Node.js being the only requirements. Please only run your code or code you trust (esp. with docker activated). I later realized it also serves as a validator for the accuracy of instructional content. It happens so often that training material is missing important steps and it is very frustrating for beginners to follow a guide step by step and it just won't work. I'd be incredibly grateful if you could take a moment to check it out on GitHub, give it a star if you find it interesting, and maybe even contribute or fork it. I'm looking forward to your feedback and suggestions. Let's make something great together! Links: https://ift.tt/2yS51xY https://ift.tt/sgANYJn... https://ift.tt/ShRqJDj... https://ift.tt/ShRqJDj... https://ift.tt/ShRqJDj... https://ift.tt/2yS51xY February 10, 2024 at 03:31AM
Show HN: AutoBashCraft – a tool for automated Markdown screencast generation https://ift.tt/p3bntIw
Related Articles
Show HN: Fetchbook – Run and test your HTTP requests 100% locally https://ift.tt/MAFnlv8Show HN: Fetchbook – Run and test your HTTP requests 100% locally http… Read More
Show HN: Go from code –> database catalog with AI https://ift.tt/LF9SEnQShow HN: Go from code –> database catalog with AI Sonar crawls your… Read More
Show HN: A tool to Convert JSON schemas into TypeScript Deno classes https://ift.tt/dPYcaxTShow HN: A tool to Convert JSON schemas into TypeScript Deno classes H… Read More
Show HN: Cut back alcohol in a warm and supportive app https://ift.tt/uiFWBx9Show HN: Cut back alcohol in a warm and supportive app I've always bee… Read More
Show HN: Using File System as Database https://ift.tt/gyEjLdQShow HN: Using File System as Database https://ift.tt/xwOief8 October … Read More
Show HN: An image generator that embeds headline text for X / Twitter Cards https://ift.tt/pn7CBgjShow HN: An image generator that embeds headline text for X / Twitter … Read More
Show HN: Universal adapter for TypeScript schema validation https://ift.tt/UQbm5DiShow HN: Universal adapter for TypeScript schema validation https://ty… Read More
Show HN: Use Python docstrings as exception messages https://ift.tt/SD76J1uShow HN: Use Python docstrings as exception messages The following exc… Read More
0 Comments: