Hacker News 中文摘要

RSS订阅

Show HN:极简浏览器编辑器,所有内容存于URL -- Show HN: Minimalist editor that lives in browser, stores everything in the URL

文章摘要

这是一个名为textarea的笔记网页应用项目,托管在GitHub上,由开发者antonmedv创建和维护。项目提供基本的笔记功能,适合快速记录和编辑文本内容。

文章总结

GitHub项目:antonmedv/textarea - 一个极简笔记网页应用

主要内容概述: 1. 项目简介 - 项目名称为textarea,是一个基于浏览器的极简笔记网页应用 - 在线访问地址:https://textarea.my/ - 当前获得200个star和6个fork

  1. 核心功能
  • 纯前端实现,无后端服务器
  • 采用URL哈希存储所有内容(使用deflate压缩算法)
  • 支持自动保存(500ms防抖)
  • 适配暗黑模式
  • 移动设备友好
  • 通过分享URL即可共享笔记
  1. 使用方式
  • 直接访问网站开始输入内容
  • 内容会自动保存到URL和localStorage
  • 支持通过"# Title"语法设置页面标题
  1. 特色功能
  • 开发者工具中可添加自定义样式(会保存在URL中)
  • 提供示例链接展示长篇内容存储能力
  1. 技术细节
  • 100% HTML实现
  • 项目最后更新于2023年(根据页面底部版权信息推断)

注:原文中大量重复的GitHub界面导航元素、错误提示和赞助信息等非核心内容已做删减,保留了项目的主要功能描述和使用说明。

评论总结

评论总结:

  1. 对工具的赞赏与喜爱
  • "Love your other tools, btw!" (nvahalik)
  • "This is very interesting, very refreshing...Bravo and thank you." (billforsternz)
  1. 类似项目的分享
  • "I made a similar thing but the html for the text editor fits in a data uri" (samcollins)
  • "I have a similar one using localStorage" (marcuskaz)
  1. URL长度讨论
  • "Per the spec, a URL can hold at least 8,000 characters." (maxloh)
  • "546,229 character-length URL...Half a megabyte for a URL." (jaysonelliot)
  1. 功能建议
  • "Can you save anything?" (deafpolygon)
  • "It would be neat if ctrl+s offered to download the textarea to a .txt file." (LordDragonfang)
  1. 技术实现讨论
  • "you can avoid the string replacing in the base64 string..." (roxolotl)
  • "I built Ponder in the same vein...did not use the URL" (codazoda)
  1. 隐私与实用性担忧
  • "I'd never trust the claim about 'no tracking'...why these projects also end up self-hosted." (sublinear)
  • "It's less about the limits of a URL and more about practicality." (sublinear)
  1. 移动端兼容性问题
  • "The Crime and Punishment example crashed my iPhone's Google Chrome" (wwarren)
  • "consistently crashes Brave mobile for me" (nickweb)
  1. 特定用途改编
  • "I made something similar once, specifically targetted for guitar tablature" (ctenb)
  • "a guitar tab editor...by encoding the tab itself in the url." (planb)