These libraries can dramatically reduce the time necessary to develop a full-stack application by abstracting away implementation details, particularly when building a prototype or an application with relatively simple requirements.
The @daml/types library contains the TypeScript data types corresponding to primitive Daml data types, such as
to take advantage of tooling integration with the TypeScript ecosystem, such as the availability of autocompletion on Visual Studio Code.
The @daml/ledger <ts-daml-ledger_> library contains functions to interact with the endpoints exposed by HTTP JSON API service and forms the basic layer of functionality. At this layer, you can easily query for active contracts from the ledger, create new ones or exercise choices. This layer is agnostic with regards to any specific framework required to build the frontend.
Finally, if you are a React.js user, you can take advantage of the @daml/react library, which
builds on top of
@daml/ledger with extensions specific to React.js. This bridges the gap between the basic functionality and the
infrastructure required to build a React.js-based frontend application. If you want to start from a ready-made application that uses this
library you can start running from the following template:
daml new --template create-daml-app <name-of-your-project>