
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
node-red-contrib-open-food-facts
Advanced tools
A Node-RED node that provides easy integration with the Open Food Facts API. Search for products, retrieve product information, add products, and manage product images.
A Node-RED integration for the Open Food Facts API, providing easy access to food product information, nutrition facts, and ingredient details from the world's largest open food database.
Install using the Node-RED palette manager or via npm:
npm install node-red-contrib-open-food-facts
Retrieve product information by barcode.
Inputs:
msg.payload
: Barcode string (if not configured in node)Outputs:
msg.payload
: Product object with details like name, brand, ingredients, nutrition factsSearch for products using various filters.
Inputs:
msg.payload
: Search parameters objectExample search parameters:
{
"search_terms": "chocolate",
"brands": "Nestle",
"categories": "snacks",
"page": 1,
"pageSize": 20
}
Outputs:
msg.payload
: Search results including count, page information, and products arrayAccess categorized data (additives, allergens, brands, etc.).
Inputs:
msg.payload
: Taxonomy type (e.g., "additives", "allergens", "brands")Outputs:
msg.payload
: Taxonomy data objectAdd a new product to the OpenFoodFacts database (requires authentication).
Configuration:
Inputs:
msg.payload
: Product data object with code
, brands
(optional), labels
(optional)Outputs:
msg.payload
: API responseUpload a photo for a product (requires authentication).
Configuration:
Inputs:
msg.payload
: Object containing:
barcode
: Product barcodeimage
: Image filetype
: Object with field
(front/ingredients/nutrition) and languageCode
Outputs:
msg.payload
: API responseRetrieve the additives taxonomy.
Outputs:
msg.payload
: Additives taxonomy dataRetrieve the allergens taxonomy.
Outputs:
msg.payload
: Allergens taxonomy dataRetrieve the brands taxonomy.
Outputs:
msg.payload
: Brands taxonomy dataGet random insights from OpenFoodFacts Robotoff.
Configuration:
count
: Number of insights to retrieve (default: 1)lang
: Language code for filtering (optional)Outputs:
msg.payload
: Random insights from Robotoff[
{
"id": "inject-barcode",
"type": "inject",
"payload": "3017620422003",
"payloadType": "str",
"topic": "",
"name": "Inject Barcode",
"wires": [["get-product"]]
},
{
"id": "get-product",
"type": "openfoodfacts-get-product",
"name": "",
"wires": [["debug"]]
},
{
"id": "debug",
"type": "debug",
"name": "",
"active": true,
"wires": []
}
]
[
{
"id": "search-inject",
"type": "inject",
"payload": "{\"categories\": \"beverages\", \"page\": 1}",
"payloadType": "json",
"topic": "",
"name": "Search Beverages",
"wires": [["search-products"]]
},
{
"id": "search-products",
"type": "openfoodfacts-search-products",
"name": "",
"wires": [["debug"]]
},
{
"id": "debug",
"type": "debug",
"name": "",
"active": true,
"wires": []
}
]
{
"code": "3017620422003",
"product_name": "Nutella",
"brands": "Ferrero",
"categories": "Spreads, Sweet spreads, Chocolate spreads",
"ingredients_text": "Sugar, Palm oil, Hazelnuts...",
"nutriments": {
"energy_100g": 2252,
"fat_100g": 30.9,
"carbohydrates_100g": 57.5,
"proteins_100g": 6.3
},
// ... more fields
}
Parameter | Type | Description |
---|---|---|
search_terms | string | General search query |
brands | string | Filter by brand |
categories | string | Filter by category |
code | string | Filter by barcode |
countries | string | Filter by country |
page | number | Page number (default: 1) |
pageSize | number | Results per page (default: 20) |
The nodes emit errors that can be caught using a catch node. Common errors include:
Run the test suite:
npm test
This repository uses automated PR reviews powered by Amazon Bedrock and Claude AI via GitHub Actions. When you create a pull request, the workflow will automatically:
To enable automated PR reviews, repository administrators need to configure the following secrets in Settings → Secrets and variables → Actions → Repository secrets:
AWS_ACCESS_KEY_ID
: Your AWS access key with Bedrock permissionsAWS_SECRET_ACCESS_KEY
: Your AWS secret access keyThe workflow uses Claude 3 Haiku via Amazon Bedrock for fast, intelligent code analysis and provides comprehensive reviews including performance and security feedback.
Contributions are welcome! Please see our Contributing Guidelines for details.
This project is licensed under the MIT License - see the LICENSE file for details.
This node uses the Open Food Facts API. Open Food Facts is a collaborative project with contributors from around the world.
[0.3.0] - 2025-06-01
FAQs
A Node-RED node that provides easy integration with the Open Food Facts API. Search for products, retrieve product information, add products, and manage product images.
The npm package node-red-contrib-open-food-facts receives a total of 1 weekly downloads. As such, node-red-contrib-open-food-facts popularity was classified as not popular.
We found that node-red-contrib-open-food-facts demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.