问HN:有没有针对个人使用的一次性HTML工具?

1作者: xeonmc2 个月前原帖
我最近需要在户外频繁记录时间戳,所以我写了一个大约30行的HTML表单,里面只有一个输入框和三个按钮(时间戳/换行/清除),让我可以快速记录信息。<p>结果发现,将其制作成离线的渐进式网络应用(PWA)只需添加一个清单文件和一个用于缓存请求的sw.js,再加上两行localStorage代码以实现持久化,因此我现在在手机上有了一个可靠的应用,它是木匠自制的丑陋但实用的工具的数字等价物。<p>手动制作一个简单的HTML应用让我感到很不错,这让我重新认识到,如果不把它复杂化,使用网络技术是多么简单,就像用乐高积木拼成的汽车一样。<p>你有哪些为个人使用量身定制的、利用最简单的原生网络技术的黑科技小工具呢?
查看原文
I recently needed to frequently log timestamps on my phone while outside, so I wrote a ~30 line HTML form that is just an input box and three buttons (Timestamp&#x2F;Newline&#x2F;Clear) that lets me quickly log a message.<p>Turns out that making it into an offline PWA is just a matter of adding a manifest and a sw.js for cache requests, and two lines of localStorage for persistence, so now I have a trusty app on my phone that’s the digital equivalent of a carpenter’s self-crafted ugly-but-works shop tool.<p>It felt good that hand-rolling a barebones HTML app is actually so easy, giving me a new appreciation for the ease of use of the webstack if you don’t overcomplicate it into a car made from Legos.<p>What are some of your tailored-for-personal-use hacky toolets that leverages a minimal use of vanilla webstack?