customJS enables the execution of custom JavaScript code within Make.com. In this way, it enhances and expands Make scenarios by incorporating advanced logic through NPM modules and integrating with external services, providing flexibility beyond Make’s standard visual blocks.
customJS integrates into Make as a module, allowing to run JavaScript code within scenarios. You input your script directly into the customJS module, which processes data from previous steps, executes the code, and outputs results for use in subsequent steps. It supports NPM modules (e.g., cheerio, axios, uuidv4) and SDK integrations (e.g., Firebase Admin SDK, OpenAI API) to extend functionality.
There are two primary ways to execute your code:
Run any custom JavaScript code directly inside your Make.com scenario without external dependencies.
Execute pre-written and centrally managed functions from your CustomJS workspace and use them in Make.com.
CustomJS is a cost-effective solution compared to other workflows. With Make.com's new credit-based system, scenarios with loops, long execution durations, or heavy processing can quickly become expensive. CustomJS allows you to run complex JavaScript logic outside of Make's per-iteration billing, potentially saving up to 80% in costs. You're billed based on requests rather than iterations, with a free tier of 20 requests/day and paid plans starting at $10/month for higher volumes. Learn more about cost savings with Make.com credits.
customJS can be used in any Make.com module that supports JavaScript code execution. Here are some examples:
A web scraper module to crawl websites and interact with page elements (clicks, typing, etc.). The module returns raw HTML of the visited page.
Capture any website as screenshot (PNG) with full browser rendering. Ideal for archiving, reporting, or visual monitoring. Supports dynamic websites, scrolling pages, and automated Make.com workflows.
Dynamically create professional PDF documents from any HTML string.
Convert an HTML string into a high-quality PNG image.
Split a PDF document into multiple single-page PDFs or extract a specific range of pages.
Combine multiple separate PDF files into a single, ordered document.
Reduce the file size of your PDFs to optimize for storage or email delivery.
Convert entire PDF documents or specific pages into PNG images.
Extract all text content from a PDF file for easy processing.