# jolokia.js

> Jolokia JavaScript ES main module

Latest version **2.6.1** (published 2026-08-11) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install jolokia.js
pnpm add jolokia.js
yarn add jolokia.js
bun add jolokia.js
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.6.1 |
| Published | 2026-08-11 |
| First published | 2018-09-07 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 147.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 850 |
| Maintainers | tadayosi, astefanutti, gr.grzybek |
| Keywords | jolokia, jmx |

## Links

- npm: https://www.npmjs.com/package/jolokia.js
- Repository: https://github.com/jolokia/jolokia
- npm.io page: https://npm.io/package/jolokia.js

## Recent versions

- 2.6.1 (latest) — 2026-08-11
- 2.6.0 — 2026-04-29
- 2.5.0 — 2026-02-10
- 2.4.2 — 2025-12-02
- 2.4.1 — 2025-11-26
- 2.4.0 — 2025-10-17
- 2.3.0 — 2025-08-01
- 2.2.4 — 2025-03-10
- 2.2.3 — 2025-02-17
- 2.2.2 — 2025-02-05
- 2.2.1 — 2025-01-23
- 2.2.0 — 2025-01-23
- 2.1.9 — 2025-01-14
- 2.1.8 — 2024-11-13
- 2.1.7 — 2024-09-11
- … 31 more at https://npm.io/package/jolokia.js/versions

## README

# Jolokia JavaScript Client library (ES Module)

<a href="https://jolokia.org"><img src="../../src/site/resources/images/jolokia_logo.png" /></a>

The Jolokia JavaScript library provides a JavaScript API to the to the [Jolokia agent](https://jolokia.org/). Refer to [Reference Manual](https://jolokia.org/reference/html/manual/clients.html#client-javascript) for more details on how to use the library.

## Installation

NPM:

```console
npm i jolokia.js
```

Yarn:

```console
yarn add jolokia.js
```

## Usage

```javascript
import Jolokia from "jolokia.js";

const jolokia = new Jolokia("/jolokia")
const response = await jolokia.request({
    type: "read",
    mbean: "java.lang:type=Memory",
    attribute: "HeapMemoryUsage",
    path: "used"
})
console.log("Heap Memory used:", response.value)
```

---
_Source: https://npm.io/package/jolokia.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
