Austin
CCConvex Community
•Created by Austin on 10/14/2024 in #support-community
Best Practices? SvelteKit5, Kinde, Server To Server Auth, Python as backend resource
Hi all,
I am hoping you can give me a few pointers! First, I am using sveltekit5 and the Convex sveltekit libraries - I believe I have that working ok - has anyone else used this for a production project considering Sveltkit5 is in early release? Does Convex work on SvelteKit4?
Second, I am using Kinde for authentication. I have that working perfectly for my sveltekit project, but the callbacks are against local api routes within the project. How do I pass this back to Convex so Convex recognizes the authentication? I've started doing some goofy things that just feel wrong such as passing the token in the request body to Convex in order to see who the user is.
Third, I am making an LLM workflow app, but a lot of my workload is in python leveraging things like DSPY running on its own server. I have a functional prototype where I trigger my python workflow via REST API from Convex, my python funcions do their things, and they write mutations back to Convex using the python library... a few things popped out at me: 1) I am writing a ton of mutations, is this going to blow up my bill? Is there a better way? 2) I feel like my authentication is non-existent between my python project and my typescript project - if it has the correct environment variables, it can do anything.
I am a development team of 1 - I have been at this for 20 years or so, but I have to admit, I've always worked on backend solutions and am stretching myself to learn the frontend world. AI helps, but I feel like I could use a code review. Are there professional consulting services connected to Convex that could help me know if I am leveraging the platform correctly?
I'll end with what I love about Convex: ROCK SOLID STATE MANAGEMENT. It's a must for multi-agent, complex, LLM Agent platforms. Thanks and please feel free to tell me to RTFM. 🙂
3 replies