What problem does it solve?
It removes the friction of writing Convex query, mutation, and action functions by standardizing validation, authentication, authorization, and error-handling patterns so your backend endpoints are consistent and safe.
Core Features & Use Cases
- Type-safe Convex API generation: Produce queries, mutations, and actions with explicit
args validators and returns type schemas.
- Secure auth + authorization checks: Enforce
ctx.auth.getUserIdentity() for public endpoints and ownership/permission checks against stored resources.
- Correct API semantics: Use queries for read-only data, mutations for transactional writes, and actions for external/long-running work (including handling the
"use node" requirement for Node.js APIs).
- Use Case: Implement a new “tasks” endpoint by defining a validated
query to fetch task details, a mutation to create/update tasks with user ownership, and an action to call an external service and optionally update the database through ctx.runMutation.
Quick Start
Use the function-creator skill to implement a new Convex endpoint by asking it to generate the correct query/mutation/action with validators, returns schemas, auth checks, and the appropriate Node.js handling directive.