WordPress Feature API

https://news.ycombinator.com/rss Hits: 1
Summary

WordPress Feature API The WordPress Feature API is a system for exposing WordPress functionality in a standardized, discoverable way for both server and client-side use. It's designed to make WordPress functionality accessible to AI systems (particularly LLMs) and developers through a unified registry of resources and tools. Key Features Unified Registry : Central registry of features accessible from both client and server : Central registry of features accessible from both client and server Standardized Format : uses the MCP specification for the registry : uses the MCP specification for the registry Reuses existing functionality : existing WordPress functionality like REST endpoints are reused as features, making them more discoverable and easier to use by LLMs. : existing WordPress functionality like REST endpoints are reused as features, making them more discoverable and easier to use by LLMs. Filterable : Features can be filtered, categorized, and searched for more accurate feature matching. : Features can be filtered, categorized, and searched for more accurate feature matching. Extensible: Easy to register new features from plugins and themes Project Structure This project is structured as a monorepo using npm workspaces: packages/client : The core client-side SDK ( @wp-feature-api/client ). Provides the API ( registerFeature , executeFeature , Feature type) for interacting with the feature registry on the frontend and manages the underlying data store. Third-party plugins can use this to register their own client-side features. : The core client-side SDK ( ). Provides the API ( , , type) for interacting with the feature registry on the frontend and manages the underlying data store. Third-party plugins can use this to register their own client-side features. packages/client-features : A library containing implementations of standard client-side features (e.g., block insertion, navigation). It depends on the client SDK and is used by the main plugin to regist...

First seen: 2025-04-17 12:11

Last seen: 2025-04-17 12:11