Node-RED nodes for interacting with Mealie, a self-hosted recipe manager and meal planner.
- Connect to your Mealie instance using API token authentication
- Recipe management: create, read, update, delete recipes
- Meal planning integration
- Shopping list management
- Household and group management
- Media and asset handling
- Administrative functions for server maintenance and user management
- Node-RED >= 2.0.0
- Node.js >= 14.0.0
- A running Mealie instance with API access
Install via the Node-RED Palette Manager or run the following command in your Node-RED user directory:
npm install node-red-contrib-mealie
- Add a
mealie-server-config
configuration node - Enter your Mealie server URL (e.g.,
https://mealie.yourdomain.com
) - Enter your API token (generated from Mealie's settings)
- Set optional timeout value (default: 5000ms)
The package provides domain-based nodes that consolidate multiple operations:
- mealie-server-config: Server configuration and connection management
- mealie-recipe: Recipe management (get, search, create, update, delete, image, asset)
- mealie-household: Household management (get, getMembers, getPreferences, updatePreferences)
- mealie-shopping: Shopping list management (getList, createList, updateList, deleteList, getItems, createItem, addRecipe)
- mealie-planning: Meal planning (get, create, update, delete)
- mealie-organizer: Recipe organization (getCategories, getTags, getCookbooks, createCookbook)
- mealie-admin: Server administration (getInfo, getUsers, getGroups, manageBackup, maintenance)
- mealie-utility: Utility functions (getSchema, getVersion)
- mealie-bulk: Bulk operations (exportRecipes, importRecipes)
- mealie-parser: Recipe parsing (parseUrl, parseText)
Each domain node supports multiple operations that can be configured statically in the node settings or dynamically via the input message.
The domain nodes use an operation-based pattern where:
- Each node has an "Operation" dropdown to select the function
- The UI dynamically adapts to show relevant fields for the selected operation
- Operations can be overridden at runtime by setting
msg.payload.operation
Static configuration:
[mealie-recipe (operation: get, slug: "pasta-carbonara")] -> [debug]
Dynamic configuration:
// in a function node:
msg.payload = {
operation: "search",
params: {
tags: ["italian", "quick"]
}
};
return msg;
For more detailed documentation, see:
This project is developed in phases:
- Phase 1: Foundation (configuration, client wrapper, error handling) ✅ COMPLETED
- Phase 2: Essential Recipe Nodes ✅ COMPLETED
- Phase 3: Household & Shopping ✅ COMPLETED
- Phase 4: Organization & Planning ✅ COMPLETED
- Phase 5: Advanced Features ✅ COMPLETED
- Phase 6: Admin & Polish ✅ COMPLETED
- Phase 7: Domain-Operation Architecture ✅ COMPLETED
npm test
npm run lint
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License
Built on top of the node-mealie API wrapper.