Getting Started
Install the INHERIT SDK, create your first estate document, and validate it. Under 2 minutes.
Install#
bash
npm install @openinherit/sdkOr use the schemas directly without the SDK:
bash
npm install @openinherit/schemaCreate 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#
- AI Integration Guide — if you’re using AI to generate INHERIT documents
- Minimal Viable Estate — a complete worked example
- Schema Reference — full field documentation for all 40+ entity types
- Building Extensions — add jurisdiction-specific fields