SamS
Convex Communityโ€ข3mo agoโ€ข
28 replies
Sam

๐Ÿ”จ Convex Component Template โ€“ Production-Ready Boilerplate

Just released a production-ready template for building Convex components.

If you want to build reusable Convex components (like rate limiters, sharded counters, document search, etc.) and publish them to npm, this template has everything you need:

- Automated rename script โ€“ transforms the entire codebase to your component name
- Live reloading with --live-component-sources
- Testing setup with convex-test (auto-discovery included)
- Changesets for versioning + automated npm publishing
- pkg.pr.new for preview packages on every commit
- Example app showing how to use your component
- Pre-configured CI/CD with GitHub Actions

Just clone it, run bun rename.ts, and start building.

Repo: https://github.com/samhoque/convex-component-template
Was this page helpful?