feast-dev
Development guide for contributing to the Feast codebase. Covers environment setup, testing, linting, project structure, and PR…
Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the system. Use when asked how feast apply works, how the registry stores data, how materialization moves data, how get_online_features retrieves features, how
Claude Code
$ npx -y skills add feast-dev/feast --skill feast-architecture --agent claude-code
Codex
$ npx skills add feast-dev/feast --skill feast-architecture -a codex -y
Cursor
$ npx skills add feast-dev/feast --skill feast-architecture -a cursor -y
Gemini CLI
$ npx skills add feast-dev/feast --skill feast-architecture -a gemini-cli -y
GitHub Copilot
$ npx skills add feast-dev/feast --skill feast-architecture -a github-copilot -y
OpenCode
$ npx skills add feast-dev/feast --skill feast-architecture -a opencode -y
Windsurf
$ npx skills add feast-dev/feast --skill feast-architecture -a windsurf -y
name: feast-architecture description: Internals of the Feast codebase — how each component works, where the key abstractions live, and the data flow through the system. Use when asked how feast apply works, how the registry stores data, how materialization moves data, how get_online_features retrieves features, how the feature server works, how the Kubernetes operator manages deployments, or when navigating the codebase to understand where to make a change. license: Apache-2.0 compatibility: Works with Claude Code, OpenAI Codex, and any Agent Skills compatible tool. metadata: author: feast-dev version: "1.0"
┌─────────────────────────────────────────────────────────────────┐ │ Feast Deployment Modes │ │ │ │ Local / Python SDK Kubernetes (feast-operator) │ │ ───────────────── ───────────────────────────────── │ │ feature_store.yaml ←── FeatureStore CR (CRD) │ │ │ │ │ │ ▼ ▼ │ │ FeatureStore (Python) Operator deploys services: │ │ ├── Registry - feature-server (Go or Python) │ │ ├── Provider - offline-store-server │ │ │ ├── OnlineStore - registry-server │ │ │ └── OfflineStore + manages feature_store.yaml config │ │ └── FeatureServer │ │ (Python FastAPI or │ │ Go gRPC/HTTP) │ └─────────────────────────────────────────────────────────────────┘
---
**File**: `sdk/python/feast/feature_store.py`
`FeatureStore` is the single entry point for all operations. It never reads/writes data directly — it delegates to the registry (for metadata) and the provider (for infrastructure and data movement).
FeatureStore(repo_path=".") # loads feature_store.yaml store.apply(objects) # register feature definitions store.materialize(...) # offline → online store.get_online_features(...) # serve store.get_historical_features(...) # training data
**File**: `sdk/python/feast/repo_config.py` — parses `feature_store.yaml` into typed `RepoConfig`. All component classes (online store, offline store, registry) are loaded dynamically from the `type:` string via `repo_config.ONLINE_STORE_TYPE_MAP` / `OFFLINE_STORE_TYPE_MAP`.
---
**Purpose**: Metadata store — persists definitions of entities, feature views, data sources, feature services, permissions.
**Backends and their files:**
| Backend | File | Notes | |---|---|---| | File/GCS/S3 (default) | `infra/registry/registry.py` | Single proto blob, cached in memory | | SQL | `infra/registry/sql.py` | Per-object tables via SQLAlchemy | | Snowflake | `infra/registry/snowflake.py` | Snowflake tables | | Remote | `infra/registry/remote.py` | Delegates to a remote registry server over gRPC |
**How the proto/file backend works:** 1. All metadata is serialized into one `Registry` protobuf (`protos/feast/core/Registry.proto`) 2. The proto blob is stored at the configured `registry:` path 3. In-memory `cached_registry_proto` is refreshed on a TTL (default 10s) 4. Writes re-serialize and overwrite the full blob — no partial updates
**Key pattern — apply:**
# Python object → proto → stored in registry blob registry.apply_feature_view(feature_view, project) # → feature_view.to_proto() # → upserts into cached_registry_proto.feature_views # → registry_store.update_registry_proto(proto)
**How the SQL backend works:**
**Supporting files:**
---
**Purpose**: Infrastructure lifecycle — creates/updates/tears down online store tables. Also dispatches `online_write_batch` and `get_historical_features`.
**File**: `sdk/python/feast/infra/provider.py`
Built-in providers (set via `provider:` in `feature_store.yaml`):
Custom providers extend `Provider` and override `update_infra` / `teardown_infra`.
---
**Purpose**: Low-latency feature s
Development guide for contributing to the Feast codebase. Covers environment setup, testing, linting, project structure, and PR…
How to test and debug Feast — running targeted tests, writing unit tests for new components, debugging registry and online store…
Guide for working with Feast (Feature Store) — defining features, configuring feature_store.yaml, retrieving features…
Hugging Face Hub CLI (`hf`) for downloading, uploading, and managing models, datasets, spaces, buckets, repos, papers, jobs, and…
Query and browse evaluation results stored in MLflow. Use when the user wants to look up runs by invocation ID, compare metrics…