Files
zenblog/apps/web
2024-05-18 20:38:00 +02:00
..
wip
2024-05-01 22:22:59 +02:00
ui
2024-05-18 20:38:00 +02:00
ui
2024-05-18 20:38:00 +02:00
wip
2024-05-01 22:22:59 +02:00
wip
2024-05-01 22:22:59 +02:00
wip
2024-05-01 22:22:59 +02:00
wip
2024-05-01 22:22:59 +02:00
wip
2024-05-01 22:22:59 +02:00
wip
2024-05-01 22:22:59 +02:00
2024-05-04 00:43:17 +02:00
wip
2024-05-01 22:22:59 +02:00

zendoblog

MVP To Do

  • Create API Client functions
  • Create API Client to fetch blogs from API
  • Load blogs locally and refresh for faster navigation
  • Add API Keys CRUD for Blogs
  • Improve loading states in buttons

Post MVP To Do

  • Feedback widget (open source) for supabase
  • Pageview counter for blogs

Usage example

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; // 🚧
};

Resources

https://upstash.com/blog/nextjs13-approuter-view-counter