A Node.js TypeScript application that runs a cron job every 3 hours to track trends by scraping websites using Firecrawl and the X API. The discovered trends are stored in a Supabase database.
- Scheduled scraping every 3 hours using node-cron
- Web scraping using Firecrawl
- Twitter/X data fetching using X API
- Trend analysis from multiple sources
- Supabase database integration
- Clone the repository
- Install dependencies:
npm install - Copy the example environment file and fill in your credentials:
cp .env.example .env - Build the project:
npm run build - Start the application:
npm start
FIRECRAWL_API_KEY: Your Firecrawl API keyX_API_BEARER_TOKEN: Your X (Twitter) API bearer tokenSUPABASE_URL: Your Supabase project URLSUPABASE_KEY: Your Supabase service role keyCRON_SCHEDULE: Cron schedule expression (default: every 3 hours)SOURCES: Comma-separated list of sources to scrape
Run in development mode with hot reloading:
npm run dev
ISC