Skip to content
Hoody.com

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.

/api/exec/script-execution/

Script Management

Read, write, delete, and organize scripts. Manage the files inside the {subdomain}/{execId} directory, including create, rename, move, and folder operations.

/api/exec/script-management/

Script Templates

List, preview, and generate from templates. Inspect built-in and custom templates and emit starter code into a target script directory.

/api/exec/templates/

Code Generation from Templates

Scaffold script code from built-in and custom templates using natural-language prompts or template identifiers.

/api/exec/ai-generation/

Dependency Management

Check and install script dependencies. Inspect declared packages, detect missing modules, and run install operations against the script’s local node_modules.

/api/exec/dependencies/

Package Management

Manage package.json dependencies. Add, remove, and update packages, and read or write the manifest for a script.

/api/exec/package-management/

Cache & Shared State

Clear cache and manage shared state. Reset in-memory caches, inspect shared state keys, and clean up resources between executions.

/api/exec/cache-state/

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.

/api/exec/routing/

Code Validation

Validate TypeScript, syntax, and dependencies. Run type-checks, parse errors, and dependency audits against a script before deployment.

/api/exec/validation/

Log Management

List, read, stream, search, and clear logs. Access stdout, stderr, and structured log output produced by script executions.

/api/exec/logs/

Schedule Management

List, trigger, reload, and inspect the history of scheduled script executions. Manage cron-style and interval-based invocations.

/api/exec/scheduling/

Monitoring & Performance

Monitor stats and system health. Read runtime metrics, per-script statistics, memory and CPU usage, and overall service health.

/api/exec/monitoring/