# Varbase Libraries

Varbase 11.0.x manages front-end library dependencies using **NPM** (or **Yarn**) in combination with the **drupal-libraries-sync** tool. This approach provides a modern, standardized workflow for installing and maintaining JavaScript and CSS libraries that Drupal modules and themes depend on.

## Overview

Many Drupal modules require external JavaScript or CSS libraries (such as Slick carousel, Ace editor, or Chart.js) to be present in Drupal's `libraries/` directory. Traditionally, these libraries had to be downloaded and placed manually. Varbase uses `drupal-libraries-sync` to automate this process by:

1. Defining library dependencies in `package.json` as NPM packages.
2. Running `npm install` (or `yarn install`) to download the packages to `node_modules/`.
3. Using `drupal-libraries-sync` to copy the required files from `node_modules/` to Drupal's `libraries/` directory.

This ensures that library versions are tracked, reproducible, and easy to update.

## Sections

### [NPM/YARN with drupal-libraries-sync](/developers/varbase-libraries/npm-yarn-drupal-libraries-sync.md)

Detailed guide on configuring `package.json`, running sync commands, and managing front-end libraries in your Varbase project.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.varbase.vardot.com/developers/varbase-libraries.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
