Skip to content

API Reference

Packages

@state-adapt/core

The framework-agnostic core API for creating adapters, selectors, and reactions.

@state-adapt/core/adapters

Ready-made adapters for common state shapes, including booleans, numbers, strings, and entities.

@state-adapt/rxjs

The RxJS layer for defining stores, sources, and related state-management utilities.

@state-adapt/angular

Angular integration with signals, providers, and injectable adapters.

@state-adapt/react

React integration with hooks for stores, sources, and derived state.

@state-adapt/spaghetti-core

Shared TypeScript AST analysis for discovering commands, propagating them through project-function call chains, measuring their distance, and calculating configurable spaghetti scores.

@state-adapt/eslint-plugin-spaghetti

This ESLint plugin helps you minimize spaghetti code. It reports imperative code that reaches too far across functions, scopes, files, or folders.

@state-adapt/spaghetti-analyzer

Analyze a TypeScript project for spaghetti code and produce human-readable or JSON reports.