Script Execution
Execute scripts as HTTP endpoints. Each script receives the HTTP request and returns a response, with no separate run, poll, or cancel step.
Hoody Exec is the script execution layer of the Hoody platform. Each Exec service runs TypeScript or JavaScript scripts in one Bun process, exposes them over HTTP at script-specific URLs, and provides management, scheduling, logging, and monitoring endpoints around them. Use this section to run scripts, manage them on disk, scaffold them from templates, install dependencies, inspect logs, and observe runtime health.
Every endpoint on this page targets a single Exec service instance. Scripts are stored on that instance’s filesystem, scheduled jobs run inside the same process, and logs are read from the same host. Operations that need cross-service coordination (such as a global script registry) are not part of this API surface.
Script Execution
Execute scripts as HTTP endpoints. Each script receives the HTTP request and returns a response, with no separate run, poll, or cancel step.
Script Management
Read, write, delete, and organize scripts on disk. Paths are relative to the script root for the service.
Script Templates
List, preview, and generate scripts from built-in and custom templates.
Code Generation from Templates
Scaffold script code from built-in and custom templates using AI-assisted generation.
Dependency Management
Check and install the npm dependencies a script needs at runtime.
Package Management
Manage the contents of package.json for the service.
Cache & Shared State
Clear in-memory cache and manage shared state exposed to scripts.
Route Management
Resolve, discover, and test the URL routes that map to scripts on the service.
Code Validation
Validate TypeScript, syntax, and dependency references before a script is deployed.
Log Management
List, read, stream, search, and clear logs produced by script execution.
Schedule Management
List, trigger, reload, and inspect the history of scheduled script executions.
Monitoring & Performance
Monitor runtime statistics and system health for the Exec service.