6 ms·
I think the reason this was an evening project for Simon is based on both the code and the tests and conjunction. Removing one of them would at least 10x the ef
by EmilStenstrom 9mo ago
I think the reason this was an evening project for Simon is based on both the code and the tests and conjunction. Removing one of them would at least 10x the effort is my guess.
- simonw 9mo agoThe biggest value I got from JustHTML here was the API design. I think that represents the bulk of the human work that went into JustHTML - it's really nice, and lifting that directly is the thing that let me build my library almost hands-off and end up with a good result. Without that I would have had to think a whole lot more about what I was doing here!
- orange_puff 9mo agoDo you mind elaborating? By API design, do you mean how they structured their classes, methods, etc. or something else?
- simonw 9mo agoI mean the design of the user-facing API: https://github.com/EmilStenstrom/justhtml/blob/main/docs/api.md https://github.com/EmilStenstrom/justhtml/blob/main/docs/api... See also the demo app I vibe-coded against their library here: https://tools.simonwillison.net/justhtml https://tools.simonwillison.net/justhtml - that's what initially convinced me that the API design was good. I particularly liked the design of JustHTML's core DOM node: https://github.com/EmilStenstrom/justhtml/blob/main/docs/api.md#simpledomnode https://github.com/EmilStenstrom/justhtml/blob/main/docs/api... - and the design of the streaming API: https://github.com/EmilStenstrom/justhtml/blob/main/docs/api.md#stream https://github.com/EmilStenstrom/justhtml/blob/main/docs/api...