Skip to Content
SaaS framework

Framework for SaaS applications

Next.js in tandem with Vovk.ts offer a framework for building SaaS applications that is easy to deploy, scale, and maintain, but also provides a lot of features out of the box that cover the most common business use cases.

Cheap development and deployment

The whole app is implemented as a single Next.js application, that, when deployed, split into multiple serverless functions (smaller “back-ends”), each serving a specific purpose. This makes deployment infrastructure cheaper, having only one Next.js app to deploy with minimal configuration, while still being able to scale horizontally by adding more functions defined as Next.js page.tsx (UI) and route.ts (server-side code) files. The offering also makes development cheaper, as you don’t need to maintain monorepo with common libraries, that require additional configuration, tooling, and planning.

Read more

Enable multi-tenancy

In the most classical case a SaaS application is split into 3 “areas” or “tenants”:

  1. Root area - serves landing page with some features like “subscribe to newsletter”, stats collection, etc. It’s available to all unauthenticated users serving marketing content, pricing plans, etc.
  2. Customer area - serves authenticated paid or trial customers, providing access to the main features of the application.
  3. Admin area - serves authenticated administrators, providing access to the admin features of the application, managing customer, billing, etc.

Each area is served from a separate Next.js route.ts file, allowing to split the application into multiple segments, each served as a separate Serverless Function (i. e. separate “back-ends”). This allows to scale the application horizontally by adding more functions, while still being able to serve different areas of the application from different domains, such as https://example.com, https://admin.example.com, https://customer.example.com, and so on.

Read more

Enable AI features

Vovk.ts is designed to cover the most common use cases for AI-powered applications, such as JSON streaming and Function Calling, allowing to build AI-powered applications with minimal effort.

Read more

Offer public API to your customers

Vovk.ts implements the conventional RESTful API, allowing to expose the API endpoints to the public without additional explanation for internal endpoint design. With the help of Scalar  integration, the OpenAPI operations are flavoured with runnable examples that can be copied and pasted to your project straight away.

Read more

Offer installable libraries for your public API

The client-side RPC library can be packed and distributed in order to be installed and used by your customers, saving your time and money on development and maintenance of manually developed libraries.

Read more

Mix RPC library with 3rd-party APIs

Using 3rd party APIs was never easier. The generated RPC library can be mixed with the 3rd-party APIs, if they provide OpenAPI specification document in JSON or YAML format. The generated modules follow the same design as the RPC modules created with Vovk.ts library, allowing to use them as part of your Function Calling framework.

Read more

Last updated on