Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mirage.strukto.ai/llms.txt

Use this file to discover all available pages before exploring further.

TrelloResource exposes a Trello workspace as a tree of boards, lists, and cards. Setup steps for the API key/token live at Trello Credentials.

Node

pnpm add @struktoai/mirage-node
import { MountMode, TrelloResource, Workspace } from '@struktoai/mirage-node'

const trello = new TrelloResource({
  apiKey: process.env.TRELLO_API_KEY!,
  apiToken: process.env.TRELLO_API_TOKEN!,
})

const ws = new Workspace({ '/trello': trello }, { mode: MountMode.READ })
await ws.execute('ls /trello/')

Browser

pnpm add @struktoai/mirage-browser
import { MountMode, TrelloResource, Workspace } from '@struktoai/mirage-browser'

const trello = new TrelloResource({
  apiKey: TRELLO_API_KEY,
  apiToken: TRELLO_API_TOKEN,
})

Config

FieldDefaultNotes
apiKeyrequiredTrello API key. Redacted in snapshots.
apiTokenrequiredTrello API token. Redacted in snapshots.
workspaceIdnoneRestrict to a single workspace.
boardIdsnoneOptional allowlist of board IDs.
baseUrlhttps://api.trello.com/1Override for Enterprise instances.

Mount mode

read. For board/list/card layout see the Python Trello docs.