Skip to content

Quick Start — TypeScript

One of the five Orvanta Quick Starts shown on an empty workspace’s Home page. Picking the Hello Orvanta (TypeScript) card opens this script as an unsaved draft in the script editor — nothing is deployed until you save it.

TypeScript scripts on Orvanta run on Bun — the same runtime your flow steps use. The Quick Start shows the minimal shape: a plain async main function, arguments in, a JSON-serialisable result out.

export async function main(
name: string = "Orvanta"
): Promise<{ message: string }> {
return {
message: `Hello, ${name}! This ran as a TypeScript (Bun) script on Orvanta.`
}
}

The name argument has a default, so the auto-generated input form makes it optional — hit Run with no input and it prints “Hello, Orvanta!”.

The draft ships with an empty package.json (no dependencies), so there’s nothing to install before it runs.

  1. Open an empty workspace’s Home page and click Hello Orvanta (TypeScript) under Orvanta Quick Starts.
  2. Press Run (or Ctrl+Enter) to execute it as-is.
  3. Edit the main function and re-run to see the change reflected immediately.
  4. Click Deploy if you want to keep it in the workspace — otherwise navigate away and the draft is discarded.
  • TypeScript Quickstart — the full walkthrough of writing TypeScript scripts from scratch, including runtime modes and workflows-as-code.
  • Seed your workspace — back to the full Quick Starts gallery.