Trpc Fe Boilerplate Vite

screenshot of Trpc Fe Boilerplate Vite
react
tanstack
vite
tailwind

Minimal tRPC frontend Vite boilerplate for separate BE-FE repositories. Easily consume fully typesafe APIs.

Overview

The tRPC Frontend Boilerplate by HeisenbergCI is a minimalistic yet powerful solution designed for those who wish to implement a Vite frontend in conjunction with a separate backend repository. This boilerplate stands out by providing seamless access to fully typesafe APIs, making it a fantastic choice for projects where frontend and backend responsibilities are clearly divided. Its architecture allows for flexibility in managing domain logic, team roles, and CI/CD processes effectively.

For developers looking to streamline the setup of their local development environment, this boilerplate offers an efficient way to kickstart projects while ensuring the backend and frontend remain distinct. It's particularly beneficial for larger teams or companies that require clarity in their development workflows and want to keep their deployments independent.

Features

  • Typesafe API Consumption: Leverage fully typesafe APIs easily, which minimizes runtime errors and improves code quality.
  • Separate Repositories: Ideal for projects that need distinct backend and frontend repositories, providing clear separation of concerns.
  • Easy Setup: Quickly establish a local development environment with simple commands for cloning and running the project.
  • Customizable Imports: Flexible options for importing tRPC API types directly from the backend repository, enhancing convenience.
  • Optimized for Monorepos: While supporting separate repos, it also accommodates monorepo architectures when needed.
  • CI/CD Support: Manage pull requests, issues, and deployments independently, aligning with complex project requirements.
  • Scalable for Teams: Designed with larger teams in mind, it allows for better management of developer responsibilities and domain logic exposure.
react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

tanstack
TanStack

TanStack is a collection of high-quality, framework-agnostic libraries including TanStack Query for data fetching, TanStack Router for routing, TanStack Table for tables, and more. These tools provide powerful, type-safe solutions for common web development challenges.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

tailwind
Tailwind

Tailwind CSS is a utility-first CSS framework that provides pre-defined classes for building responsive and customizable user interfaces.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

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.

zod
Zod

Zod is a TypeScript-first schema declaration and validation library. It allows you to define schemas that can validate data at runtime while providing excellent TypeScript inference, making it perfect for API validation, form validation, and type-safe data handling.