Skip to content

Hooks Overview

Hook events run around CRUD, auth, and files operations.

Core references:

Execution flow

Add a hook

bash
zeptoz hook add Task before_insert --lang ts --new normalize

Generated artifacts

Hook creation artifacts are documented in Bootstrap & Generated Artifacts.

Supported runtimes in current MVP:

  • Rust (rs)
  • JavaScript (js)
  • TypeScript (ts)

Execution model

  • before_* failure aborts the operation.
  • after_* failure does not roll back primary operation; warning appears in meta.hook_warnings.
  • Timeouts and runtime limits are enforced.