Fastify Trpc Next

screenshot of Fastify Trpc Next
nextjs

A starter project monorepo with Fastify, tRPC, and Next.js. Monorepo setup with Turborepo and pnpm.

Overview

The Fastify tRPC Next.js Starter is a powerful setup designed for developers who want to harness the full potential of Fastify, tRPC, and Next.js within a Turborepo environment. This project provides a robust foundation with all the essential components needed for building scalable applications, making it an outstanding choice for modern web development. The integration of TypeScript and utilities like ESLint and Prettier ensures best practices in software development are seamlessly adhered to.

With its structured package management using pnpm and the inclusion of advanced features like end-to-end testing, this starter kit streamlines the development process. It allows developers to focus more on writing quality code and less on configuration, thereby accelerating the application development lifecycle.

Features

  • Full TypeScript Support: All packages and applications are written in TypeScript, enabling static type checking for improved reliability and maintainability.

  • Fastify + tRPC API: Enjoy a high-performance backend with Fastify, paired with tRPC for seamless type-safe APIs.

  • Next.js Frontend: Build dynamic user interfaces effortlessly using Next.js, known for its excellent developer experience and fast performance.

  • Shared Zod Schemas: The schema sharing capability between the API and web applications ensures consistency in data validation across the entire stack.

  • Custom ESLint Configurations: Preconfigured ESLint settings (including eslint-config-next and eslint-config-prettier) facilitate code quality and uniformity in the project.

  • Prettier Integration: Code formatting is managed by Prettier, making it easier to maintain a clean and readable codebase.

  • Ease of Build and Development: Simple commands streamline the building and developing processes for all apps and packages in the repository.

  • E2E Testing with Cypress: Built-in support for running end-to-end tests ensures your application is reliable before going live.

nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

turborepo
Turborepo

Turbo is an incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.