# Utilities and reusable transformations

Use typed HTTP/data/format helpers and keep host I/O separate from pure preparation.

Canonical URL: https://opennodeflow.dev/wiki/integration-utilities/
JSON reference: https://opennodeflow.dev/wiki/integration-utilities/index.json
Source snapshot: 2026-10-23

The core utility family includes HTTP/GraphQL, JSON, collections, text, encoding, maths, dates, CSV/XML, local files, SQLite, mail and reusable subflows. Use pure helpers to prepare and inspect a payload before introducing host I/O or a provider action.

## Data preparation

JSON Parse/Stringify and RFC6901 Pointer operations operate on explicit recursive JSON boundaries. JSON Patch implements a documented cloned subset, not every possible patch extension. Collection helpers project paths, sort stably, group, distinct, equijoin, chunk and flatten one level. Set item/byte bounds before expanding a large result.

Text helpers interpolate fields, extract with bounded regular expressions, split/join lines and escape HTML text. Encoding helpers use canonical Base64/UTF-8, SHA2 hashes and HMAC-SHA256. Hashing is a transform; an HMAC secret remains protected and should not become a normal string literal.

Numeric helpers require finite values. Date operations make time zone and instant semantics explicit: use an IANA zone for local calendar parts and distinguish duration addition from assumptions about every local day being 24 hours.

## Formats

CSV parsing/encoding supports quoted fields and embedded newlines, handles a BOM and rejects inconsistent widths. Preserve column order explicitly when round-tripping. A source fixture is preferable to assuming a spreadsheet export never contains quoted line breaks.

XML uses the installed Python runtime and preserves an element tree, including namespace/mixed-text structure. It does not preserve comments, namespace-prefix spelling or original formatting. DTD/entity declarations and excessive depth/count/input are rejected. Invalid serialized names fail reparsing.

## Network and host effects

Read [HTTP and GraphQL](/wiki/integration-http/) for bounded envelopes, conditional polls and retry differences. Read [files and SQLite](/wiki/integration-files/) before selecting a local root or transaction. Read [mail](/wiki/integration-mail/) before SMTP sends or IMAP collection. Those operations have specific write gates and uncertain-completion behavior; they are not pure transforms because their names look like utilities.

## Reusable preparation subflows

The baseline contains six reusable pure subflows with typed public boundaries and exact child pins. Public port mappings bind an outer port ID to an inner node/socket, and all mappings must agree on the same exact type/version. A newer child definition does not silently upgrade an older published subflow. Inspect the selected subflow's boundary and documentation before replacing a chain of explicit nodes.

## Find exact contracts

The catalog reference includes each utility's actual port IDs, schemas, configuration and embedded help. Start with [integration catalog](/wiki/integration-catalog/) and filter Utilities or Reusable subflows. Do not guess code input keys from a display label. A required input and a schema-required object member are different constraints.

The source build includes hardened schema/codec additions beyond the original family setup inventory. Its source count is not current installed availability. Local synthetic checks demonstrate particular transforms and failure modes; they do not establish provider credentials or live file/database/mail access.

---

## Documentation provenance

- `../OpenNodeFlow-Library/work/core/SETUP.md`
- `../OpenNodeFlow-Library/docs/INTEGRATIONS.md`
- `../OpenNodeFlow-Library/docs/AUTHORING.md`
- `docs/LIBRARY-UTILITIES.md`

This page describes maintained source, not a live inventory or an authorization to perform actions.
