A Cloudflare Workers-based autonomous blogging agent that generates and publishes content to Cloudflare Pages.
The project is partially implemented but NEEDS SECURITY IMPLEMENTATION before going live.
- Basic agent structure using Cloudflare Workers
- Content generation capability
- Hugo-based blog structure
- Cloudflare Pages integration for publishing
-
SECURITY (URGENT): The agent is currently deployed but needs authentication:
- Needs either API key authentication or Cloudflare Access setup
- Current endpoint: https://autoblogger-agent.wzmcghee.workers.dev
- Currently throws errors on requests (not accepting unauthenticated requests)
-
Pages Integration:
- Hugo site structure is set up
- Build process needs testing
- Theme (PaperMod) integration needs verification
autoblogger-agent/
├── src/
│ ├── index.ts # Main agent code
│ ├── pages-integration.ts # CF Pages deployment logic
│ └── types.ts # TypeScript types
├── content/ # Hugo blog structure
├── wrangler.toml # Cloudflare configuration
└── package.json
- ACCOUNT_ID
- PAGES_PROJECT_NAME (set to "autoblog-site")
-
Choose and implement authentication method:
- Option A: Basic API key authentication
- Option B: Cloudflare Access integration
-
Test Hugo build process on Pages:
- Verify theme installation
- Test post generation and routing
- Confirm build commands
-
Add rate limiting and additional security measures
# Generate a post
POST /generate
{
"topic": "Your Topic Here"
}
# Publish a post
POST /publish
{
"postUrl": "post-url-here"
}- The agent is built on Cloudflare's Agent SDK
- Uses Hugo static site generator for blog structure
- PaperMod theme is configured but needs verification
- All necessary wrangler configurations are in place
- Current deployment throws errors (intentional until security is implemented)
Quick implementation via:
- Add a secret key via wrangler
- Add middleware to check Authorization header
- Update agent code to verify key
More robust but requires:
- Setting up Access application
- Configuring policies
- Implementing token verification
- Updating agent to check CF Access headers
Choose an implementation approach before proceeding with development.