Live data from Hacker News

Using Claude Code: The unreasonable effectiveness of HTML

twitter.com

211–220 of 308 posts

Re: Using Claude Code: The unreasonable effectiveness of HTML

#211
post #21

My concern here is that by gravitating to HTML you lose the ability for a human (you!) to easily co-author the document with the LLM. If it’s just an explainer for your consumption, that’s not a concern - but if it’s a spec sheet for something more complex, I deeply value being able to dive in and edit what is produced for me. With a HTML doc it is much harder to do that than with MD. Now of course you could just rep…

I actually think there is a second level to this. Yes HTML will get you most anywhere, but I found that letting the LLM define its own language is also unreasonably effective. Currently working on a dumb little mobile game with isometric view and sound: - told codex to write a tool that lets its place blocks in a prepared three.js document and have chromium dev tools take a screenshot. It made up a little JSON struct…

This sounds very intriguing have you written more about it anywhere we can read?

Re: Using Claude Code: The unreasonable effectiveness of HTML

#215

We previously had our ( https://www.definite.app/ ) agent write reports / dashboards in a YAML spec that would get rendered by our frontend framework (i.e. charts and tables). For example, user says "build a report with revenue and orders by month and show 100 most recent orders". The agent would write a spec that would get rendered by our frontend. This runs fast, but we were drowning in feature requests for what th…

How do you protect against prompt injection in this case?

Re: Using Claude Code: The unreasonable effectiveness of HTML

#217
post #59
post #12

When exploring a new idea or tool, my go to prompt is ``` In a single index.html, no dependencies, sparse styling, create an app that ``` Even before AI, it's how I built small tools, and there's something lovely about being able to email my friends the tool, and tell them "If you want to make a change, toss it to your LLM!"

This is the way! It is incredible how far you get with a single HTML-file, containing styles and JS, when building dashboards, small apps and other utilities that can interact with an API or otherwise fetch data from somwhere. I just drop it on my personal ~ folder on the shared server at work and voilà, everyone can check it out and use it immediately!

And you get sandboxxing for free! My company got tailscale recently, and its just the final cherry on top: `tailscale serve` my `/tools`, and I don't even have to worry about auth!

Re: Using Claude Code: The unreasonable effectiveness of HTML

#218

Earlier quoted context omitted.

I really like this idea. The md preview thing is super annoying. However, I was hoping your solution was like a local desktop app thats a dedicated md rendering app, things you've asked for line up in the queue for review. My browser is like a junk drawer, can't be bothered to go hunting in there.

Interesting point. If you have any ideas how SmallDocs could be both let me know…!

Obsidian does a great job of providing WYSIWYG rendering of editable markdown. HTH.

Re: Using Claude Code: The unreasonable effectiveness of HTML

#220
post #212

I posted this same Twitter article about 5-6 hours before this post was made and got only a couple of likes and zero comments. What gives? Using Claude Code: The Unreasonable Effectiveness of HTML https://news.ycombinator.com/item?id=48069859

Bad luck but doesn't really matter, does it?
Post reply on HN