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.
What it demonstrates
Section titled “What it demonstrates”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.
Try it
Section titled “Try it”- Open an empty workspace’s Home page and click Hello Orvanta (TypeScript) under Orvanta Quick Starts.
- Press Run (or
Ctrl+Enter) to execute it as-is. - Edit the
mainfunction and re-run to see the change reflected immediately. - Click Deploy if you want to keep it in the workspace — otherwise navigate away and the draft is discarded.
What next?
Section titled “What next?”- 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.