@openinsure/rating (state requirements registry at packages/rating/src/state-requirements.ts) for coverage and filing rules, and @openinsure/domicile (at packages/domicile/src/index.ts) for captive insurance domicile configuration.
State Requirements Registry
The registry is an extensible system where each state has aStateRequirements object containing coverage minimums, document requirements, filing rules, and tax rates. The registry is exposed through the API at /v1/state-requirements.
Supported States
Currently, the registry includes detailed requirements for:- FL (Florida) — Fully implemented with coverage validation
state-requirements-{code}.ts file and registered in the STATE_REGISTRY.
State Profile
Each state profile contains the following top-level fields:| Field | Type | Description |
|---|---|---|
stateCode | string | Two-letter state code |
stateName | string | Full state name |
lob | string | Line of business these requirements apply to |
effectiveDate | string | Date these requirements became effective |
coverageMinimums | array | Required minimum coverage amounts |
documentRequirements | array | Required documents by lifecycle phase |
filingRules | array | Regulatory filing and reporting rules |
surplusLinesTaxRate | number | Surplus lines tax rate (decimal) |
surplusLinesStampingFee | number | Surplus lines stamping fee (decimal) |
premiumTaxRate | number | State premium tax rate (decimal) |
notes | array | Regulatory notes and special considerations |
Coverage Minimums
Coverage minimums define the minimum amounts required by state statute for specific coverage types. Each minimum includes the applicable statute reference and an applicability scope.Applicability Scopes
| Scope | Description |
|---|---|
all_vehicles | Applies to all vehicles registered in the state |
gvw_26000_34999 | Gross vehicle weight 26,000 — 34,999 lbs |
gvw_35000_43999 | Gross vehicle weight 35,000 — 43,999 lbs |
gvw_44000_plus | Gross vehicle weight 44,000+ lbs |
fmcsa_interstate | FMCSA-regulated interstate carriers |
fmcsa_hazmat | FMCSA-regulated hazmat carriers |
API
Coverage Minimum Structure
Document Requirements
Each state specifies which documents are required at each phase of the policy lifecycle.Lifecycle Phases
| Phase | Description |
|---|---|
application | Documents needed when the submission is received |
binding | Documents required before a policy can be bound |
issuance | Documents generated or collected at policy issuance |
cancellation | Documents required for policy cancellation |
renewal | Documents required for policy renewal |
Conditional Requirements
Some documents are only required when specific conditions are met:| Condition | Description |
|---|---|
fmcsa_regulated | Vehicle is regulated by FMCSA |
surplus_lines | Policy is written on a surplus lines basis |
hazmat | Vehicle carries hazardous materials |
API
id, documentType, label, required, reviewRequired, statute, description, phase, and an optional conditionalOn field specifying when the document is conditionally required.
Filing Rules
Filing rules define the regulatory requirements for rate filings, cancellation notices, reporting obligations, and coverage rules.Rule Types
| Type | Description |
|---|---|
filing | Rate and form filing requirements with the state DOI |
cancellation | Notice periods and procedures for policy cancellation |
reporting | Periodic reporting obligations to the state |
coverage | State-mandated coverage rules and conditions |
application | Application-phase regulatory requirements |
API
Filing Rule Structure
Coverage Validation
The API provides a validation endpoint that checks a vehicle and coverage configuration against state-specific minimums. Currently implemented for Florida.valid (boolean), errorCount, warningCount, and a results array. Each result contains ruleId, severity (error or warning), message, statute, requiredAmount, and actualAmount. For states without validation logic, the endpoint returns valid: true with an empty results array.
Captive Domicile Configuration
The@openinsure/domicile package provides a separate registry of captive insurance domicile rules for 17 states. This is relevant for captive program administration and risk retention groups.
Supported Domiciles
The package includes configurations for 17 states: AL, AR, AZ, DE, GA, HI, KY, MO, MT, NC, NE, NV, SC, TN, TX, UT, and VT. Key differentiators between domiciles:- Vermont and Hawaii have a 3-year exam cycle (vs. the standard 5-year cycle).
- Vermont and Hawaii require a resident director on the board.
- Texas only supports single parent, group, and association captives (no cells, series, or RRGs).
- Vermont supports the widest range of captive types, including rent-a-captive.
- Delaware, Tennessee, Utah, and Missouri support series captives.
Domicile Configuration Fields
Each domicile config includes:| Field | Description |
|---|---|
minimumCapital | Minimum capital requirements by captive type (default: 500K group/RRG) |
annualFees | Annual licensing fees by captive type |
reportingDeadlines | Required filings with due dates and formats |
examCycle | Years between mandatory examinations |
actuarialRequired | Whether an actuarial opinion is required |
boardRequirements | Minimum directors and resident director requirements |
Standard Reporting Deadlines
Unless overridden by a specific state, all domiciles use these standard deadlines:| Report | Due Date | Format |
|---|---|---|
| Annual Statement | March 1 | NAIC |
| Audited Financials | June 30 | GAAP |
Package API
Permissions
All state requirements endpoints require one of the following roles:underwriterproducerorg_adminsuperadmin
state-requirements-{code}.ts module in packages/rating/src/.
Related
- Compliance — Regulatory compliance and filing automation
- Rate Tables — Rating engine and premium calculation
- Policy — Policy lifecycle and bind checklist