My First Vibe-Coded Web App: Code Printer
This was my first vibe-coded web app. Before this, I had only worked on WinForms projects, but vibe coding let me deploy a web app for the first time.
I built it early on, when coding agents were just starting to appear. I remember working on it with Gemini CLI and being impressed by how capable it was.
Ah, today’s agents might point out countless things that need fixing.
At first, following an agent’s recommendation, I deployed it through GitHub Pages. I later moved it to Cloudflare because it was easier to manage.
If you’d like to read about my experience with places to deploy, take a look at Where Should I Put the Programs I Make? (For Web Services). I haven’t tried that many, but I wrote down what I learned from using them myself.
Code Printer
It does one simple thing. You paste in code, then adjust how it will look when printed while looking at a preview.
For example, you can change the font or size, insert page breaks, or print in two columns.
When reading code only on a screen, it is sometimes hard to grasp the overall flow at once, so I occasionally wanted to print it out or save a clean PDF to read through calmly. Printing directly from a browser, however, often resulted in awkward line wraps and wasted margins.
That led me to build an interactive preview where I could tweak font sizes, margins, and two-column layouts until everything fit cleanly on a page. Once built, it turned out to be just as handy for exporting clean PDFs as it was for physical printing.
Maybe because you rarely need to print source code from VS Code or most IDEs, it can be hard to find features like these.
But while writing this, I searched again and found similar programs. There is even an open-source web app with almost the same name.
Still, I’m happy with it because I made it the way I wanted and use it myself.
Code Printer is open source. You can try it yourself or take a look at the source code below.