Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A starter template for building an email client with the Next.js App Router, Postgres, Tailwind CSS, and shadcn/ui.

A simple and beautiful React landing page template with animated particle backgrounds.

A production-ready Eleventy starter kit, optimized for performance.

Astro theme for local businesses — one config file, local SEO built in, GDPR-ready.

A GatsbyJS starter with react-bootstrap, react-icons, sticky navbar, SASS compiler, and basic layout.
Next.js Email Client is an open-source boilerplate template that pairs the Next.js App Router with Postgres to deliver a fully functional email client interface with search, threading, compose, and trash features.
Next.js Email Client is an open-source template by Lee Robinson (leerob) that demonstrates production patterns for the Next.js App Router. It takes a Postgres database seeded with sample emails and folders and renders a multi-column email client with search, thread views, a compose screen, and delete-to-trash. The app is deployed at Vercel and runs entirely on Next.js with server-side rendering and server actions.
pnpm db:setup, pnpm db:migrate, and pnpm db:seed to create the Postgres schema and populate sample data.The tech stack includes Next.js as the framework, Postgres as the database, Drizzle ORM for database access, Tailwind CSS for styling, and shadcn/ui for React components.
Clone the GitHub repo, run pnpm install, then pnpm db:setup to create your environment file. Next, pnpm db:migrate and pnpm db:seed set up the Postgres schema and populate the database with emails and folders. Finally, pnpm dev starts the Next.js development server at localhost:3000.
The template is open-source and available on GitHub, so you can use it freely. The README does not specify a license, but the code is public and meant to be a starting point for your own projects.
It uses Postgres as the database and Drizzle ORM to interact with it. The setup scripts create the schema and seed data automatically.
No, authentication is not mentioned in the README. The template focuses on the email client interface and App Router features rather than auth.
The README lists several unfinished items: making the side profile dynamic, supporting Markdown in emails, up/down arrow navigation for threads, global keyboard shortcuts, better date formatting, and dark mode styles.
