How to create, structure, and publish self-contained Convex components with proper isolation, exports, and dependency management
Self-contained Convex packages with isolated databases, functions, and type-safe exports for reuse across projects. Includes isolated database tables, queries, mutations, actions, and TypeScript types within a single component package Supports multiple component instances in a single app with custom naming and configuration options Provides optional React hooks for type-safe frontend integration and simplified consumer APIs Publishes to npm with proper peer dependencies, TypeScript declarations, and semantic versioning Convex Component Authoring Create self-contained, reusable Convex components with proper isolation, exports, and dependency management for sharing across projects. Documentation Sources Before implementing, do not assume; fetch the latest documentation: Primary: https://docs.convex.dev/components Component Authoring: https://docs.convex.dev/components/authoring For broader context: https://docs.convex.dev/llms.txt Instructions What Are Convex Components?
don't have the plugin yet? install it then click "run inline in claude" again.
by @forcedotcom