Convex Community

CC

Convex Community

Join the Convex Discord! Explore Convex, the open-source reactive database for app developers.

Join

support-community

show-and-tell

general

self-hosted

announcements

Convex Rag Component

Hi All, Im new to using convex rag. I was wondering if "await rag.delete(ctx, { entryId: entry.entryId });" is supposed to delete the vector embeddings alongside the chunks, content, and the entry it makes for a specific document you run it on. This is my rag.ts init:...

Convex MCP read-only

We'd like to give Devin AI access to the Convex MCP. Is there a way to issue a read-only token for the MCP to use?

Auth don't work with Next js and ConvexAuthNextjsProvider

I'm having issues with getting auth to work with the ConvexAuthNextjsProvider. All iss setup as described in https://labs.convex.dev/auth/authz/nextjs. In the middleware.ts it seems to be working as expected (isAuthenticated is true). But when i do await fetchAction(api.stripe.checkout, { plan: 'starter' }) and ...
No description

Running into extremely high ram use on selfhosted version

I shouldn't be doing anything particularily memory intensive. What could be causing this? I'm using the latest version of convexdb as of posting....
No description

Mail component for other providers?

So currently you have Resend but there are lots of other providers out there that could have a same implementation as the current component apart from the actual API. Why not make it pluggable? That way we could easily implement the api interface and the “email” component can handle the internals like scheduling, rate limiting etc. Would be happy to help.

iOS build using EAS with react native and convex auth

Hey, a bit new to mobile app development. I'm trying to use EAS to build a react-native and convex monorepo for iOS. Both local and EAS builds succeed and install, but crash on launch on the device. I've tried doing it with this repo (no changes): https://github.com/get-convex/expo-convex-auth/blob/main/app/index.tsx and it still crashes on launch....

How to Automatically Pass a Token to Convex Server in fetchQuery and Other Functions

Hey, is it possible in Convex to pass a parameter (like a token) to the Convex server in fetchQuery and other functions without manually adding it each time? Context: I'm building my own auth due to some unique requirements, and I need to pass a token. I didn't want to manually include it in every request....

Is convex suited for ERP types system and multi-tenant systems?

Hi, I've been experimenting with Convex, and it looks great. I can see how powerful it can be for creating single web applications, but I was curious to know how well it was suited to something more complicated, like a suite of ERP apps that all require their own data but also share lots of data between each application. Say something like Odoo or ERPNext, and with multi-tenant support....

What is a good way to implement user input sanitization (to prevent XSS)?

I've always been using dompurify to help with user input sanitization but it doesn't seem to work on the convex mutations. I think this could be because of the stripped down nodejs environment that convex uses. (Not sure if im right) What are some other ways that you guys have implemented user input sanitization? Right now I've got some basic santization by using regex to filter out html elements but I'm hoping to use an opensourced library instead so I don't have to always keep up to date with any XSS prevention changes....

Claude Code MCP Config

I have the following .mcp.json: ```json { "mcpServers": { "puppeteer": {...

How to access deployment name inside Convex functions?

Is it possible to access the name of the current deployment (e.g. purple-dog-123) inside of a Convex function? I know that much of the time it could be parsed out of the CONVEX_SITE_URL or CONVEX_CLOUD_URL, but if you're using custom domains, these will contain the custom domain URLs, not the default https://purple-dog-123.convex.cloud or whatever.

Can't find a way to address error: Type instantiation is excessively deep and possibly infinite.

I've tried all suggestions discussed already in discord but none seems to work for me, add return types, comment out all my logic, change ts target to ESNext, etc. everything. I'm still facing this error when using the api calls. One workaround I found is I can do something like: ``` import { api as convexApi } from "@stilltime/backend/api"; ......

iOS build fails with the expo-convex-auth repo

Hi there, Me and my team are failing to build an iOS image using the expo-convex-auth package by Convex. Here is the feedback from my one of my developers:...

Using ai-sdk/vertex-ai with agents

Hey, I'm trying to use agents in an environment where I can really only use vertex-ai. I created the agent like this in convex/agents/coordinator.ts ``` import { Agent } from "@convex-dev/agent"...

Invalid schema for tool in convex agent.

I migrated away from ai sdk to using the agent from convex however as soon as I add any tools it throws an error. I've checked and can't seem to find an issue with my code. Please help. error:...

Proposal: Custom or More Readable IDs in Convex

Convex currently generates IDs like j570wphp56eeynea2scn7gefvn7hy38p using v.id('users'). They work, but they’re not very readable or ideal for use in URLs. In a previous setup with Drizzle, I used custom IDs like user_${nanoid(12)}— readable, unique, and safe for URLs. What I’m asking for:...

Ability to filter out "deployed functions" from logs

It would be create to be able to filter out these logs as most of the time they are not the focus. Also, when I apply a text log filter, the actual logs of interest are crowded out with all the "deployed function" logs. Do you think "deployed function" logs are needed when a manual text filter is applied?...
No description

MULTIPLE REPO WITH CONVEX

hey so icurrently have my web app with it's users and its a react and convex app, i want to create now a mobile app with expo but i want to keep the same convex db and backend, any have advice for best practice with this?

Setting up Convex with Clerk

I followed the guide here: https://docs.convex.dev/auth/clerk#get-started but in my Clerk webhooks dashboard, I keep getting failed status. It also doesn't remove the users from the DB when they are deleted. I attached a video of this flow, sorry about the quality. This is the relevant code snippets: ```typescript http.route({ path: "/clerk-users-webhook",...

stuck on npx convex deploy

It used to work with this project as well, but deployment status just stuck on ⠙ Deploying to (URL). Is there any verbose mode to debug this?