vlt / affordances
  • Quickstart
  • Concepts
  • Guides
  • Reference
  • Overview
  • Packages
  1. Reference
  2. /
  3. API reference

API reference

Generated from each package's source with TypeDoc.

Packages

PackageDescription
@affordances/coreThe framework-agnostic core of Affordances: defineAction and defineState (or createAffordances for a shared session resolver), and createHandler, which answers graph and call requests as a (request: Request) => Promise<Response>. Framework adapters such as @affordances/next build on it.
@affordances/lintAffordances lint rules for ESLint and oxlint: require-affordance, static-action-name
@affordances/mcpAffordances over MCP: any Affordances site as two tools, for Claude, Cursor, and other MCP clients
@affordances/mdServe any Next.js page as clean markdown at the same URL
@affordances/nextAffordances for Next.js: withAffordances, codegen, and the route handler
@affordances/protocolAffordances protocol: types, JSON Schemas, and the spec
@affordances/reactAffordances for React: WebMCP tools from the page graph, and <Affordance> markers

PreviousCLINext@affordances/core

On this page

  • Packages

Make your app agent-operable

Give every page a graph and every server action an agent path: HTTP, WebMCP, and MCP, with the same session and the same checks. One command sets it up.

Read the quickstart