Skip to content

vntechies/blog-summary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blog AI Summary Worker

This Cloudflare Worker provides AI-powered summarization for blog posts using Cloudflare Workers AI.

Setup and Deployment

  1. Install dependencies:
npm install
  1. Configure your Cloudflare account:
npx wrangler login
  1. Update the worker name in wrangler.toml if needed.

  2. Deploy the worker:

npm run deploy
  1. After deployment, update the worker URL in the SummaryButton.js component:
const response = await fetch('https://blog-summary-ai.your-worker-subdomain.workers.dev', {

Replace your-worker-subdomain with your actual Cloudflare Workers subdomain.

Development

To run the worker locally:

npm run dev

Features

  • AI-powered text summarization using Cloudflare Workers AI
  • Responsive UI with loading states and error handling
  • CORS support for cross-origin requests
  • Integration with Next.js blog layouts

Notes

  • The worker uses Cloudflare's Llama-2 model for summarization
  • Make sure to enable Workers AI in your Cloudflare account
  • The worker requires the AI binding in wrangler.toml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published