Setting the file. One moment. Hybrid Components · Convex Create Component · convex/agent-skills · Skills Docs
Read this file only when the user explicitly wants a hybrid setup.
A hybrid component combines a local Convex component with shared library code.
- the user wants a local install but also shared package logic
- the component needs extension points or override hooks
- some logic should live in normal TypeScript code outside the component
boundary
Treat hybrid as an advanced option, not the default.
- Why is a plain local component not enough?
- Why is a packaged component not enough?
- What exactly needs to stay overridable or shared?
If the answer is vague, fall back to local or packaged.
- More moving parts
- Harder upgrades and backwards compatibility
- Easier to blur the component boundary
- Not done: User explicitly needs hybrid behavior
- Not done: Local-only and packaged-only options were considered first
- Not done: The extension points are clearly defined before coding
references/hybrid-components.md