More Premium Hugo Themes Premium Nextjs Themes

T3 App Router Edge

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

T3 App Router Edge

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

Author Avatar Theme by mattddean
Github Stars Github Stars: 45
Last Commit Last Commit: Apr 17, 2023 -
First Commit Created: Feb 6, 2025 -
T3 App Router Edge screenshot

Overview

The transition from utilizing Prisma and Kysely to Drizzle ORM represents a significant stride forward in streamlining database management and querying processes. This shift aims to tackle the complexities that arise from using separate frameworks for schema management and data access. For users familiar with the traditional setup, the adoption of Drizzle brings about a more cohesive experience, particularly with time-sensitive data updates that can now be efficiently handled by the database.

In this experimental project implementing the T3 Stack on the Edge runtime with Next.js’s beta App Router, developers are provided with a playground for innovation and collaboration. Although still in its infancy and not ready for production use, this repository serves as a valuable resource for those looking to explore new app structures and enhance their skillset in modern web development.

Features

  • Edge Runtime for All Pages and Routes: Experience optimized performance with an architecture that fully supports edge capabilities.

  • Type-Safe SQL with Kysely: Benefit from a robust type-safe querying experience while managing schemas through Prisma, bridging powerful features for secure data handling.

  • Type-Safe API with tRPC: Utilize a specialized tRPC setup tailored for the experimental App Router, ensuring seamless integration and enhanced type safety across your API requests.

  • Owned Authentication with Auth.js: Leverage the benefits of Auth.js for authentication on the Edge runtime, replacing the limitations of NextAuth with a more compatible solution.

  • Styling with Tailwind: Take advantage of Tailwind CSS for styling, allowing for rapid design integration that works seamlessly within the App Router.

  • React Components and Layout from shadcn/ui: Employ reusable components styled with CSS and Radix UI, ensuring consistency across your application’s layout.

  • Data Fetching Flexibility: Choose from multiple data fetching strategies to optimize performance for your needs, either server-side or client-side, using Server Components and React Query capabilities.

This project encapsulates an innovative approach to web application development, merging various cutting-edge technologies into one cohesive platform for learning and experimentation.