展示HN:Ziex,一个Zig语言的网页框架,迎来了首次发布

1作者: nurulhudaapon大约 16 小时前原帖
<a href="https://ziex.dev" rel="nofollow">https://ziex.dev</a><p>Ziex 是一个用于 Zig 的全栈 web 框架。它目前具备构建真实应用所需的大部分核心组件,并正在为其首次公开发布(0.1.0)做准备,计划在 Zig 0.17 稳定后发布。<p>当前的一些功能包括:<p>- 服务器端渲染(默认快速)<p>- Zig 中的类似 JSX 的 UI 语法<p>- 文件系统路由<p>- 编译为 WebAssembly 的客户端组件<p>- zx.db:内置 SQLite 抽象(在 Cloudflare Workers 部署时使用 D1)<p>- zx.kv:键值存储抽象(在生产环境中使用 Cloudflare KV)<p>您可以通过 npm 或 bun 在不安装 Zig 的情况下尝试 Ziex:<p>`npm init ziex`<p>使用它构建的示例应用(Hacker News 克隆,已部署到 Cloudflare Workers):<p><a href="https://hn.ziex.app" rel="nofollow">https://hn.ziex.app</a><p>欢迎反馈!
查看原文
<a href="https:&#x2F;&#x2F;ziex.dev" rel="nofollow">https:&#x2F;&#x2F;ziex.dev</a><p>Ziex is a full-stack web framework for Zig. It now has most of the core pieces needed to build real applications and is preparing for its first public release (0.1.0), planned after Zig 0.17 stabilizes.<p>Some of the current features:<p>- Server-side rendering (fast by default)<p>- JSX-like UI syntax in Zig<p>- File-system routing<p>- Client components compiled to WebAssembly<p>- zx.db: built-in SQLite abstraction (uses D1 when deployed on - Cloudflare Workers)<p>- zx.kv: key-value storage abstraction (uses Cloudflare KV in production)<p>You can try Ziex without installing Zig using npm or bun:<p>`npm init ziex`<p>Example app built with it (Hacker News clone deployed to Cloudflare Workers):<p><a href="https:&#x2F;&#x2F;hn.ziex.app" rel="nofollow">https:&#x2F;&#x2F;hn.ziex.app</a><p>Feedback is welcome!