Quick Start
Learn how to add a complete, Druid blog to your Next.js app in minutes using the Druid SDK.
Prerequisites
Before you begin, make sure your Next.js project has the following dependencies installed.
Next.js ^15.5.0App Router with TypeScript support
React ^19.1.1Latest React with concurrent features
Tailwind CSS ^4.1.12For styling and responsive design
shadcn/uiUI component library built on Radix UI
1Install the SDK
Add the Druid SDK to your project.
Terminal
2Configure CSS Styles
Add the Druid SDK styles and your preferred Highlight.js theme.
src/app/globals.css
3Configure the Client
Create a client instance.
src/lib/client.ts
4Create the Blog List Page
This page renders a paginated list of all blog posts at
/blog
.src/app/blog/page.tsx
5Create the Individual Post Page
This page displays a single post at
/blog/post/[slug]
with SEO metadata.src/app/blog/post/[slug]/page.tsx
6Create the Tag List Page
This page lists posts under a specific tag at
/blog/tag/[tag]
.src/app/blog/tag/[tag]/page.tsx
7Create the Tag Pages
This page lists posts under a specific tag and page at
/blog/tag/[tag]/page/[page]
.src/app/blog/tag/[tag]/page/[page]/page.tsx
8Create the Blog Pages
This page lists posts under a specific page at
/blog/page/[page]
.src/app/blog/tag/[tag]/page/[page]/page.tsx
🎉 You're Live!
With these pages in place, your blog is fully functional at /blog. You can now publish posts from your dashboard, and the SDK handles fetching, routing, rendering, and SEO for you.