CLARINET

CLARITY
DEVELOPMENT STARTS HERE

Everything you need to write, test, and deploy Clarity smart contracts on Stacks.

Code with confidence.

Speed up your feedback loops

Code with Clarity syntax support, run tests, and debug your code line by line, using a powerful command line interface.

Increase your code coverage

Tests don’t have to be tedious. Pummel your source code with unit tests, make sure your contracts function, and unleash a swarm of integration tests with the Clarinet SDK.

Run a private blockchain environment

Run end-to-end tests on a fully private blockchain environment with dedicated nodes, miners, and APIs. It's the closest thing you can get to testnet, without exposing your contracts to the world.

Improve code quality

Ship code your CompSci prof would be proud of. Catch errors and typos right away with Clarinet’s linter and other helper tools, and make your code easy to read with the Clarity formatter.

Quote Icon

/** Clarinet has been the cornerstone to our smart contract development.*/

FEATURES

A Development Environment for Programmable Bitcoin.

Embrace the predictability of Clarity

Choose Clarity, the smart contract language designed with Bitcoin in mind, optimizing for security and predictability. On Stacks, contracts are easy to verify and resilient to re-entrancy attacks, thanks to the decidability and simplicity of Clarity.

Learn more about Clarity

Integrate With Your JS Workflows

When it comes to testing, leverage Vitest and a familiar JavaScript framework to write tests in a more standard and readable format with the Clarinet JS SDK.

Clarinet is open source

Clarinet is open source, just like the Clarity smart contracts you can create with it.

Clarinet GitHub repo
/ Developer resources
[ START BUILDING ]

Create your first smart contract with Clarinet and get started in our documentation.

[ TALK TO US ]

If you need help getting started or have feedback to share, reach out to us in the Hiro developer tools channels on the Stacks Discord.