Skip to main content

JS Libraries

JavaScript libraries simplify common tasks such as data manipulation, date handling, and more. These libraries can be accessed using their imported names inside Appsmith.

Built-in JS Libraries

Appsmith provides the following built-in JavaScript libraries that can be utilized in your applications.

Lodash

Lodash provides functions for common programming tasks such as formatting data, iterating over collections, and manipulating arrays and objects.

{{ _.sortBy(fetchUsers.data, ["age"]) }}

For more information, see Lodash

Moment

Simplifies working with dates and times in JavaScript by providing functions for parsing, validating, manipulating, and displaying dates and times.

{{ moment(datePicker1.selectedDate.format('DD MMM')) }}

For more information, see Moment

Fast XML Parser

Fast XML Parser can be used to work with cryptographic algorithms and protocols in JavaScript.

{{ xmlParser.parse(xmlAPI.data) }}

For more information, see Fast XML Parser

Forge

Forge can be used to work with cryptographic algorithms and protocols in JavaScript.

export default {
hash() {
var md = forge.md.sha256.create();
md.update("The quick brown fox jumps over the lazy dog");
return md.digest().toHex();
},
};

For more information, see Forge

External JS Libraries

You can also follow this guide to install external JavaScript libraries that are not loaded by default into your application.