Proof through real scenarios

Templates that show the open system in practice.

These scenarios are the fastest way to understand ContractSpec: explicit contracts, aligned surfaces, and an adoption path from OSS exploration into Studio deployment.

53curated scenarios
1entry paths
OSSfirst, Studio second

Browse by source

Use local scenarios for core proof, then scan the community.

Local templates show the official adoption path. Community browsing appears automatically when a registry URL is configured.

New

Minimal

ContractSpec package declaration for @contractspec/example.minimal.

Template

Stable

Public

examples

minimal

package

quickstart

Preview

New

Messaging Agent Actions

Safe messaging agent actions example with fixed intents, allowlisted actions, workflow dispatch, and deterministic replies.

Template

Beta

Public

agents

examples

messaging-agent-actions

package

telegram

Preview

New

Policy Safe Knowledge Assistant

All-in-one template example: policy-safe knowledge assistant with locale/jurisdiction gating, versioned KB snapshots, HITL update pipeline, and learning hub.

Template

Beta

Public

assistant

examples

knowledge

package

policy

policy-safe-knowledge-assistant

New

Visualization Showcase

Focused visualization showcase for ContractSpec primitives and design-system wrappers

Template

Stable

Public

charts

examples

package

visualization

visualization-showcase

Agent Console

Agent Console example - AI agent orchestration with tools, runs, and logs

Template

Experimental

Public

Features: Seeded autonomous agents, Tool registry, Run execution history, Metrics, Markdown and React views

agent-console

agents

autonomous

examples

package

Ai Chat Assistant

Focused AI chat assistant template with MCP tools, reasoning, chain of thought, sources, and suggestions.

Template

Beta

Public

ai-chat-assistant

examples

package

Ai Support Bot

AI support bot example: classify and resolve a support ticket using @contractspec/lib.support-bot.

Template

Experimental

Experimental

ai-support-bot

examples

package

Preview

Analytics Dashboard

Analytics Dashboard example with widgets and query engine for ContractSpec

Template

Stable

Public

analytics

analytics-dashboard

dashboard

examples

package

Calendar Google

Google Calendar integration example: list and create events.

Template

Experimental

Public

calendar-google

examples

package

Preview

Content Generation

Content generation example using @contractspec/lib.content-gen.

Template

Experimental

Experimental

content-generation

examples

package

Preview

Crm Pipeline

CRM Pipeline - Contacts, Companies, Deals, Tasks

Template

Experimental

Experimental

crm-pipeline

examples

package

Email Gmail

Gmail integration example: inbound threads and outbound messages.

Template

Experimental

Experimental

email-gmail

examples

package

Preview

Form Showcase

Use this template when you want only form contracts: all core fields, responsive layouts, steps, sections, arrays, and validation hints.

Template

Stable

Public

examples

form-showcase

forms

package

template

ui

Harness Lab

Focused harness example for ContractSpec scenarios, suites, orchestration, and runtime adapters.

Template

Experimental

Experimental

examples

harness-lab

package

Preview

In App Docs

Example showing how to use DocBlock for in-app documentation for non-technical users

Template

Experimental

Experimental

examples

in-app-docs

package

Integration Hub

Integration Hub example with sync engine and field mappings for ContractSpec

Template

Experimental

Experimental

examples

integration-hub

package

Integration Posthog

PostHog analytics integration example: capture events, run HogQL, and manage feature flags.

Template

Experimental

Experimental

examples

integration-posthog

package

Preview

Integration Stripe

Integration example – Stripe Payments (blueprint + workflow + tenant config).

Template

Experimental

Experimental

examples

integration-stripe

package

Preview

Integration Supabase

Integration example - Supabase vector store + Postgres database wiring.

Template

Experimental

Experimental

examples

integration-supabase

package

Preview

Kb Update Pipeline

Example: KB update automation pipeline with HITL review and auditability.

Template

Experimental

Experimental

examples

kb-update-pipeline

package

Preview

Knowledge Canon

Knowledge example – Product Canon space (blueprint + tenant config + source sample + runtime helper).

Template

Experimental

Experimental

examples

knowledge-canon

package

Preview

Learning Journey Ambient Coach

Ambient coach learning journey example with contextual tips and follow-up actions.

Template

Experimental

Experimental

examples

learning-journey-ambient-coach

package

Preview

Learning Journey Crm Onboarding

Learning journey track that onboards users to the CRM pipeline example.

Template

Experimental

Experimental

examples

learning-journey-crm-onboarding

package

Preview

Learning Journey Duo Drills

Drill-based learning journey example with SRS, XP, and streak hooks.

Template

Experimental

Experimental

examples

learning-journey-duo-drills

package

Preview

Learning Journey Platform Tour

Learning journey track covering ContractSpec platform primitives.

Template

Experimental

Experimental

examples

learning-journey-platform-tour

package

Preview

Learning Journey Quest Challenges

Time-bound quest/challenge learning journey example.

Template

Experimental

Experimental

examples

learning-journey-quest-challenges

package

Preview

Learning Journey Registry

Registry that aggregates learning journey example tracks.

Template

Experimental

Experimental

examples

learning-journey-registry

package

Learning Journey Studio Onboarding

Learning journey track for first 30 minutes in ContractSpec Studio.

Template

Experimental

Experimental

examples

learning-journey-studio-onboarding

package

Preview

Learning Journey Ui Coaching

Contextual coaching UI with tip cards and engagement tracking.

Template

Experimental

Experimental

examples

learning-journey-ui-coaching

package

Preview

Learning Journey Ui Gamified

Duolingo-style gamified learning UI for drills and quests.

Template

Experimental

Experimental

examples

learning-journey-ui-gamified

package

Preview

Learning Journey Ui Onboarding

Developer onboarding UI with checklists and journey maps.

Template

Experimental

Experimental

examples

learning-journey-ui-onboarding

package

Preview

Learning Journey Ui Shared

Shared UI components and hooks for learning journey mini-apps.

Template

Experimental

Experimental

examples

learning-journey-ui-shared

package

Preview

Learning Patterns

Example: drills + ambient coach + quests learning patterns, powered by Learning Journey (event-driven, deterministic).

Template

Experimental

Experimental

examples

learning-patterns

package

Preview

Lifecycle Cli

Lifecycle CLI demo (example): run lifecycle assessment without an HTTP server.

Template

Experimental

Experimental

examples

lifecycle-cli

package

Preview

Lifecycle Dashboard

Lifecycle dashboard example (snippet): how to call lifecycle-managed APIs and render a status card.

Template

Experimental

Experimental

examples

lifecycle-dashboard

package

Preview

Locale Jurisdiction Gate

Example: enforce locale + jurisdiction + kbSnapshotId + allowed scope for assistant calls (fail-closed).

Template

Experimental

Experimental

examples

locale-jurisdiction-gate

package

Preview

Marketplace

Marketplace example with orders, payouts, and reviews for ContractSpec

Template

Experimental

Experimental

examples

marketplace

package

Meeting Recorder Providers

Meeting recorder provider example: list meetings, transcripts, and webhooks.

Template

Experimental

Experimental

examples

meeting-recorder-providers

package

Preview

Openbanking Powens

OpenBanking Powens example: OAuth callback + webhook handler patterns (provider + workflows).

Template

Experimental

Experimental

examples

openbanking-powens

package

Preview

Personalization

Personalization examples: behavior tracking, overlay customization, workflow extension.

Template

Experimental

Experimental

examples

package

personalization

Preview

Pocket Family Office

Pocket Family Office example - personal finance automation with open banking

Template

Experimental

Experimental

examples

package

pocket-family-office

Preview

Product Intent

Product intent example: evidence ingestion and prompt-ready outputs.

Template

Experimental

Experimental

examples

package

product-intent

Preview

Project Management Sync

Project management sync example: Linear, Jira, and Notion work item creation.

Template

Experimental

Experimental

examples

package

project-management-sync

Preview

Saas Boilerplate

SaaS Boilerplate - Users, Orgs, Projects, Billing, Settings

Template

Experimental

Experimental

examples

package

saas-boilerplate

Service Business Os

Service Business OS example (clients, quotes, jobs, invoices) for ContractSpec

Template

Experimental

Experimental

examples

package

service-business-os

Preview

Team Hub

Team Hub example with spaces, tasks, rituals, and announcements

Template

Experimental

Experimental

examples

package

team-hub

Preview

Versioned Knowledge Base

Example: curated, versioned knowledge base with immutable sources, rule versions, and published snapshots.

Template

Experimental

Experimental

examples

package

versioned-knowledge-base

Preview

Video Api Showcase

Generate API documentation videos from contract spec definitions using the ApiOverview composition.

Template

Experimental

Experimental

examples

package

video-api-showcase

Preview

Video Docs Terminal

Generate terminal demo videos from CLI walkthroughs using the TerminalDemo composition and ScriptGenerator.

Template

Experimental

Experimental

examples

package

video-docs-terminal

Preview

Video Marketing Clip

Generate short-form marketing videos from content briefs using the video-gen pipeline.

Template

Experimental

Experimental

examples

package

video-marketing-clip

Preview

Voice Providers

Voice provider example: Gradium and Fal text-to-speech integration patterns.

Template

Beta

Public

examples

fal

gradium

package

voice

voice-providers

Preview

Wealth Snapshot

Wealth Snapshot mini-app for accounts, assets, liabilities, and goals

Template

Experimental

Experimental

examples

package

wealth-snapshot

Preview

Workflow System

Workflow and approval system example for ContractSpec - State machine with role-based transitions

Template

Experimental

Public

examples

package

workflow-system

From template to real system

Templates become useful when the system can absorb more context.

Use templates to prove the base flow, then layer integrations, knowledge, and runtime behavior on top without losing the same contract source.

💳

Add payments

Connect Stripe to any template for payment processing, subscriptions, and invoicing. Type-safe and policy-enforced.

Learn more →
📧

Add notifications

Send transactional emails via Postmark or Resend. Process inbound emails with Gmail API. SMS via Twilio.

View integrations →
🧠

Add AI and knowledge

Power templates with OpenAI, vector search via Qdrant, and structured knowledge spaces for context-aware workflows.

Learn about knowledge →

All integrations are configured per-tenant with automatic health checks and credential rotation.

View Architecture