Skip to content

Architecture

SkeinRank is designed around a split between a fast runtime path and a slower control-plane path.

Runtime path

Local SDK/CLI, dictionary snapshots, document text extraction, alias matching, canonicalization, passport output, and optional FastAPI extraction endpoints.

FastLocalDeterministic

Control-plane path

Governance API, PostgreSQL terminology store, roles, suggestions, stop lists, API tokens, snapshots, Elasticsearch evidence checks, and enrichment jobs.

PreviewReview workflowUI/API
PackageRole
skeinrank-coreCore SDK, CLI, extraction, canonicalization, document helpers.
skeinrank-serverFastAPI service wrapper for extraction and rerank contracts.
skeinrank-provider-elasticsearchOptional Elasticsearch provider and enrichment CLI.
skeinrank-governanceSQLAlchemy/Alembic foundation for terminology governance.
skeinrank-governance-apiFastAPI control-plane API for profiles, terms, aliases, users, roles, tokens, suggestions, and snapshots.
skeinrank-uiReact/TypeScript governance console.

The governance layer should publish snapshots. Runtime extraction should consume snapshots. That keeps the online matching path simple and avoids turning every extraction request into a database-backed workflow.