Run Clarity code in the browser with the Clarinet SDK.
The playground gives access to the Simnet in the browser. It's possible to:
- deploy contracts,
- perform contract calls,
- execute clarinet commands, type
::help
to learn more
This project is built using vanilla HTML, CSS, and JS. Dependencies are managers with esm.sh, have a look at the
importmap
in the index.html. There is not built step at all.
npm install
npm start
Visit http://localhost:3000 (or the url printed in the console).
The NPM dependencies are optional, it used for local development (with serve
), and types handlings.
VSCode is able to resolve the type dependencies from the node_modules
even though the project is built with esm.sh.
The only caveat is that the esm.sh and the package.json dependencies have to be kept in sync.