@tscircuit/snippet-runner
is a library that allows you to evaluate tscircuit
code in web and server environments. It can perform all the following functions:
- Convert a tscircuit code snippet into Circuit Json
- Import other tscircuit snippets required by a tscircuit snippet
- Run typechecking against tscircuit code
- Build a
dts
file containing the types for a tscircuit snippet