MoonZoon is a Rust Fullstack Framework.
<table> <td> <ul> <li>NO Javascript</li> <li>NO CSS</li> <li>NO HTML</li> <li>NO REST</li> <li>NO GraphQL</li> <li>NO SQL</li> <li>NO Analysis Paralysis</li> <li>NO Wheel Reinventing</li> <li>NO Passwords*</li> </ul> </td> <td> <ul> <li>Rust</li> <li>Fast</li> <li>Simple</li> <li>Scalable</li> <li>SEO</li> <li>Auth</li> <li>MoonZoon CLI</li> <li>Easy Deploy</li> <li>Offline Support</li> </ul> </td> </table>* Authentication methods are described in Backend.md
use zoon::*; fn main() { start_app("app", root); } static COUNTER: Lazy<Mutable<i32>> = lazy::default(); fn root() -> impl Element { Row::new() .s(Align::center()) .s(Gap::new().x(15)) .item(counter_button("-", -1)) .item_signal(COUNTER.signal()) .item(counter_button("+", 1)) } fn counter_button(label: &str, step: i32) -> impl Element { let (hovered, hovered_signal) = Mutable::new_and_signal(false); Button::new() .s(Width::exact(45)) .s(RoundedCorners::all_max()) .s(Background::new() .color_signal(hovered_signal.map_bool(|| color!("#edc8f5"), || color!("#E1A3EE", 0.8)))) .s(Borders::all( Border::new() .width(2) .color(color!("oklch(0.6 0.182 350.53 / .7")), )) .on_hovered_change(move |is_hovered| hovered.set(is_hovered)) .label(label) .on_press(move || *COUNTER.lock_mut() += step) }
mzoon new (see the section Create & Run project below)Repo: examples/chat
Related blog post: "Chat example, MoonZoon Cloud [dev.to / MD].

Install the latest stable Rust. (Or upgrade with rustup update stable.)
Install the web assembly target rustup target add wasm32-unknown-unknown
cargo install mzoon --git https://github.com/MoonZoon/MoonZoon --locked
mzoon new my_counter
cd my_counter
mzoon start --open

I use Coolify on Hetzner with this Dockerfile:
FROM rust:1 WORKDIR /app RUN rustup target add wasm32-unknown-unknown # NOTE: Set `--rev` to the commit you use in your project RUN \ cargo install mzoon --git https://github.com/MoonZoon/MoonZoon --rev ccc15d043e78a6656d68a60d46de1f540724e093 --locked COPY . . RUN \ /usr/local/cargo/bin/mzoon build -r RUN \ ["cp", "./target/release/backend", "/usr/local/bin/moon_app"] ENTRYPOINT ["moon_app"]
MoonZoon app was successfully deployed to other services like Heroku (buildpack), Clever Cloud, CapRover or Fly.io.
MoonZoon Cloud is planned as well.
mzoon build --release --frontend-dist netlify
netlify) is optional. It creates files like netlify.toml.[optional] Test it with a dev server like miniserve:
cargo install miniserve miniserve --port 8079 --index index.html --spa frontend_dist
Drag & drop the frontend_dist directory to Netlify.

Examples in the repo [See development.md for instructions how to run them.]
Raytracer on MoonZoon [Not maintained)
Voting system on the Solana blockchain. [Not maintained)

Rust on the Frontend and Backend [Always Bet on Rust]
Interview with Martin about MoonZoon [console.substack.com]

"Why another framework? Are you mad??"
"Is it production-ready? / What's the current progress?"
The frontend part is almost ready. If you have a custom backend or don't need backend at all then you can start writing your new frontend app right now! And then deploy it wherever you want. I assume there'll be two bigger breaking changes - to improve color system (related issue) and to improve event handlers - but the Rust compiler should make the future migration simple.
Realtime communication between frontend and backend works but neither virtual actors nor native database adapters have been implemented yet. However, Actix API has been exposed to overcome these current limitations so you can treat the MoonZoon backend API as Actix with realtime messaging. I've successfully integrated Postgres (through SeaORM) into a MoonZoon app developed for my client and I plan to integrate BonsaiDb to my another production app. Bonsai could be integrated as a scalable database and file storage into MoonZoon when I'll find it a suitable choice.
Subscribe to #news channel on our Discord server to find out when MoonZoon is ready for your project. Or just let us know what blocks you from starting to develop with MZ.
"Who is developing it?"
"Could I help somehow? / Where can I find more information?"
"Why Rust?"
It's the best language.
<details> <summary>Longer explanation</summary>I've written commercial or hobby projects in multiple languages (Js, CoffeeScript, TS, Elm, Elixir, PHP, C, C++, C#, Go, ..). However I want to write only in Rust.
Rust is hard to learn even for experienced developers because they have to unlearn many things and adapt thought process to Rust concepts and best practices. However, once you stop fighting the compiler, Rust takes your hand and push you to correct and efficient solutions.
I had similar feeling when I was learning to drive a car - it seems to be pretty difficult/strange from the start but once you get used to it, you know that each control / button / pedal has it's specific place and purpose for a good reason. And it makes even more sense when you learn low-level stuff - e.g. how the transmission and a clutch work.
Steep learning curve also brings some benefits:
_
Rust is designed so well that I feel nervous while I'm writing in other languages - I have to do compiler's work again in my head and think about weird things like typos in code, nulls, undefineds, memory leaks, accidental mutations, how to write fast code without mutability, etc. It generates significant cognitive load so I can't focus so much on business logic and other important stuff.
I don't believe you should use the most suitable language for a specific domain or problem at all costs. I think consistency among your / company projects, productivity and simplicity should have the highest priority. And Rust is a very universal language so I think it's a good choice for almost all cases.
There are also things that should be improved (and are improving):
target folder (it's something like node_modules) can be pretty big.#[derive(xx)] and cargo install may have a bit surprising behavior.So there is still room for improvements but even now I'm the most productive in Rust.
</details>Thank you for reading! We are waiting for you on


职场AI,就用扣子
AI办公助手,复杂任务高效处理。办公效率低?扣子空间AI助手支持播客生成、PPT制作、网页开发及报告写作,覆盖科研、商业、舆情等领域的专家Agent 7x24小时响应,生活工作无缝切换,提升50%效率!


多风格AI绘画神器
堆友平台由阿里巴巴设计团队创建,作为一款AI驱动的设计工具,专为设计师提供一站式增长服务。功能覆盖海量3D素材、AI绘画、实时渲染以及专业抠图,显著提升设计品质和效率。平台不仅提供工具,还是一个促进创意交流和个人发展的空间,界面友好,适合所有级别的设计师和创意工作者。


零代码AI应用开发平台
零代码AI应用开发平台,用户只需一句话简单描述需求,AI能自动生成小程序、APP或H5网页应用,无需编写代码。


免费创建高清无水印Sora视频
Vora是一个免费创建高清无水印Sora视频的AI工具


最适合小白的AI自动化工作流平台
无需编码,轻松生成可复用、可变现的AI自动化工作流

大模型驱动的Excel数据处理工具
基于大模型交互的表格处理系统,允许用户通过对话方式完成数据整理和可视化分析。系统采用机器学习算法解析用户指令,自动执行排序、公式计算和数据透视等操作,支持多种文件格式导入导出。数据处理响应速度保持在0.8秒以内,支持超过100万行数据的即时分析。


AI辅助编程,代码自动修复
Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。


AI论文写作指导平台
AIWritePaper论文写作是一站式AI论文写作辅助工具,简化了选题、文献检索至论文撰写的整个过程。通过简单设定,平台可快速生成高质量论文大纲和全文,配合图表、参考文献等一应俱全,同时提供开题报告和答辩PPT等增值服务,保障数据安全,有效提升写作效率和论文质量。


AI一键生成PPT,就用博思AIPPT!
博思AIPPT,新一代的AI生成PPT平台,支持智能生成PPT、AI美化PPT、文本&链接生成PPT、导入Word/PDF/Markdown文档生成PPT等,内置海量精美PPT模板,涵盖商务、教育、科技等不同风格,同时针对每个页面提供多种版式,一键自适应切换,完美适配各种办公场景。


AI赋能电商视觉革命,一站式智能商拍平台
潮际好麦深耕服装行业,是国内AI试衣效果最好的软件。使用先进AIGC能力为电商卖家批量提供优质的、低成本的商拍图。合作品牌有Shein、Lazada、安踏、百丽等65个国内外头部品牌,以及国内10万+淘宝、天猫、京东等主流平台的品牌商家,为卖家节省将近85%的出图成本,提升约3倍出图效率,让品牌能够快速上架。
最新AI工具、AI资讯
独家AI资源、AI项目落地

微信扫一扫关注公众号