mirror of
https://github.com/jordienr/zenblog.git
synced 2026-08-28 02:34:11 -05: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; // 🚧
};