TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Build Local-First Apps(WASM+SQLite)

7 点作者 milansuk超过 1 年前
Hey, everyone!<p>SkyAlt is a browser and SDK for Local-first applications at the top of SQLite files.<p>One and half months ago, I started working on the idea of rebuilding some software as services I use into local-first apps. SkyAlt is a combination of SQLite(storage), WASM(app binary) and JSON(settings, communication).<p>I decided to build my own &#x27;browser&#x27;, which has around ~10K LOC and has nothing to do with WebKit(HTML&#x2F;CSS&#x2F;JS) or Chromium. Apps use immediate mode GUI to draw and communicate with Skyalt. The layout is a flexible grid. Apps are written in the Go language. Right now SDK is only for Go, but it should be simple to add more languages(which compile into WASM), when apis() settle.<p>I built a few example apps(7Gui, Map, Calendar, Table&#x2F;DB editor). My approach is to build more apps across different use cases and add new features to current ones, which leads to better SDK, browser and developer experience.<p>For app development, you can use any IDE and debugger(or print to a terminal). When you make an app, you compile the app into binary which has a TCP socket into SkyAlt. For final shipping, you compile into WASM(portability &amp; sandboxing) and the TCP socket is replaced with WASI(WASM IO). This accelerate development alot because You can use tools you&#x27;re used to and can iterate quickly(go compiler is ~1sec vs tinygo(.wasm) is ~40sec).<p>You can find more information and 100% of code(Apache v2.0) in Github repo: https:&#x2F;&#x2F;github.com&#x2F;MilanSuk&#x2F;skyalt<p>What do you think? Let&#x27;s talk about Local-first future!

暂无评论

暂无评论