String utilities: formatting, casing, trim, slugify (Node and Edge).
CLI and SDK for AI image generation (simpill): Gemini, OpenAI, xAI. Core, ai-image-gen CLI, optional web app.
Engine-agnostic AI image generation SDK: Gemini, OpenAI, xAI adapters, Zod schemas, prompt registry, and guard
Shared protocol constants and types for HTTP, correlation, and env parsing (Node and Edge).
Typed error classes, error codes, and serializeError for logging and RPC (Node and Edge).
Composable design patterns: Result/Either, strategySelector, pipeAsync (Node and Edge).
Retry failed promises with timeout, delay, and backoff; limit concurrency with Semaphore (Node and Edge).
Lightweight, type-safe environment variable utilities for Node.js and Edge Runtime.
Lightweight, type-safe structured logging with correlation context for Node.js and Edge Runtime.
Hash, randomBytes, and timing-safe compare for Node.js.
Framework-agnostic React utilities: hooks, safe context, stable callbacks, transitions.
Reconnecting WebSocket client with optional heartbeat (Node and Edge).
AsyncLocalStorage request context (requestId, traceId) for Node.js logging and tracing.
Array utilities: unique, chunk, compact, groupBy, sortBy, flattenOnce (Node and Edge).
Adapter helpers, logger and cache adapter interfaces (Node and Edge).
Root package for simpill-utils: all utils are installed from npm (@simpill/<name>.utils). Run 'npm install' at repo root. Use 'npm run use:local' to point at local utils/ for development.
Number utilities: clamp, roundTo, toInt/Float, isInRange, lerp, sum, avg (Node and Edge).
CLI for AI image generation: ai-image-gen with generate, discover, list-models, config, and tool commands
Typed file I/O: readFileUtf8, readFileJson, writeFile, ensureDir for Node.js.
Typed metadata store and annotation helpers for symbols and keys (Node and Edge).
Data utilities: validate, prepare, lifecycle, extend, config (Node and Edge).
Type-safe object utilities: pick, omit, merge, get/set by path, guards (Node and Edge).
Time utilities: debounce, throttle, interval manager, managed timeout (Node and Edge).
Single integration surface for correlation middleware, request context, and logger (Node).