Mastro
Web framework and site generator for JavaScript and TypeScript that builds static and server-rendered multi-page websites.
mastrojs.github.io/repositorydocs
Mastro is a web framework and site generator for JavaScript and TypeScript. It builds static multi-page websites, and it can also run as a server that renders pages on demand. It runs on Node.js, Deno, Bun or Cloudflare Workers, and a project is created with pnpm create @mastrojs/mastro. The code is published on JSR as @mastrojs/mastro, and the license is MIT.
Static output can be served from any CDN, and a server can run on Deno, Node.js or Bun. Mastro can also run code inside a Service Worker in the visitor’s browser, as an option on top of the default.
Worth knowing
The older npm package named mastro is flagged deprecated on npm; the install commands above use the current package.
Identity
Rendering and deploy
- Runs as
- Static files, Always on, In the browser45
- Rendering
- Static output, On a server1
- Install with
- pnpm create @mastrojs/mastro4
Releases
Adoption
Sources
- 2026-10-22: links, Categories, Rendering
github.com/mastrojs/mastro/blob/main/README.md - 2026-10-22: links, Written in, GitHub stars
api.github.com/repos/mastrojs/mastro - 2026-10-22: Runtime
mastrojs.github.io/ - 2026-10-22: Install with, Runs as
mastrojs.github.io/docs/getting-started/ - 2026-10-22: Runs as
mastrojs.github.io/docs/deploy/ - 2026-10-22: License, Maintainer
raw.githubusercontent.com/mastrojs/mastro/main/LICENSE - 2026-10-22: First release
registry.npmjs.org/mastro - 2026-10-22: Current major version, Last release
jsr.io/@mastrojs/mastro/meta.json - 2026-10-22: Contributors
api.github.com/repos/mastrojs/mastro/contributors