Skip to content

ShivamKarna/Blogify-API

Repository files navigation

License

Blogify API

Backend for Blogify, an AI-powered blogging platform running on Cloudflare Workers.

Cloudflare Workers Hono TypeScript Better Auth D1

Live API + Docs

Production endpoint and Swagger docs for the API.

Stack

  • Hono — routing and middleware
  • Better Auth — session-based authentication with OAuth
  • Cloudflare D1 — SQLite database at the edge
  • Cloudflare KV — rate limiting and caching support
  • Cloudflare Queues — background notification processing
  • Drizzle ORM — type-safe queries and schema management

What it does

  • Publishes and manages blog posts with tags, drafts, and cover images
  • Supports comments, threaded replies, and reactions
  • Allows following users with follower-based notifications
  • Queues notifications for background processing
  • Exposes OpenAPI docs for the full REST API

Architecture

Request
	└── Hono Router
				├── /api/blogs/**    → Optional Auth → Blog Controller → D1
				├── /api/users/**    → Auth Middleware → Follow Controller → D1
				└── Queue Consumer   → Notifications → D1

Docs

All API endpoints are fully documented at the Swagger docs page:

About

A blogging platform REST API built with Hono + Cloudflare Workers. Features Google & GitHub OAuth, JWT auth, Gemini 2.5 Flash AI integration for post generation, and Cloudflare D1 + KV for storage.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors