- Feedback widget (open source) for supabase
- Pageview counter for blogs
import { createZenblogClient } from "@zendo/blog";
const cms = createClient({
apiKey: "YOUR_BLOG_API_KEY",
});
const posts = await cms.list();
const post = await cms.get("blog-slug");
type Post = {
title: string; // ✅
slug: string; // ✅
content: string; // ✅
createdAt: string; // ✅
published: boolean; // ✅
updatedAt: string; // 🚧
tags: string[]; // 🚧
publishedAt: string; // 🚧
views: number; // 🚧
coverImage: string; // 🚧
};
https://upstash.com/blog/nextjs13-approuter-view-counter