Skip to content

An news aggregation system that helps users understand information flow better — from ai to emerging tech

Notifications You must be signed in to change notification settings

chyyynh/newsence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Newsence

Ask DeepWiki Website

Deploy to Cloudflare Workers

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.

Core Feature

  • 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

Technical Stack

  • Frontend(not opensource): Next.js, Zustand, Motion
  • Backend: Cloudflare Workers
  • Database: PostgreSQL with Supabase, Prisma
  • Tool: Statsig, polar.sh for payment

Project Structure

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

Quick Start

Prerequisites

Installation

# Install dependencies
pnpm install

# Setup environment variables
cd cf-worker
cp .dev.vars.example .dev.vars
vim .dev.vars  # Edit with your actual values

Local Development

# Start all workers
pnpm run dev

# Or start individual worker
cd cf-worker/article-process
pnpm run dev

Deployment

Quick Deploy (All Workers)

# Deploy all workers
pnpm run deploy

# Deploy individual worker
pnpm run deploy:article-process

Individual Worker Deploy

# Navigate to worker directory
cd cf-worker/article-process

# Deploy
pnpm wrangler deploy

Automated CI/CD

We 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.

Documentation

Getting Started

Workers Management

CI/CD

Environment Variables

Architecture

Workers Flow

RSS Monitor (Cron) → Queue → Article Processor
                              ↓
                         Supabase DB
                              ↓
                     Telegram/Twitter Bot

For detailed architecture, see documentation above.

About

An news aggregation system that helps users understand information flow better — from ai to emerging tech

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •