Show HN:Ziex,一个 Zig Web 框架发布首个版本

1 分•作者: nurulhudaapon•4 个月前
<a href="https:&#x2F;&#x2F;ziex.dev" rel="nofollow">https:&#x2F;&#x2F;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>您无需安装 Zig 即可通过 npm 或 bun 试用 Ziex:<p>`npm init ziex`<p>使用 Ziex 构建的示例应用(部署到 Cloudflare Workers 的 Hacker News 克隆):<p><a href="https:&#x2F;&#x2F;hn.ziex.app" rel="nofollow">https:&#x2F;&#x2F;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!