
Product
Introducing Data Exports
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.
Warning this is under development. Tests are sparse or incomplete. Use at your own peril.
npm install --save-dev aem-api
Initialize and instance of aem-api with you credentials, then call any of the listed methods. They
will all return a promise.
const AEM = require('aem-api');
const aem = new AEM('http://localhost', 4502, 'admin', 'admin');
aem.createNode('/tmp/myNode')
.then(_ => {
console.log('Node successfully created')
})
.catch(e => {
console.error('Problem creating node', e);
})
This api returns promises by design even a synchronous response would suffice for ease of use, mainly with generators in mind. With this, it is recommended to use generators where possible for cleaner more readable code.
const AEM = require('aem-api');
const aem = new AEM('http://localhost', 4502, 'admin', 'admin');
const runner = function *() {
const myNode = yield aem.createNode('/tmp/myNode');
yield myNode.activate();
console.warn(`Created my node and activated it, yay, pub o'clock?`);
}
HTML documentation can be viewed here
FAQs
API class to manipulate nodes within AEM from node.
We found that aem-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Export Socket alert data to your own cloud storage in JSON, CSV, or Parquet, with flexible snapshot or incremental delivery.

Research
/Security News
Bitwarden CLI 2026.4.0 was compromised in the Checkmarx supply chain campaign after attackers abused a GitHub Action in Bitwarden’s CI/CD pipeline.

Research
/Security News
Docker and Socket have uncovered malicious Checkmarx KICS images and suspicious code extension releases in a broader supply chain compromise.