Getting Started

Install the INHERIT SDK, create your first estate document, and validate it. Under 2 minutes.

1 min readLast updated: 9 April 2026

Install#

bash
npm install @openinherit/sdk

Or use the schemas directly without the SDK:

bash
npm install @openinherit/schema

Create your first document#

A minimal INHERIT estate document needs three things: an estate, a person, and a relationship connecting them.

typescript
import { createEstate, createPerson, createRelationship } from '@openinherit/sdk';

const estate = createEstate({
  id: crypto.randomUUID(),
  version: '3.0',
  jurisdiction: 'england-wales',
  people: [
    createPerson({
      id: crypto.randomUUID(),
      givenNames: ['Jane'],
      familyName: 'Smith',
      role: 'testator'
    })
  ]
});

Validate it#

typescript
import { validate } from '@openinherit/sdk';

const result = validate(estate);

if (result.valid) {
  console.log('Document is valid');
} else {
  console.error('Validation errors:', result.errors);
}

Or try the online validator — paste your JSON and see results instantly.

Next steps#