ContractSpec docs

OSS-first docs

These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.

minimal

Bare-minimum contract definition showing the simplest possible setup

  • Type: feature
  • Version: 1.0.0
  • Stability: stable
  • Owners: @team
  • Tags: minimal, example
  • File: packages/examples/minimal/src/minimal.feature.ts
  • field.key.label
    minimal
    field.version.label
    1.0.0
    field.type.label
    feature
    field.title.label
    minimal
    field.description.label

    Bare-minimum contract definition showing the simplest possible setup

  • Type: feature
  • Version: 1.0.0
  • Stability: stable
  • Owners: @team
  • Tags: minimal, example
  • File: packages/examples/minimal/src/minimal.feature.ts
  • field.tags.label
    minimal,example
    field.owners.label
    @team
    field.stability.label
    stable

    Bare-minimum contract definition showing the simplest possible setup

    Operations (1)

    `user.create` (v1.0.0)

    Source Definition

    import { defineFeature } from '@lssm-tech/lib.contracts-spec';
    
    export const MinimalFeature = defineFeature({
    	meta: {
    		key: 'minimal',
    		version: '1.0.0',
    		title: 'Minimal Example',
    		description:
    			'Bare-minimum contract definition showing the simplest possible setup',
    		domain: 'example',
    		owners: ['@team'],
    		tags: ['minimal', 'example'],
    		stability: 'stable',
    	},
    
    	operations: [{ key: 'user.create', version: '1.0.0' }],
    });