• Townie
    AI
  • Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
jamiedubs

jamiedubs

twitterCompetitorMonitoring

it costs like $5k month for basic social listening tools lol
Remix of jamiedubs/twitterAlert
Public
Like
1
twitterCompetitorMonitoring
Home
Code
4
README.md
H
api.ts
db.ts
C
main.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/3/2025
Viewing readonly version of main branch: v15
View latest version
README.md

Competitor Tweet Tracker

This Val Town project tracks tweets mentioning competitor URLs and visualizes the data in charts.

Components

  1. Cron Job (main.tsx): Runs hourly to search Twitter for mentions of competitor URLs and stores the results in a database.

  2. Database (db.ts): Uses SQLite to store tweet data and provides functions to query the data.

  3. Web Interface (api.ts): Serves an HTML page with charts showing tweet counts per competitor per day.

How to Use

  1. Set up the TWITTER_BEARER_TOKEN environment variable with your Twitter API bearer token.

  2. The cron job will automatically run every hour to collect data.

  3. Visit the HTTP endpoint to view the charts showing tweet counts.

Features

  • Tracks tweets mentioning competitor URLs
  • Avoids double-counting tweets by storing unique tweet IDs
  • Visualizes data in daily trend charts and total count charts
  • Automatically updates as new data is collected
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.