JavaScript Client LibrariesΒΆ
The JavaScript Client Libraries are the recommended way to build a frontend for a Daml application. The JavaScript Code Generator can automatically generate JavaScript containing metadata about Daml packages that is required to use these libraries. We provide an integration for the React framework with the @daml/react library. However, you can choose any JavaScript/TypeScript based framework and use the @daml/ledger library directly to connect and interact with a Daml ledger via its HTTP JSON API.
The @daml/types library contains TypeScript data types corresponding to
primitive Daml data types, such as Party
or Text
. It is used by the @daml/react
and @daml/ledger libraries.