npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

n8n-nodes-browser

v0.2.4

Published

N8n node to perform headless browser operations such as saving screenshots and PDF, using the browserless library

Downloads

54

Readme

n8n-nodes-browser

npm version

This is an n8n community node to control a headless browser using the Puppeteer library.

logo

n8n is a fair-code licensed workflow automation platform.

Installation
Operations
Credentials Compatibility
Resources
Version history

Installation

Follow the installation guide in the n8n community nodes documentation.

WARNING: During the npm-based installation of this plugin, puppeteer will attempt to install a working version of chrome or chromium on the machine. It's quite possible that it will either be unable to find a suitable one, or it won't work on your particular platform due to missing system dependencies. You can refer to the troubleshooting document for instructions on how to fix this.

The following steps have been known to work:

On Docker

For alpine-based images

For alpine-based images (e.g. n8nio/n8n:latest), the following command will install the latest chromium:

apk add --no-cache \
  chromium \
  nss \
  freetype \
  harfbuzz \
  ca-certificates \
  ttf-freefont

Once installed, you would then have to instruct puppeteer to use that version instead of the embedded one, by setting these env variables:

  • PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
  • PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

For debian-based images

For debian-based images (e.g. n8nio/n8n:latest-debian), the following command will install the latest chrome-browser, including all dependencies, which should enable the embedded puppeteer version to also work:

apt-get update \
  && apt-get install -y wget gnupg \
  && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
  && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
  && apt-get update \
  && apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 --no-install-recommends \
  && rm -rf /var/lib/apt/lists/*

Cache folder

In any case, you may need to set the following env variable to instruct puppeteer where to store its embedded chrome browser binaries, since the default location may be wiped if not properly persisted in your container in a durable volume:

  • PUPPETEER_CACHE_DIR=/root/.n8n/.cache/puppeteer

Operations

  • Page:
    • Take Screenshot
    • Save as PDF
    • Get HTML

Credentials

No credentials for this node

Compatibility

Tested against n8n v0.196.0

Resources

Version history

0.1.0

First Release!