Show HN: Lightwave – 实时笔记应用,3.5年手写JavaScript

Lightwave是一款实时笔记应用,开发者历时3.5年使用纯手写JavaScript构建,结合Laravel、MySQL、Redis和IndexedDB技术。应用支持实时光标和协作功能,采用HTTP/2和WebSockets混合方案。目前处于预发布压力测试阶段,计划作为付费产品正式推出。

1作者: jv22222大约 2 小时前
你好,HN!<p>我独自开发这个项目已经大约三年半了。我不断尝试各种新的项目/笔记工具(如Notion、Asana、Trello等),但最终总是回到纯文本文件。我希望有一个工具,第一次接触时感觉像一个文本编辑器,但当你需要时又能发展出真正的结构。<p><a href="https:&#x2F;&#x2F;lightwave.so" rel="nofollow">https:&#x2F;&#x2F;lightwave.so</a><p>技术栈包括Laravel、MySQL、Redis,以及客户端手写的JavaScript。没有使用React/Vue等框架,约270行jQuery代码(在8万行以上的总代码量中)用于一些遗留的DOM工具,再加上IndexedDB用于本地持久化。实时协作采用混合方式:使用HTTP&#x2F;2 POST确保操作可靠,同时通过Laravel Reverb使用WebSockets实现实时光标、存在状态和编辑功能。<p>这是一个预发布压力测试,不是正式发布。Lightwave将是一款付费产品。目前我开放它是因为单人测试无法模拟被人打在嘴上...
查看原文
Hi HN!<p>I&#x27;ve been building this solo for about three and a half years. I kept trying every new project&#x2F;notes tool (Notion, Asana, Trello, etc.) and always ended up back in a plain text file. I wanted something that felt like a text editor on first touch but could grow into real structure when you needed it.<p><a href="https:&#x2F;&#x2F;lightwave.so" rel="nofollow">https:&#x2F;&#x2F;lightwave.so</a><p>The tech stack is Laravel, MySQL, Redis, and hand-rolled JavaScript on the client. No frameworks like React&#x2F;Vue&#x2F;etc. ~270 lines of jQuery (out of 80k+ total LOC) for a few legacy DOM utilities, plus IndexedDB for local persistence. Real-time collaboration uses a hybrid approach: HTTP&#x2F;2 POST for resilient ops + WebSockets via Laravel Reverb for live cursors, presence, and edits.<p>This is a pre-release stress test, not a launch. Lightwave will be a paid product. Right now I&#x27;m opening it up because no amount of solo testing replicates getting punched in the mouth by real traffic.<p>The link above has a button to create a test account in 1 click.<p>Known rough edges: the cursor and selection system are built from scratch (like VS Code, not a contenteditable wrapper), so there&#x27;s a lot of surface area. Some keyboard shortcuts may be missing. Desktop only, accessibility not yet implemented. I&#x27;m shipping fixes in real time.<p>There&#x27;s a &quot;Submit Bug or Feedback&quot; button inside the app if something breaks. Happy to answer any questions about the architecture, or anything else.<p>Some highlights:<p>- Paste markdown in, get native blocks. Copy blocks out, get markdown back.<p>- Hierarchical document, structure. Hierarchichal file manager.<p>- Live collab with shared cursors, selection, and presence.<p>- Code blocks with syntax highlighting. LaTeX math blocks.<p>- Full data export: markdown, JSON, and attachments. No lock-in.<p>- Full undo&#x2F;redo with cursor restoration.