Files
2023-06-27 18:55:22 +02:00
..
2023-06-16 22:53:23 +02:00
wip
2023-06-27 18:21:47 +02:00
2023-06-27 18:31:17 +02:00
2023-06-16 22:53:23 +02:00
2023-06-27 18:31:17 +02:00
2023-06-16 22:53:23 +02:00
2023-06-27 18:55:22 +02:00
2023-06-16 22:53:23 +02:00
2023-06-16 22:53:23 +02:00
2023-06-16 22:53:23 +02:00
2023-06-16 22:53:23 +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 { createClient } from "@zendo/blog";

const cms = createClient({
  apiKey: "YOUR_BLOG_API_KEY",
});

const posts = await cms.getAll();
const post = await cms.getBySlug("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