Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ideaBrowser-tracker

Lightweight automated monitor that captures IdeaBrowser.com content daily, extracts and cleans text with AI, analyzes readability and vocabulary, and stores historical snapshots for trend analysis.

Built with Playwright, TypeScript, Supabase (storage), and OpenAI (text cleaning).

Features

Quick Start

  1. Clone and install dependencies
npm install
  1. Environment variables

Create a .env file at the repo root with:

  • OPENAI_API_KEY — OpenAI API key used by cleanTextWithAI
  • SUPABASE_URL — Supabase project URL used by storeSnapshot
  • SUPABASE_KEY — Supabase service role / anon key
  • TARGET_URL — optional, defaults to https://ideabrowser.com (see TARGET_URL)
  1. Run locally (development)
  • Quick run with ts-node:
npx ts-node src/index.ts
  • Or build and run (if you have a build script):
npm run build
node dist/index.js

The main capture flow runs in captureIdeaBrowser — it extracts text, cleans it, analyzes it, and calls storeSnapshot.

Scheduling

A GitHub Actions workflow is included to run the capture daily: .github/workflows/daily-capture.yml. Adjust the schedule or secrets in the repository settings to use Supabase and OpenAI credentials.

Troubleshooting

  • No snapshots saved: confirm SUPABASE_URL and SUPABASE_KEY are set. Use testSupabaseConnection to validate connectivity.
  • Empty or malformed text: check extraction selector logic in extractPageText and AI cleaning logs from cleanTextWithAI.
  • Check runtime logs printed by the main script for errors and browser lifecycle messages.

Project layout

Contributing

  • Open issues for bugs or feature requests.
  • For changes, fork, create a branch, and submit a PR.

License

Add your license file or choose one for the

About

An automated daily monitoring tool that captures IdeaBrowser.com screenshots, uses AI to extract and analyze textual content, and stores historical data for trend analysis. Built with Playwright, TypeScript, and cloud-based OCR services.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages