Skip to content
stxscript. GitHub

← Use cases

Adopting typed Clarity incrementally

Clarity teams who want static analysis before deploy

You do not have to rewrite everything at once. Because the artifact is plain Clarity, you can author one contract in StxScript, keep the rest as-is, and gain compile-time type, scope, and trait checking exactly where you want it.

Errors at build time, not deploy time

Semantic analysis validates types, scopes, and trait compliance before the contract reaches the chain.

One file at a time

Adopt StxScript per-contract. The generated .clar drops into your existing project unchanged.

Auditable diff

Ship both the .stx source and the .clar output so reviewers trace source to target line by line.

check-before-deploy
$ stxscript check contracts/vault.stx
$ stxscript lint contracts/vault.stx
$ stxscript build contracts/vault.stx vault.clar