From the wire to the agent.
p4n4 (Platform for Nexus Neural Network Nodes) is a Docker Compose platform that wires together Node-RED, InfluxDB, Grafana, Ollama, Letta, n8n, and Edge Impulse into a single self-hosted application. Try it out from Raspberry Pi to GPU server!
Built on the proven MING stack (Mosquitto, InfluxDB, Node-RED, Grafana) and extended with a GenAI layer and Edge AI inference. All services share a Docker bridge network, with Node-RED at the intersection wiring sensors, databases, and AI together.
MING is a battle-tested open-source IoT stack used across industrial, agricultural, and smart-building deployments worldwide. p4n4 takes MING as its core and extends it with a complete GenAI layer and on-device Edge AI.
TIGUITTO is a solid starting point. p4n4 is where IoT projects go when they need intelligence, not just telemetry. The IoT stack is identical, what changes is everything on top of it.
| Capability | TIGUITTO / IoTStack | p4n4 |
|---|---|---|
| Data ingestion | Telegraf metrics-scraping agent only | Node-RED visual, bidirectional flow engine |
| MQTT broker | Eclipse Mosquitto | Eclipse Mosquitto |
| Time-series DB | InfluxDB | InfluxDB |
| Visualisation | Grafana | Grafana |
| Conditional logic | Limited Telegraf processors only | Full Node-RED function nodes + JS |
| Device actuation | ✗ | ✓ MQTT out, HTTP out |
| Protocol bridging | MQTT only | MQTT, HTTP, WebSocket, Modbus, OPC-UA… |
| AI integration | ✗ | ✓ Ollama, Letta, n8n |
| Workflow automation | ✗ | ✓ n8n — webhook, cron, AI chains |
| Agent memory | ✗ | ✓ Letta / MemGPT — persistent across sessions |
| Local LLM inference | ✗ | ✓ Ollama — qwen, mistral, llama, deepseek, and many more |
| Visual programming | ✗ | ✓ Node-RED browser editor |
| Edge ML inference | ✗ | ✓ Edge Impulse — <5ms, Docker container |
| Edge deployment | ✓ Pi compatible | ✓ Pi 5 + optional GPU acceleration |
One interactive wizard scaffolds your entire project. Compose files, configs, secrets, base flows, dashboards, and EI model wiring. All version-controlled, all idempotent.
iot, ai, edge) to start only that one.--volumes for a full teardown (prompts for confirmation).--tail and --no-follow to control output.show, rotate, and generate subcommands. Rotate prompts for confirmation before writing..env keys for active layers.A Git-backed template registry for sharing and reusing complete p4n4 project configurations. Node-RED flows, Grafana dashboards, secrets scaffolding, and stack wiring, in a single pull. Coming in a future release.
p4n4-template.toml manifest. Pin to a branch, tag, or commit..env automatically before publishing. No credentials leak to the registry.acme/factory-baseline to a full Git URL.Want to contribute or be notified when templates ship?
Watch p4n4-templatesEdge Impulse handles raw-signal TinyML at sub-100ms latency. Ollama and Letta handle natural language reasoning on aggregated context. They're complementary, not redundant.
p4n4 targets ARM64 and x86-64. If it runs Docker and Docker Compose, it runs p4n4. The IoT stack runs comfortably on 1 GB RAM devices. Add the GenAI stack on 4 GB+ boards or any GPU server.
p4n4-emu applies Docker resource constraints (CPU, RAM, disk I/O) and optional QEMU ARM64 emulation on top of your existing stacks via a Compose overlay. Your workstation becomes a Raspberry Pi 5, a Jetson, or a low-power MCU-class device. Production files are never touched.
deploy.resources.limits per service. No changes to your production files.binfmt_misc. One setup command enables it.sensors/temperature, humidity, pressure, and raw topics.RPi.GPIO — run and test GPIO scripts on any workstation.--dry-run to preview the generated Compose overlay before any containers start.
Requires Docker, Docker Compose, and Python 3.11+