We're excited to announce the release of the Turso Per User Starter, a powerful Next.js boilerplate repository for building multi-tenant applications.
In today's SaaS world, multi-tenancy has become a crucial architectural pattern. However, implementing something that's robust and scalable can be challenging.
The boilerplate leverages Turso's unique multi-db schemas feature, allowing developers to create "Database per-user" or "Database per-tenant" experiences.
If you're curious how all of it works together, read the full tutorial.
The Turso Platforms Starter is designed with flexibility in mind. Developers can easily modify components to suit their needs, whether it's swapping out the ORM, changing the auth provider, or even adapting it to a differenf frontend framework.
This starter can efficiently scale up to millions of databases, making it suitable for applications of any size — all thanks to Turso's generous database allowances.
At the core of this starter is libSQL, the open contribution fork of SQLite by Turso. libSQL allows you to run databases locally, in the cloud, on the edge, or within your infrastructure, all using the same drivers.
The power of SQLite is that it's just a file. This means we can give users the ability to download their own data in a single click, without worrying about sharing data from neighboring users.
Deploy your own Turso powered platform in a few easy steps...
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
- Clerk public keyCLERK_SECRET_KEY
- Clerk secret keyTURSO_API_TOKEN
- Platform API TokenTURSO_ORG
- Org nameTURSO_DATABASE_NAME
- Database nameTURSO_GROUP_AUTH_TOKEN
- Group TokenThe Turso Platforms Starter is available on GitHub, and you can try the demo.
We invite developers to explore, contribute, and build upon this boilerplate to create powerful, scalable multi-tenant applications.
We're excited to see what you build, so join us on Discord and share your projects!