Database · Convex component
convex-weflayr
Send a Convex app's model calls through the Weflayr gateway, and keep cost per customer, per call and per day in your own database.
npm install convex-weflayr—downloads last week
—downloads last 12 months
v0.1.1latest, Nov 6, 2026
3releases since Nov 6, 2026
Downloads
Download history
Loading download history…
Build this
Build with convex-weflayr
The install and setup steps from the package documentation.
- 1
Install
shnpm install convex-weflayrAdd the component to
convex/convex.config.ts:tsimport { defineApp } from "convex/server"; import weflayr from "convex-weflayr/convex.config"; const app = defineApp(); app.use(weflayr); export default app;Set your Weflayr key and the customers that may use the gateway:
shnpx convex env set WEFLAYR_API_KEY <your Weflayr key> npx convex env set WEFLAYR_CUSTOMERS "*"WEFLAYR_CUSTOMERSis a comma separated list of customer ids, or*for all. When it is empty, no customer goes through the gateway.