Jacob KimJ
Convex Community5mo ago
5 replies
Jacob Kim

how to manage larger convex codebase

Initially my Convex codebase was small and beautiful. Then the codebase grew and grew.

I tried to split the functions by table like
users
- queries.ts
- mutations.ts
- utils.ts
trades
- queries.ts
- mutations.ts
- actions.ts
- utils.ts

but it's not ideal, now that I have 27 tables.

I have checked out (https://github.com/a16z-infra/ai-town/blob/main/convex/schema.ts) which is a good reference point. are there more good references which showcases how to structure larger Convex codebase?
GitHub
A MIT-licensed, deployable starter kit for building and customizing your own version of AI town - a virtual town where AI characters live, chat and socialize. - a16z-infra/ai-town
ai-town/convex/schema.ts at main · a16z-infra/ai-town
Was this page helpful?