AI-Powered News Intelligence Platform
Newsence is an news aggregation system that leverages AI to deliver personalized, real-time content across multiple sources.
This open source repo only contain cloudflare workers for monitor news, article processing and social posting. please add wrangler.jsonc file yourself.
- Resource Processing: Monitoring and content extraction
- Collecting: save any resources in one place and use ai to understand better
- AI Remix: remix your feed to daily newsletter, social post and even research
- Frontend(not opensource): Next.js, Zustand, Motion
- Backend: Cloudflare Workers
- Database: PostgreSQL with Supabase, Prisma
- Tool: Statsig, polar.sh for payment
This repository contains the open-source Cloudflare Workers components:
.
├── cf-worker/ # All Cloudflare Workers
│ ├── core/ # Combining rss, twitter & process worker, queues and workflow
│ ├── article-process/ # Article content extraction and processing
│ ├── rss-feed-monitor/ # RSS feed monitoring and parsing
│ ├── twitter-monitor/ # Twitter/X content monitoring
│ ├── websocket-webhook-forwarder/ # WebSocket to webhook bridge
│ ├── workflow/ # Workflow orchestration
│ ├── telegram-bot/ # Telegram bot service
│ ├── telegram-notify/ # Telegram notification service
│ └── twitter-summary/ # Twitter content summarization
│
└── script/ # Utility scripts
├── x_login.js # Twitter/X authentication helper
└── refresh_token.js # Token refresh utility
- Node.js 20+
- pnpm 9+
- Cloudflare account
- Wrangler CLI installed
# Install dependencies
pnpm install
# Setup environment variables
cd cf-worker
cp .dev.vars.example .dev.vars
vim .dev.vars # Edit with your actual values# Start all workers
pnpm run dev
# Or start individual worker
cd cf-worker/article-process
pnpm run dev# Deploy all workers
pnpm run deploy
# Deploy individual worker
pnpm run deploy:article-process# Navigate to worker directory
cd cf-worker/article-process
# Deploy
pnpm wrangler deployWe support automated deployment via GitHub Actions:
- Staging: Auto-deploy on merge to
main - Production: Manual trigger or Git tag
See CICD-SETUP.md for 10-minute setup guide.
- QUICK-START.md - 5-minute quick start ⭐ Start here!
- FLAT-STRUCTURE.md - New flat structure explanation
- WORKERS.md - Complete workers guide
- WORKERS-QUICK-REF.md - Quick reference
- CICD.md - Full CI/CD documentation
- CICD-SETUP.md - Quick setup (10 min)
- CICD-QUICK-REF.md - Command reference
- ENV-SETUP.md - Environment variable management
RSS Monitor (Cron) → Queue → Article Processor
↓
Supabase DB
↓
Telegram/Twitter Bot
For detailed architecture, see documentation above.