Skip to content

Manual setup

Terminal window
cd agentlet-core
npm install
npm run build

This creates:

  • dist/agentlet-core.js: development version (IIFE global, also usable via require('agentlet-core'))
  • dist/agentlet-core.esm.js: ES module version, used by bundlers that import the package
  • dist/agentlet-core.min.js: production version
  • dist/bookmarklet.js: bookmarklet version
  • dist/bookmarklet.html: installation page

From here, either:

  • Open dist/bookmarklet.html to install the bookmarklet in your browser, then click it on a page you want to augment.
  • Reference dist/agentlet-core.js or dist/agentlet-core.esm.js from your own build, and construct AgentletCore yourself. See Public API for the constructor configuration.

Source: agentlet-core README.md, section “Getting started”.