
Dot is an open-source command-line tool for setting up software projects. You answer few questions about your stack and how you want to structure the project, and Dot generates the starter files and configuration.
I designed and built it to make starting a project faster without having to maintain a separate template for every setup.

I already had a GitHub template with a README, other Markdown files, and CI workflows. It saved me some work, but I still spent time setting up the folder structure and adapting the tooling and CI for each project. Keeping a template for every combination would have meant updating the same pieces in several places. I built Dot to reuse those pieces while letting each project choose the setup it needs.
For example, two Express apps can share the same server setup and still use different folder structures. In Dot, I can keep the rest of the answers identical, select MVC in one run and Clean Architecture in the other, and get two different starting points from the same wizard.


The hardest part was getting generators to work together without interfering with each other. The collisions became clear when I tested several generators in combination. After a few attempts, I split them into smaller pieces with one responsibility each.
One sets up the project structure, another configures TypeScript, and others add specific tools. That made it easier to see what each generator was responsible for and to reuse it in other combinations. Some choices still need to touch the same file. The TypeScript setup and a testing tool can both contribute to package.json, for example.

I wrote Dot in Go and use Huh to display the interactive forms in the terminal. The questionnaire collects the answers in a project specification. A flow uses that specification to select the generators. They build the project’s file tree in memory, and Dot writes it to disk once they have run. This separates the questions users see from the code that assembles their project.
Dot also writes a .dot directory. It records the answers in spec.json and the generators and versions used in manifest.json. That information gives commands such as dot doctor and dot update a way to inspect an existing setup or run generation again without asking the same questions.

A generator can behave correctly on its own and still cause a problem when paired with another. To check the combinations, Dot has a runner that replays a set of answers from a file. It runs the same generation pipeline and checks (using tests) the resulting project against the generators’ declared expectations. I can use that to check an Express setup again after changing a shared piece, without walking through the wizard by hand each time.