Components are here! https://www.convex.dev/components

And now you can build new ones yourself.

Quickstart

npm create convex@latest -- --component

This will generate a new template component, with an example app.

Examples

Check out the template’s README for details about the contents and how to make the component your own.

All first-party components are open source, so you can check out their source code to see example patterns.

Examples:

Anatomy of a Component

A component has functions, tables, file storage, and scheduled functions. A component gets plugged into a Convex app (or into a parent component), which can then access it through its public interface.