A fluent API builder for Convex functions with composable middleware, reusable chains, and plugin support. Current stable version 0.13.0, actively maintained with monthly releases. Key differentiators: onion-style middleware composition, full type inference across chains, cross-function-type middleware via `$context`, and official plugins (e.g., fluent-convex/zod). Unlike raw Convex functions, provides a developer-friendly chainable syntax and middleware abstraction. Requires peer dependencies convex ^1.31.0, zod ^3.25.0 || ^4.0.0, convex-helpers >=0.1.0.
Verified import paths — ran on the pinned version, not inferred.
ESM-only. v0.13+ uses pure ESM; CommonJS require will fail.
Zod plugin is a separate subpath export. Must import from 'fluent-convex/zod'.
Type parameter for DataModel is required for full type inference. Omitting it loses db query types.
Creates a Convex query using fluent-convex with input validation and public registration. Demonstrates createBuilder, .query(), .input(), .handler(), and .public().
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.