Niks
Niks
CCConvex Community
Created by Niks on 3/28/2025 in #support-community
Route Translation for SDK Autogeneration (kebab-case filenames to camelCase API)
Context: I'm using Convex on several small freelance projects and exploring its integration into larger projects within a corporate environment. The established TypeScript filename convention in this environment is kebab-case (e.g., my-functions.ts). Currently, the SDK autogeneration process creates API routes directly from these filenames, resulting in function access like api["my-functions"].functionFoo. Desired Behavior: I would love a "route translation step" during SDK autogeneration. This would allow mapping kebab-case filenames to camelCase API routes. For example, a file named my-functions.ts containing functionFoo would be accessible via api.myFunctions.functionFoo. This feature would significantly improve the developer experience, particularly in environments with existing coding standards. If needed, I'm open with potentially contributing to this feature. While I'm relatively new to Convex, I have experience with both TypeScript and Rust (though I believe this change would primarily involve TypeScript). I'm open to exploring the codebase and assisting where possible as I gain more familiarity with Convex on a larger project.
2 replies