marko – marko-js
一款基于 HTML 的声明式语言,让 Web 应用开发充满乐趣
关键指标一览
主题标签
README 详细介绍
<img alt="Marko" src="https://raw.githubusercontent.com/marko-js/website/refs/heads/main/public/assets/logo.svg" width="250">
A declarative, HTML-based language that makes building web apps fun 🔥






Docs ∙ Try Online ∙ Contribute ∙ Get Support
Intro
Marko is HTML _reimagined_ as a language for building dynamic and reactive user interfaces. Almost any valid HTML is valid Marko, and Marko extends HTML for building modern applications more declaratively. Among these extensions are components, conditionals and loops, and a full reactivity system.
Example Component
The following renders a button and a counter of how many times the button has been pressed:
click-count.marko
// HTML + JavaScript = 💜
<let/count=0>
<button onClick() { count++ }>
Clicked ${count} times
</button>
Getting Started
npm init marko- Read the docs
Community & Support
|
Hang out in our Discord server to ask questions & discuss marko |
Keep up with the community on Bluesky at @markojs.com |
Tweet to @MarkoDevTeam or use the #markojs hashtag |
Browse the code, open issues, & make pull requests on GitHub |
Contributors
Marko would not be what it is without all those who have contributed ✨

Get Involved!
- Pull requests are welcome!
- Submit GitHub issues for any feature enhancements, bugs, or documentation problems
- Read the Contribution Tips and Guidelines
- Participants in this project agree to abide by its Code of Conduct