Request a demo
Docs / Sharing & InsightStudio / Publish apps to S3

Publish apps to S3 — /app publish

InsightWorker apps are bundles — a folder with app.yaml, widget.json, workflow.yaml, plan.md, and (optionally) prompts/ and dictionaries/. /app publish ships that bundle to a shared S3 bucket so other team members — or an InsightStudio marketplace — can discover and run it.

This is the lightweight way to share apps: no database or service is needed, only a bucket your team can read.

One-time bucket setup

Pick (or create) a private S3 bucket your team can read. Set one env var pointing at it — the CLI uses this for every publish, pull, and list.

export IW_APP_STORE=s3://your-bucket/optional/prefix
export AWS_REGION=us-east-1                  # or wherever your bucket lives

Credentials come from the standard AWS provider chain — SSO, EC2 instance role, IAM keys, or whatever you've configured. See AWS SSO for the recommended setup.

Publish a bundle

Publishing is a REPL command. Start insightworker in the workspace that contains apps/<name>/, then:

> /app validate credit-triage     # optional: check the bundle first
> /app publish credit-triage

Flags: --synth generates app.yaml if it is missing, --skip-validate publishes even when validation reports errors, and --no-latest leaves the LATEST alias unchanged.

The publish flow:

  1. Validates the bundle against the §15 spec (required files, slug shape, version is semver, widget JSON is parseable).
  2. Reads app.yaml for slug and version.
  3. Uploads every file under the bundle to s3://<bucket>/<prefix>apps/<slug>/v<version>/.
  4. Writes a LATEST alias file at s3://<bucket>/<prefix>apps/<slug>/LATEST with the version number, so consumers can fetch the newest version without listing.

S3 layout reference

s3://<bucket>/<prefix>apps/
├── credit-triage/
│   ├── LATEST                 # plain text: "1.2.0"
│   ├── v1.0.0/
│   │   ├── app.yaml
│   │   ├── widget.json
│   │   ├── workflow.yaml
│   │   ├── plan.md
│   │   ├── manifest.yaml
│   │   ├── prompts/
│   │   └── dictionaries/
│   ├── v1.1.0/
│   └── v1.2.0/
└── broker-submission-intake/
    └── ...

Published versions are not overwritten: publishing a version that already exists is refused. Bump version in app.yaml and publish again.

Pull a teammate's app

To run an app someone else published:

> /app pull credit-triage            # latest version
> /app pull credit-triage@1.1.0      # a specific version
> /app pull credit-triage --force    # overwrite a local copy

Files land in ./apps/<slug>/. You can then run the app with the widget runner:

> /app run credit-triage --ui

List versions

> /app versions credit-triage
#   v1.2.0 ← LATEST
#   v1.1.0
#   v1.0.0

What gets uploaded vs what gets skipped

IncludedSkipped
app.yaml, widget.json, workflow.yaml, plan.md, manifest.yamlruns/ (local run history)
Everything under prompts/ and dictionaries/node_modules and dotfiles (.env, .git, …)
Anything you add to the bundle root (e.g. README.md, examples/)

From CLI to Studio marketplace

If your team runs an InsightStudio instance, apps published this way appear in the Studio marketplace automatically — Studio reads the same S3 bucket on a 60-second cache TTL. No separate publish step. Your CLI authoring loop and Studio's browser-based runners stay in sync.


Related: Join a Studio worker farm · InsightStudio overview