T3 App Router Edge Drizzle

screenshot of T3 App Router Edge Drizzle
nextjs
react
tanstack
tailwind
shadcn-ui
drizzle-orm
planetscale

A simple example app which runs the excellent T3 Stack on the Edge runtime, with Next.js's beta App Router. Database queries with drizzle-orm.

Overview

The T3 App Router (Edge) is an innovative project that pushes the boundaries of web development by leveraging the T3 Stack on the Edge runtime. It's an experimental approach designed primarily for developers eager to learn and explore the capabilities of Next.js's beta App Router. Although still in its infancy and not intended for production use, it provides an exciting playground for those interested in modern app architecture.

This project stands out as a collective effort, showcasing the integration of various ideas and technologies. It's a birds-eye view of how to build applications with edge capabilities while utilizing state-of-the-art tools like drizzle-orm and Auth.js, making it a valuable resource for developers aiming to push the envelope in app development.

Features

  • Edge Runtime for All Pages: Executes all routes and pages at the Edge, enhancing performance and scalability.

  • Type-Safe SQL with drizzle-orm: Leverages drizzle-orm for type-safe SQL and schema management, which is crucial for data integrity.

  • Type-Safe API with tRPC: Integrates a type-safe API using tRPC, allowing for seamless data handling and interaction.

  • Owned Authentication with Auth.js: Utilizes Auth.js for user authentication, particularly designed to work with the Edge runtime, providing robust security.

  • Styling with Tailwind: Easy integration with Tailwind CSS for styling, ensuring aesthetic and responsive designs without complexity.

  • React Components from shadcn/ui: Utilizes reusable React components styled with CSS and Radix, enhancing productivity while maintaining design consistency.

  • Flexible Data Fetching Strategies: Offers multiple options for data fetching, allowing developers to choose the best approach for their specific use case.

  • Getting Started with Simple Commands: Features an easy onboarding process; developers can quickly set up using straightforward commands and start exploring the capabilities.

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.

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.

tailwind
Tailwind

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

shadcn-ui
Shadcn UI

Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.

drizzle-orm
Drizzle ORM

Drizzle ORM is a TypeScript ORM for SQL databases designed with maximum type safety in mind. It comes with a drizzle-kit CLI companion for automatic SQL migrations generation. Drizzle ORM is meant to be a library, not a framework. It stays as an opt-in solution all the time at any levels.

planetscale
Planetscale

PlanetScale is a MySQL-compatible serverless database that brings you scale, performance, and reliability — without sacrificing developer experience.

fullstack
Fullstack

A fullstack boilerplate provides a starter application that includes both frontend and backend. It should include database, auth, payments, user roles and other backend services to build a fully featured saas or webapps.

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.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and 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.