convex-helpers-guide
Battle-tested utilities for Convex backends covering relationships, authentication, filtering, sessions, and data migrations.
- Relationship helpers (
getOneFrom,getManyFrom,getManyVia) simplify loading related data across tables with type safety - Custom functions provide TypeScript-based data protection and access control as an alternative to row-level security, with automatic auth injection and role-based access patterns
- Additional utilities include filtering for complex logic, session tracking for anonymous users, Zod schema validation, migrations, and triggers for reactive data changes
- All patterns are designed to reduce boilerplate and enforce consistent auth/access control across your entire backend without reinventing common patterns
Convex Helpers Guide
Use convex-helpers to add common patterns and utilities to your Convex backend without reinventing the wheel.
What is convex-helpers?
convex-helpers is the official collection of utilities that complement Convex. It provides battle-tested patterns for common backend needs.
Installation:
npm install convex-helpers
Available Helpers
1. Relationship Helpers
Traverse relationships between tables in a readable, type-safe way.
More from get-convex/agent-skills
convex-quickstart
Creates or adds Convex to an app. Use for new Convex projects, npm create
44.9Kconvex-performance-audit
Audits Convex performance for reads, subscriptions, write contention, and
44.4Kconvex-setup-auth
Sets up Convex auth, identity mapping, and access control. Use for login, auth
44.3Kconvex-migration-helper
Plans Convex schema and data migrations with widen-migrate-narrow and
44.2Kconvex-create-component
Builds reusable Convex components with isolated tables and app-facing APIs.
44.2Kconvex
Routes general Convex requests to the right project skill. Use when the user
20.7K