/clarity-playground

Run Clarity code in the browser Clarinet

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Clarity Playground

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

Contributing

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.

Run it locally

npm install
npm start

Visit http://localhost:3000 (or the url printed in the console).

About NPM dependencies

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.