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.