Getting started
You can run Mastro in your browser or install it locally with a terminal:
Install Deno and copy and paste into your terminal:
deno run -A npm:@mastrojs/create-mastro@0.1.6
Copied!
Install pnpm (although npm and yarn also work). Then install Node.js (if you haven’t already) with pnpm runtime set node lts -g, then:
pnpm create @mastrojs/mastro@0.1.6
Copied!
Copy and paste into your terminal:
bun create @mastrojs/mastro@0.1.6
Copied!
Use Deno, Node.js, or Bun to generate a static site for any CDN (Cloudflare or not).
However, to run code on-demand in a Cloudflare Worker:
pnpm create @mastrojs/mastro@0.1.6 --cloudflare
Copied!
Finally, Mastro can also run code on-demand inside a Service Worker in the user’s browser.