Script Execution
Execute scripts as HTTP endpoints. Covers request handling, response shaping, streaming, and the runtime contract every script must satisfy.
Hoody Exec
Hoody Exec is the serverless script execution layer of the Hoody platform. Every Hoody container ships with a long-running TypeScript/JavaScript runtime that exposes scripts as HTTP endpoints, manages their lifecycle on disk, and provides operational tooling for templates, dependencies, scheduling, logs, and monitoring.
Use the references below to execute scripts over HTTP, manage the files that back them, scaffold new scripts from templates, and observe their runtime behavior.
Script Execution
Execute scripts as HTTP endpoints. Covers request handling, response shaping, streaming, and the runtime contract every script must satisfy.
Script Management
Read, write, delete, and organize scripts. Manage the files inside the {subdomain}/{execId} directory, including create, rename, move, and folder operations.
Script Templates
List, preview, and generate from templates. Inspect built-in and custom templates and emit starter code into a target script directory.
Code Generation from Templates
Scaffold script code from built-in and custom templates using natural-language prompts or template identifiers.
Dependency Management
Check and install script dependencies. Inspect declared packages, detect missing modules, and run install operations against the script’s local node_modules.
Package Management
Manage package.json dependencies. Add, remove, and update packages, and read or write the manifest for a script.
Cache & Shared State
Clear cache and manage shared state. Reset in-memory caches, inspect shared state keys, and clean up resources between executions.
Route Management
Resolve, discover, and test script URL routes. Map URL patterns to scripts, list registered routes, and dry-run the resolver against a sample path.
Code Validation
Validate TypeScript, syntax, and dependencies. Run type-checks, parse errors, and dependency audits against a script before deployment.
Log Management
List, read, stream, search, and clear logs. Access stdout, stderr, and structured log output produced by script executions.
Schedule Management
List, trigger, reload, and inspect the history of scheduled script executions. Manage cron-style and interval-based invocations.
Monitoring & Performance
Monitor stats and system health. Read runtime metrics, per-script statistics, memory and CPU usage, and overall service health.