🎉 Introducing God Tier SaaS

Build the next Enterprise application

A SaaS Kit offering end-to-end type safety with ts-rest between Next.js and Nest.js, along with integrated services like AuthJS for authentication, PostHog for analytics, and Drizzle ORM with PostgreSQL for database management.
Perfect to build scalable SaaS applications.

End to end type safety to create and use the APIs

Define your APIs with ts-rest Router, implement them in your NestJS controllers, and use them in NextJS using type-safe TanStack queries.

shared/../router.ts


import { initContract } from '@ts-rest/core';
import { z } from 'zod';

const c = initContract();

export const contract = c.router(
    {
        getTodo: {
            method: 'GET',
            path: '/todos',
            responses: {
                200: z.object({
                    id: z.string(),
                    todoTitle: z.string(),
                    completed: z.boolean(),

                }).array(),
                400: z.object({
                    message: z.string(),
                }),
            },
            summary: 'Get all todos',
        }
    },
);
        

Follow these steps to add and use the API

Define your API endpoint fields like body, query, pathParams, and headers in the router function using a simple TypeScript type with the c.type helper, or use Zod objects instead. [ Docs ]

Features

End to End Type Safety

Get the best developer experience with type-safety and easy API development.

Manage your database with Drizzle ORM

Drizzle ORM enables fast, type-safe database queries with PostgreSQL.

Demo of Optimistic UI

Example of a Posts page demonstrating Optimistic UI CRUD operations using Tanstack Query.

Secure Authentication

Implement secure client-side and server-side authentication using AuthJS.

Analytics with PostHog

Track user behavior and understand your customers better with PostHog.

Docker-ready for deployment.

Deploy your application with Docker and Docker Compose.

Ready-to-use ContentLayer for blog and changelog

Manage your blogs and changelogs with ready-to-use content collections.

Templates from landing page to Dashboard

Use ready-to-use templatees for your landing page and dashboard.

Built on leading open-source technologies

drizzle
nextauth
ts-rest
nestjs
postgres
docker
Star on Github

Brought to you by Mit Suthar