Install the SDK
CHECKFU_BASE_URL and CHECKFU_API_KEY. Save the following as publish.mts and run npx tsx publish.mts.
publish.mts
{ version: 1 } (the public address stays the same; see Publish an artifact). Publishing again after unpublishing assigns a new address.
Publish a live dashboard
The starterdashboard type renders one card per document in the numbers collection and refreshes every 30 seconds. The script reads the three template files from the checkout at ./checkfu, creates a dashboard from the type, and publishes it with read access so the page can query its data.
Save this as dashboard.mts in your npm project and run npx tsx dashboard.mts from the project root.
dashboard.mts
put its document again under the same ID; the live page refreshes within 30 seconds.
The CLI uses --at-version to create a viewing link for a specific version.
ADDRESS to the publication.address returned by publish before taking it down.