> Canonical URL: https://codingcat.dev/podcast/cwcc-0-9-clerk-with-appwrite

# Live Coding Clerk, into Next.js with James Perkins

🎧 Podcast EpisodeSeptember 14, 2022[![](/logos/tags/nextjs-symbol-light.svg)![](/logos/tags/nextjs-symbol-dark.svg)Next.js](/topic/nextjs)[![](/logos/tags/appwrite-symbol-light.svg)![](/logos/tags/appwrite-symbol-dark.svg)Appwrite](/topic/appwrite)[![](/logos/tags/clerk-symbol-light.svg)![](/logos/tags/clerk-symbol-dark.svg)Clerk](/topic/clerk)[#Security](/topic/security)[![](/logos/tags/react-symbol-light.svg)![](/logos/tags/react-symbol-dark.svg)React](/topic/react)[![](/logos/tags/mcp-symbol-light.svg)![](/logos/tags/mcp-symbol-dark.svg)MCP](/topic/mcp)[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[![](/logos/firebase/firebase-symbol.png)![](/logos/firebase/firebase-symbol.png)Firebase](/topic/firebase)

# Live Coding Clerk, into Next.js with James Perkins

![](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/298997c1c8cd046d8b7bf86836888063a88e710c-1920x1080.png?w=1920&h=1080&q=82&fit=max&auto=format)[@CodingCatDev62.5K / 100K Subscribers Goal](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Subscribe on YouTube→](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Watch on YouTube App ↗](https://www.youtube.com/watch?v=4P_ax04-T4c&list=UUnKZ8gEb78zXKMi1ns-IQ2g)[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![James Perkins](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/879a0b33c46a89e20220aa9db32cfd67d7e79d62-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)James Perkins](/guest/james-r-perkins)🎧 Listen & Subscribe[Spotify](https://open.spotify.com/episode/5jnAeXXaDBIdRNUvYi5zXr)[Apple](https://podcasts.apple.com/us/podcast/code-with-codingcat-dev-live-coding-clerk-into-next-js/id1491655542?i=1000660668665)[YouTube](https://www.youtube.com/watch?v=4P_ax04-T4c&list=PLUKgAjyG9B0ZhUEXp9eVa7h4L__FDW3uV)[Subscribe on YouTube (62.5K / 100K) →](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Pocket Casts](https://pca.st/episode/d77e76a2-91a8-436e-825e-813886b0cae6)[Castbox](https://castbox.fm/episode/id2508485-id715152592)[Castro](https://castro.fm/episode/v3RdkF)[Overcast](https://overcast.fm/itunes1491655542)[RSS](https://anchor.fm/s/115b203c/podcast/rss)

Clerk React is a React Hooks library that makes it easy to build CRUD applications. The library provides a set of high-level hooks that abstract away the details of managing state, fetching data, and handling errors.

Clerk React is designed to be easy to use, even for beginners. The hooks are well-documented and there are plenty of examples to help you get started.

In this blog post, we'll show you how to use Clerk React to build a simple todo app.

## Getting Started

The first step is to install Clerk React. You can do this with the following command:

Copied! 🐾

```
npm install clerk-react
```

Once Clerk React is installed, you can start using the hooks in your app.

## Update _app.tsx

Include the below to wrap all components in a ClerkProvider.

Copied! 🐾

```
import '../styles/globals.css';
import type { AppProps } from 'next/app';
import { ClerkProvider, SignedIn, SignedOut, SignIn, UserButton } from '@clerk/nextjs';

function MyApp({ Component, pageProps }: AppProps) {
	return (

	);
}

export default MyApp;
```

## Full Repo Example

<section class=" aspect-video"> <iframe title="stackblitz for firebase app check" src="https://stackblitz.com/github/CodingCatDev/clerk-demo?embed=1&file=README.md" frameborder="0" height="100%" width="100%" loading="lazy" /> </section>

[CodingCatDev/clerk-demo](https://github.com/CodingCatDev/clerk-demo)

## Technical Overview: Live Coding Clerk, into Next.js with James Perkins

Clerk.dev Authentication - Code with CodingCat.dev: James Perkins shows us how to use Clerk during a live code session

When applying the concepts from **Live Coding Clerk, into Next.js with James Perkins**  in a production codebase, teams working with Next.js, Clerk, Appwrite, Security should align their implementation with the [**Next.js Official Documentation**](https://nextjs.org/docs) (App Router, Server Actions, and rendering architecture guides). Structuring your workflow around repeatable patterns, automated verification, and clear separation of concerns helps prevent regressions as your application scales.

### Key Engineering Takeaways

- **Core Topic Focus: ** Practical strategies for Next.js, Clerk, Appwrite, Security covered in "Live Coding Clerk, into Next.js with James Perkins" (James walks Alex through how to use Clerk in Next.js).
- **Production Implementation: ** Combine the architectural patterns demonstrated in this podcast with the official [Next.js Official Documentation](https://nextjs.org/docs) for type safety, performance, and long-term maintainability.
- **Hands-On Video Walkthrough: ** Follow along with the live coding demos and discussion on [YouTube (Live Coding Clerk, into Next.js with James Perkins)](https://www.youtube.com/watch?v=4P_ax04-T4c) and subscribe to [CodingCat.dev on YouTube](https://www.youtube.com/@CodingCatDev?sub_confirmation=1) for weekly deep dives.

## Resources, Links & Official Documentation

- **Watch on YouTube: ** [Live Coding Clerk, into Next.js with James Perkins Full Video](https://www.youtube.com/watch?v=4P_ax04-T4c) (plus [Subscribe to CodingCat.dev](https://www.youtube.com/@CodingCatDev?sub_confirmation=1))
- [**James Perkins Guest Profile & Episodes on CodingCat.dev**](/guest/james-r-perkins)
- [**James Perkins on GitHub**](https://github.com/perkinsjr/)
- [**Next.js Official Documentation:**](https://nextjs.org/docs) App Router, Server Actions, and rendering architecture guides
- [**Clerk Authentication Documentation:**](https://clerk.com/docs) Drop-in user management, passkeys, and multi-tenant organizations
- [**Appwrite Documentation:**](https://appwrite.io/docs) Open-source backend server for auth, databases, and storage

## Related CodingCat.dev Tutorials & Podcast Episodes

- [**Making Flutter Games with Flame Engine**](/podcast/1-34-making-flutter-games-with-flame-engine): If you love gaming and Flutter, you need to checkout Flame Engine! We sit down with Lukas, Jochum and Renan to chat about how this library works.
- [**Bringing the Jamstack Together with TinaCMS**](/podcast/1-33-bringing-the-jamstack-together-with-tinacms): We sit down with James Perkins to talk about how he became a developer advocate. Then we talk about how TinaCMS is changing the way we think about editing in th...
- [**Next.js Deployment Adapters: A bright future for Next.js on Google Cloud in Firebase: Web Architecture & Implementation Guide**](/post/firebase-2026-03-nextjs-adapters): Hands-on web engineering breakdown of "Next.js Deployment Adapters: A bright future for Next.js on Google Cloud" (2026-03-26). Learn how to integrate Firebase, ...

## Frequently Asked Questions (FAQ)

### What are the main takeaways from Live Coding Clerk, into Next.js with James Perkins?

James walks Alex through how to use Clerk in Next.js. Clerk.dev Authentication - Code with CodingCat.dev: James Perkins shows us how to use Clerk during a live code session Throughout this podcast, James Perkins breaks down real-world implementation details for Next.js, Clerk, Appwrite so developers can apply these patterns directly in production.

### How do you implement Next.js best practices in production?

When adopting Next.js and Clerk in a production stack, start by validating your configuration against the [**Next.js Official Documentation**](https://nextjs.org/docs) (App Router, Server Actions, and rendering architecture guides). Focus on incremental adoption, automated testing, and observability so your team can measure performance and developer velocity improvements at each stage.

### Where can I watch the full Live Coding Clerk, into Next.js with James Perkins walkthrough and find related code resources?

You can watch the complete video session for [**Live Coding Clerk, into Next.js with James Perkins**](https://www.youtube.com/watch?v=4P_ax04-T4c) on the [**CodingCat.dev YouTube channel**](https://www.youtube.com/@CodingCatDev?sub_confirmation=1). For a deeper dive into Next.js, check out our related guide: [**Making Flutter Games with Flame Engine**](/podcast/1-34-making-flutter-games-with-flame-engine).

## ✏️ Episode Summary

Clerk.dev Authentication - Code with CodingCat.dev: James Perkins shows us how to use Clerk during a live code session

🔔 Subscribe for weekly AI, MCP & Web Architecture deep dives: https://www.youtube.com/@CodingCatDev?sub_confirmation=1
▶️ Watch Next (2026 Architecture Deep Dive): https://www.youtube.com/watch?v=7d6iJHEPMZI&list=PLfbgR8HONQb0
🐾 E — what up peeps welcome to code with codingcat today on the show we have James with us how's it going James it's going how's it going with you it's going well I always forget what part of the world are you on so I'm in Raleigh North Carolina because I think I mean this is the Eastern time zone so that's nice it's a nice day up here in Michigan finally 75 sunny it's beautiful out oh ours is down in t...

✏️ Visual Architecture Diagram

## how this episode connects together.

Follow AJ from first principles to production-ready architecture.

Let’s build it!✏️ Visual Diagram: Live Coding Clerk, into Next.js with James Perki…✓ Good PatternVISUAL DIAGRAM[Diagram Walkthrough]Step-by-step diagram breakdown for Live Coding Clerk, into Next.js with James Perkins: start with James Perkins, implement Architecture & Patterns, and ship to production.AAA Contrast Verified

## related episodes.

[All Episodes&rarr;](/podcasts)[![The Odin Project 6: Modern React 19, State Architecture & TypeScript](https://cdn.sanity.io/images/hfh83o0w/production/1a3aad1e42061d9c384f723cdec562e1aa2afd24-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/odin-modern-react-and-typescript)November 4, 2026[![](/logos/tags/react-symbol-light.svg)![](/logos/tags/react-symbol-dark.svg)React](/topic/react)[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[![](/logos/tags/astro-symbol-light.svg)![](/logos/tags/astro-symbol-dark.svg)Astro](/topic/astro)[+1](/course/odin-modern-react-and-typescript)

### [The Odin Project 6: Modern React 19, State Architecture & TypeScript](/course/odin-modern-react-and-typescript)

Master React 19 components, strict TypeScript props, derived state vs. useEffect traps, Server Actions, and island hydration in Astro.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![MCP in Production: Building & Securing Model Context Protocol Servers](https://cdn.sanity.io/images/hfh83o0w/production/2eee06c77a5849ba8be4c2826deb173c735df454-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/mcp-in-production)November 1, 2026[![](/logos/tags/mcp-symbol-light.svg)![](/logos/tags/mcp-symbol-dark.svg)MCP](/topic/mcp)[![](/logos/tags/cloudflare-symbol-light.svg)![](/logos/tags/cloudflare-symbol-dark.svg)Cloudflare](/topic/cloudflare)[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[+3](/course/mcp-in-production)

### [MCP in Production: Building & Securing Model Context Protocol Servers](/course/mcp-in-production)

Move beyond toy local Stdio scripts. Learn how to architect, secure, and deploy remote Model Context Protocol (MCP) servers on Cloudflare Workers with OAuth 2.1, Better-Auth, WebMCP (RFC 9727), and Sanity Context Knowledge Bases.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)