Barcode generation node, possibly making use of JsBarcode?

It would help if there was a node for:

Generating all different types of barcodes (QR, UPC, EAN, ISBN, etc.) as binary raster images (png or jpg) with selections for barcode color, background color, image size, padding, etc.

My use case:

I’ve looked into implementing JsBarcode module on a self-hosted instance with Docker Compose, but it’s a bit outside my skillset. I’d like to be able to generate barcodes for products and IDs for books, inventory, and anything else that might need a barcode.

Any resources to support this?

Might it be possible to build a node that makes use of JsBarcode - Barcode generator written in JavaScript

Are you willing to work on this?

Yes, happy to provide any skills I can! Probably mainly testing or node UI suggestions. Also, sing your praises and put some money your way if that helps!

EDIT: I was able to do this without a custom node by using npm install jsbarcode, then setting the environment variable in my docker-compose.yml file as NODE_FUNCTION_ALLOW_EXTERNAL=jsbarcode.

Finally, in the same file, under volumes I added this to the list:
- /root/node_modules/jsbarcode:/usr/local/lib/node_modules/jsbarcode.

Then I rebuilt all docker containers using docker compose stop and running
docker compose up --force-recreate --build -d.

I used this post to assist on this one.

This made it possible to use const jsbarcode = require('jsbarcode'); in the Code node.

1 Like